extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Enhanced extension: Complexify!.js

Open Kenay555 opened this issue 9 months ago • 29 comments

A better extension for complex numbers, fixing all the issues with the original Complexity! See the first one at #2091 More motion, vectors, decimals and factorials**********!

*[Somehow not working]

Kenay555 avatar May 09 '25 01:05 Kenay555

What do you think, @Brackets-Coder and @yuri-kiss?

Kenay555 avatar May 09 '25 01:05 Kenay555

!format

Brackets-Coder avatar May 09 '25 02:05 Brackets-Coder

This is riddled with licensing issues, poor code formatting, horrible practices and lots of spelling mistakes, I am making this a draft until further notice...

yuri-kiss avatar May 09 '25 03:05 yuri-kiss

Generally speaking you should try to follow formatting best practices so your code doesn't look cluttered. Additionally, try to avoid opening new pull requests when it isn't necessary and you could just update the original :)

@Brackets-Coder, I'm new to JS and GitHub and that sort of stuff. I don't know a lot of things. Some things, but not all of them. I didn't knew that you could edit pull-requesting files until recently, after I created this new pull request. But don't take me like an ignorant either. I may be learning English and JS, but I learned enough to understand what you're saying. I'll always try my best to reach my goal, even if it takes me a new set of rules to learn. So don't expect me to be a perfect coder, nor be a random guy that has a laptop and asks ChatGPT and other coders to do all work for him. Just wanting to point that out. Also, @yuri-kiss, what's wrong about the licence? ClickerTale_2 used MPL-2.0, as reccomended by the CONTRIBUTING.md,

This is riddled with licensing issues, poor code formatting, horrible practices and lots of spelling mistakes, I am making this a draft until further notice...

And which are the horrible practices? Now that I know how to edit files, maybe I can correct Complexify!.js

Kenay555 avatar May 10 '25 01:05 Kenay555

!format

CubesterYT avatar May 10 '25 03:05 CubesterYT

Generally speaking you should try to follow formatting best practices so your code doesn't look cluttered. Additionally, try to avoid opening new pull requests when it isn't necessary and you could just update the original :)

@Brackets-Coder, I'm new to JS and GitHub and that sort of stuff. I don't know a lot of things. Some things, but not all of them. I didn't knew that you could edit pull-requesting files until recently, after I created this new pull request. But don't take me like an ignorant either. I may be learning English and JS, but I learned enough to understand what you're saying. I'll always try my best to reach my goal, even if it takes me a new set of rules to learn. So don't expect me to be a perfect coder, nor be a random guy that has a laptop and asks ChatGPT and other coders to do all work for him. Just wanting to point that out. Also, @yuri-kiss, what's wrong about the licence? ClickerTale_2 used MPL-2.0, as reccomended by the CONTRIBUTING.md,

This is riddled with licensing issues, poor code formatting, horrible practices and lots of spelling mistakes, I am making this a draft until further notice...

And which are the horrible practices? Now that I know how to edit files, maybe I can correct Complexify!.js

Absolutely not trying to be critical, we all were there once and it was only recently (in the past few months) that I really started with Github. It's an understandable situation, I'm just here to try to help you through it.

Brackets-Coder avatar May 10 '25 11:05 Brackets-Coder

!format (heard these fix smth idk)

Kenay555 avatar May 21 '25 21:05 Kenay555

The formatting bot didn't find any formatting issues. It currently only checks the extensions folder. The author or a maintainer can run terminal command 'npm run format' manually to format all files.

github-actions[bot] avatar May 21 '25 21:05 github-actions[bot]

!format (for the update. two done, one to go)

Kenay555 avatar May 21 '25 22:05 Kenay555

The formatting bot didn't find any formatting issues. It currently only checks the extensions folder. The author or a maintainer can run terminal command 'npm run format' manually to format all files.

github-actions[bot] avatar May 21 '25 23:05 github-actions[bot]

!format

Kenay555 avatar May 21 '25 23:05 Kenay555

The formatting bot didn't find any formatting issues. It currently only checks the extensions folder. The author or a maintainer can run terminal command 'npm run format' manually to format all files.

github-actions[bot] avatar May 21 '25 23:05 github-actions[bot]

After ~half an hour~ hours of coding, I got it. No more untranslated strings, no more wierd formatting, no more distracting comments, and no more horrible practices. Only Complexify!, no more.

Thanks @Brackets-Coder for telling me where I could be better. Thanks @yuri-kiss for telling me some tips and in what I was wrong. Thanks @CubesterYT and @CubesterYT for just passing by. And thanks @Clickertale2 for being always there, always helping.

Fixing such a wierd extension is truly hard, but enhancing #2091 was really worth it. All three checks are done, all three green successful checks. I'm not sure what's next, do I just keep waiting? Do I start making the image? Or did it ended before its start?

What now?

