-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
for and while loops aren't common practice anymore and difficult to grok #312
Comments
We would very much welcome this update, it's something we've been meaning to do "for" a "while" LOL 😂 |
@juliankrispel Are you still interested in updating our tutorials? |
Absolutely. Will have a look next Tuesdayat codebar Julian Krispel-Samsel
|
@juliankrispel I think we should keep the @KimberleyCook what do you think? |
@matyikriszta I disagree. It's not a very common construct. In my experience if you look at any sane/modern codebases for and while loops get rarely used. I don't think it's appropriate as one of the first tutorials because forEach and map are easier to wrap your head round. JavaScript has changed a fair bit and I think it'd be good to update the tutorials to reflect common practices and discourage bad practices. |
Hi @juliankrispel, thanks for submitting an issue! I've just been chatting with @oliverturner about this. You're right that JS has changed a lot, and I’d like to see Oliver's Hot Take:
Also I’m not so sure that I'd be interested to see how codecademy etc handle the topic in their beginner JS tutorials. |
I'm coaching somebody and we're going through the first few javascript tutorials.
And in those tutorials you have quite a few for and while loops.
In reality you don't really need for and while loops anymore, also they are much harder to grok than their functional counterparts. I'd recommend and would be happy to help creating tutorials to use array methods like
forEach
andmap
.Whaddayathink?
The text was updated successfully, but these errors were encountered: