-
Notifications
You must be signed in to change notification settings - Fork 823
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
Widgets Var->let Cleanup #2656
Widgets Var->let Cleanup #2656
Conversation
There are still some |
What's the cleanup you performed? Because there are remaining traces of |
#2634 will conflict with this. That one's a rather simple one. How about you review that one? We actually better get rid of all instances of |
I think the problem is with redeclaration. The variable you saw declared with The code becomes harder to follow and this process is indeed a lot tedious to do and review, but it doesn't look like we have much of an option as of now. We better not keep coming back to the same files again and again. I have done and reviewed a lot of the previous conversions. High possibility of practically untraceable errors. |
True, but the revamp and getting rid of
I agree, but this PR was in regard to #2192 where priority was porting to var->let, such that it doesn't break the code. I was hence planning on completing that first, then get on to basically get rid of the var and that respectively |
@walterbender I know the fix for #1144 however it'd better if this PR is merged with master and then, I start working on it. To avoid conflicts galore, that'd follow otherwise. |
This could be fixed independently of the var / let issue |
Ok |
I just checked now there are conflicts as you too have worked on same files as I already did. |
Sorry for the conflict. Can you rebase and just work on musickeyboard and phrasemaker? The rest are done. |
No issues, I will work on them now |
61cc79d
to
6fbbb49
Compare
Please review @walterbender |
Could you give me some context about what you've done. I'll review this and get it sorted then |
I changed var to let in |
True, but some files have 3k+ lines of code and the revamp that we are planning to do, I think should deal with them 1 file at a time. And this PR is ig, stepping stone for the future revamp |
That'll be done, but the ES6 conversion better be sorted here itself. We wouldn't want problems during the port. Also, given the fact that it'll be in TypeScript would be an even bigger challenge. |
Great So, to not clutter this PR anymore |
Can you point out any instances when it crashes? I'll check them. I'm sort of adamant we need to get rid of |
Well there were a couple of them . |
I think it's already getting out of hand with so many concurrent PRs. What I think would be cool is to close this PR and create new ones, one file at a time, (a) replacing all "one at a time" - seriously mean it ;p |
You already have the commits. You can cherry pick and modify them rather easily. |
Ok ;-; Will do as you say |
solving all three issues with each file |
Don't bother about the issue tickets. These are little but are widespread and tedious. We'll close the issues manually, once done. |
Yes. |
Probably better if you create new ones. |
Got it, will do. |
How many remain? BTW, I'm converting this to draft. Close this when all are done. I'm unsubscribing from this ticket. |
I am closing this PR. Can you please open two new ones: one for phrasemaker.js and one for musickeyboard.js? |
Sure, Please check #2677 for phrasemaker. |
var->let clean up pertaining to
js/widgets/
part of fix for #2192