(also i thought !format just meant my formatting wasn't good, my bad)

Kenay555 avatar May 22 '25 00:05 Kenay555

The formatting bot didn't find any formatting issues. It currently only checks the extensions folder. The author or a maintainer can run terminal command 'npm run format' manually to format all files.

github-actions[bot] avatar May 22 '25 00:05 github-actions[bot]

For now, we'll go through the next round of reviews before merging just to make sure everything is perfect and add some policing details before it gets merged. It's going to be really nitpicky and specific and detailed so just warning you ahead of time if some requests seem odd.

Additionally, we strongly recommend a gallery thumbnail, so if you haven't started making that you should do that now or generate one with a tool of your choice (assuming proper attribution and credit of sources). If you like, you can also write documentation and add sample projects, but these aren't required.

Brackets-Coder avatar May 22 '25 00:05 Brackets-Coder

Also make sure the extension still works the same after all those changes

CubesterYT avatar May 22 '25 00:05 CubesterYT

@CubesterYT: Also make sure the extension still works the same after all those changes

It does! Maybe I'll edit it in the future due to silly factorial issues (of course, I set hideFromPalette: true to every factorial-related), but outside of that it's safe to use. I tested it, and if it doesn't- please tell me!

Kenay555 avatar May 22 '25 01:05 Kenay555

A teeny-tiny change just for it to be better [bet you won't notice] but it's not like the !format is wrong

Kenay555 avatar May 23 '25 22:05 Kenay555

Don't be surprised if I update this. It's not like new colors or documentation or something like that...

Kenay555 avatar Jun 12 '25 02:06 Kenay555

Now to give this !format so it can be accepted

Kenay555 avatar Jul 14 '25 00:07 Kenay555

@Kenay555 I am willing to review this code, but I first need to address some copyright concerns. Did you copy any of your code verbatim from an external source (ChatGPT, someone else's code, etc.)?

PPPDUD avatar Sep 09 '25 18:09 PPPDUD

@Kenay555 I am willing to review this code, but I first need to address some copyright concerns. Did you copy any of your code verbatim from an external source (ChatGPT, someone else's code, etc.)?

Well... we used Rawify's complex.js library, which I guess that counts. More about the licence inside the extension

Kenay555 avatar Sep 12 '25 00:09 Kenay555

@Kenay555 Your extension adds over 2000 lines of code to the extension library, and at least 53 of those lines do not actually do anything. The whole thing looks like it was over-commented with a slight sense of humor. While we all love funny source code comments, the codebase needs to be sterilized of unprofessionalism before being introduced.

PPPDUD avatar Sep 12 '25 15:09 PPPDUD

@Kenay555 Your extension adds over 2000 lines of code to the extension library, and at least 53 of those lines do not actually do anything. The whole thing looks like it was over-commented with a slight sense of humor. While we all love funny source code comments, the codebase needs to be sterilized of unprofessionalism before being introduced.

Ok... I don't know how you want it to 'be sterilized of unprofessionalism', but i'll try my best. Also I'm planning to re-work the library from scratch (pun NOT intended) since it's just plain wierd, now that I made two more extensions (not planning to fork) I think I know enough JS to handle this by myself. Well, guess it's time to convert this personal proyect into something big. Again. ~(like i'm barely finishing school and now i have to work as an software engineer?)~

Kenay555 avatar Sep 14 '25 14:09 Kenay555

@Kenay555 Your extension adds over 2000 lines of code to the extension library, and at least 53 of those lines do not actually do anything. The whole thing looks like it was over-commented with a slight sense of humor. While we all love funny source code comments, the codebase needs to be sterilized of unprofessionalism before being introduced.

Ok... I don't know how you want it to 'be sterilized of unprofessionalism', but i'll try my best. Also I'm planning to re-work the library from scratch (pun NOT intended) since it's just plain wierd, now that I made two more extensions (not planning to fork) I think I know enough JS to handle this by myself. Well, guess it's time to convert this personal proyect into something big. Again. ~(like i'm barely finishing school and now i have to work as an software engineer?)~

You don't have to do too much, just strip comments that wouldn't help a reviewer understand your code better (for example, personal commentary).

Minor nitpick, but if you aren't a software engineer, why are you trying to add more code for us to maintain?

PPPDUD avatar Sep 14 '25 18:09 PPPDUD

Also, this is a duplicate of #1861 Maybe consider collaborating on one extension?

Brackets-Coder avatar Sep 16 '25 21:09 Brackets-Coder

Also, this is a duplicate of #1861 Maybe consider collaborating on one extension?

I agree.

PPPDUD avatar Sep 17 '25 15:09 PPPDUD

Also, this is a duplicate of #1861 Maybe consider collaborating on one extension?

I agree.

Ok, lemme tell him about it, and see if i can put Quaternions for the full package

Kenay555 avatar Sep 19 '25 21:09 Kenay555

Guess not. I'll still work on the update tho

image

Kenay555 avatar Sep 20 '25 00:09 Kenay555