/dpt/ - Daily Programming Thread

Old thread: What are you working on, Jow Forums?

Attached: dpt_flat.png (1000x1071, 102K)

Other urls found in this thread:

devdocs.io/dom/worker
devdocs.io/node/worker_threads#worker_threads_class_worker
code.org/
github.com/deeppomf/DeepCreamPy
twitter.com/SFWRedditImages

JavaScript rocks!

Attached: js-rocks.png (1000x494, 369K)

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.