-
-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Quality (no-nonsense JS) #2650
base: master
Are you sure you want to change the base?
Conversation
64169a8
to
63edbd5
Compare
A deicision has to be made about |
This comment was marked as resolved.
This comment was marked as resolved.
hi again and thanks! @4yman-0 - this must have taken a while!! Makes me hopeful you spend more hours here in future. Most of the current code was still written and structured by the same author carefully, who is gone since 2022. Architecture: #2415 (#2459) #2276
The majority of existing choices (main authors) will be for a reason. The random (some authors) might not matter.
Please note down if anything really seems complication, like slowing down development. I might added some quick remedies /tests without indentation or line breaks and (so they can be identified like that too. ) (So that's just work in progress and formatting these equally makes that less clear. Some of it might also be ok to stay for 20 years. who knows, as long as we have open issues and more important tasks than reducing nano seconds of cpu.) Reducing code size: Misc: We could shrink the code by some more percent #1634, for example most (all?) of the improvedtube.something() functions checking improvedtube.storage.something etc. could use "this" - if in all foreseeable future the functions need not be called differently changing "this". |
I don't really think that slowing down developement. TBH
here's CanIUse for ES6 (the kinda new javascipt) which the upstream (code-charity) code is already using (
This PR is called "Code Quality". I can work on a "Use BASH for CI and remove async loading" after this is resolved. Edit: Add stuff. |
This comment was marked as outdated.
This comment was marked as outdated.
9bc811e
to
1f0e708
Compare
After a lot of trial and error. I will not use ES6 because it breaks |
h1 for `ImprovedTube` h2 for "Development", "Roadmap", "Contributing..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but I hope we can add full coverage tests before doing this. To "have a prove" and be sure nothing is breaking.
I changed my mind, I think having ESLint and Prettier rules applied to this repo is the first step. Then we can improve the tests later, because ESLint and Prettier should not interfere with the functionality of the code itself at all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to add ESLint and Prettier rules in the repo
- [ ] Better configuration. - [ ] Undefined `document` and possibly other browser APIs. Dr. ImprovedSpaghetti, TYSM for all the hassles and BS I had to dig through. You have taught me discipline and seriousness by making me deal with the most ???? that nobody told anyone was to recommended way of doing thing. THANK YOU!
conflicts with #2462