News for hackers. Stuff that matters.
Re:JavaScript Is Weird by stared on Monday June 28, 2021 @07:41AM (#27660549)
Judging by the title, it sounded like the biggest discovery of 2021... by someone waking after a long coma. It was discovered in 2012: https://www.destroyallsoftware.com/talks/wat

I really enjoyed the questions... and even though I am working in TypeScript, I got only 9/25. Precisely because I avoid f---ed up parts of JS, except for trivia games (https://dorey.github.io/JavaScript-Equality-Table/unified/, http://www.jsfuck.com/).

Some parts of code need not to be understood. They need to be blocked by types, tests, and linters (https://p.migdal.pl/2020/03/02/types-tests-typescript.html).

Re:JavaScript Is Weird by hajile on Monday June 28, 2021 @09:39AM (#27661809)
https://xkcd.com/1053/

There are a lot of people being born every year. If a 16-18 year old teenager is getting into web development, they were 4-6 when that talk was given in 2012. Sure, that talk still appears here and there, but it's past its prime and you'd have to be in the right place at the right time to run into it.

Crockford's book (JS: The Good Parts) was ubiquitous among JS devs who were coding between 2008 and 2015 (give or take). These days, younger devs have never heard of it. Due to the Seinfeld Effect, if they read it, it would seem trite and obvious not realizing how revolutionary it was at the time.

Re:JavaScript Is Weird by edgeform on Monday June 28, 2021 @10:10AM (#27662202)
Not to mention just because I was alive in 2012 doesn't mean I know or knew about this.

The parent comments floating to the top here seem to have a common theme of "I knew that already how did the rest of the world not also get the memo at the same exact moment I did?"

Re:JavaScript Is Weird by jonny_eh on Monday June 28, 2021 @05:58PM (#27668750)
It's amazing how much of a positive effect that short comic has had on my life.
Re:JavaScript Is Weird by stared on Monday June 28, 2021 @08:52PM (#27670329)
I know this xkcd strip, and love it by my heart.

Though, I hope that now people learn JS without its worst parts.

In any real codebase, expressions such as `true + ''` should not be understood. They should be eradicated.