The kids today shouldn't learn hoisting

From razwiki
Revision as of 08:45, 15 August 2023 by Razzi (talk | contribs) (Created page with "Hoisting is an obsolete javascript concept. I'm not even going to describe it. `let` and `const` cover 100% of the use cases of javascript, unless you're using `var` to suppor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hoisting is an obsolete javascript concept. I'm not even going to describe it. `let` and `const` cover 100% of the use cases of javascript, unless you're using `var` to support old browsers and don't want a build step (hmm)

The point here is that the good ideas in programming will keep being used and rediscovered. Symbols. Functions. if/else. Different channels for output and error. So if you're learning js in 2023, you can learn what `var` is and the history there, but don't learn how to use it...

I see a reactionary trend where people like to say things like "want to learn swift today? learn objective c"

And while if you knew the latest objective c when swift came out, it'd help you learn swift today, just learn swift. And learn c, which is a more solid foundation than all the objective c / objective c++ stuff which was deprecated overnight :O when swift came out