Old thread: What are you working on, Jow Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
devdocs.io
devdocs.io
code.org
github.com
twitter.com
JavaScript rocks!
rocks bottoms
How the fuck did JavaScript manage to become such a huge deal? I just find it surprising how all these competent programmers would choose to keep building on top of it with stuff like Node and all the countless frameworks.
How did they not just get fucking fed up with it?
cringe and bluepilled
0 == false
'0' == false
0 != '0'
They usually have more productive activities involving JS other than showing people online how type coercing operators in a dynamic language coerce types dynamically when applied to different types that you would never otherwise do in modern, production quality code. Funnily enough this shows up as I was typing this. Like pottery.
Transitivity isn't for CS majors.
non transitive equality, because why the fuck not
Yeah all this coercion stuff is such low hanging fruit.
Maybe just don't coerce your language (or your female "friend") into doing things where it might behave unexpectedly?
The === operator solves all of this, and everyone knows about it.