DEV Community

Discussion on: 3 reasons to use 'var' in JavaScript

Collapse
 
paritho profile image
Paul Thompson

And yet I keep seeing it time and time again in tutorials. Sad.

Collapse
 
calinbaenen profile image
Calin Baenen

My school uses Code HS with this dog named Karel, and a pet peeve of mine is that they use var.
The teacher doesn't even address them, as they basically have no education on the language itself (they're just permitted and appointed to teach it).

Even as someone who barely uses JS, this annoys the fuck out of me.

Collapse
 
emptyother profile image
emptyother

6 years is nothing! I've seen PHP tutorials with methods 18 years past deprecation.

Collapse
 
thumbone profile image
Bernd Wechner • Edited

All language updates take time to trickle through. It is the way of the internet. I mean search the web with any technical question and rail, as most of us do, at any articles that are not presenting their publication date clearly, as stuff simply gets dated but still always found. I think we'll be reading Python 2 solutions to problems on web search results for years to come yet for example ....

Thread Thread
 
digitaldevourer profile image
DigitalDevourer

Hate when that happens.
You're ½ way through when things start to feel off, and now it's become a hunt for the date.
Worst of all are the "SEO-based" articles that update their titles or keywords to match popular searches, despite having almost no related content or are years too late.