JavaScript Is Weird
21–30 of 383 posts
Re: JavaScript Is Weird
#22> JavaScript is a great programming language, but ... Why are we so afraid to call trash "trash"? It's not attacking the creator, but just how can we make progress if things are not perceived as they are? https://wtfjs.com
Loved this video (4mins) of a talk by Gary Bernhardt (CodeMash 2012) on the topic of JS' quirks: https://www.destroyallsoftware.com/talks/wat
Re: JavaScript Is Weird
#23Buggy in Firefox (89): gets stuck on the second question. Works fine in Chrome.
Re: JavaScript Is Weird
#24I have no idea how you could come up with this sentence after this brilliant display of what an insanely stupid language JavaScript is.
Re: JavaScript Is Weird
#25> JavaScript is a great programming language, but ... Why are we so afraid to call trash "trash"? It's not attacking the creator, but just how can we make progress if things are not perceived as they are? https://wtfjs.com
There could definitely be improvements, but trash seems to be taking things too far.
Re: JavaScript Is Weird
#26> JavaScript is a great programming language, but ... Why are we so afraid to call trash "trash"? It's not attacking the creator, but just how can we make progress if things are not perceived as they are? https://wtfjs.com
Trash is something you are discarding. If you are keeping it because it still has some utility to you, then it is by definition not trash.
Re: JavaScript Is Weird
#270.2 + 0.1 === 0.3 That's not really a JS problem, that's a floating point problem. Plenty of languages will have the same issue. +!![] "" - - "" (null - 0) + "0" Calling these things weird is fair enough but I can't help thinking this is code you'd never actually write outside of the context of a "Look how weird JS is!" post. It's like picking examples from the Annual Obfuscated C Contest to show how hard it is to un…
Re: JavaScript Is Weird
#28The awful letterspacing makes it very hard to know whether strings are empty or single spaces. (They’re all empty strings).
Re: JavaScript Is Weird
#29I have been a web dev for about 10 years now and I rarely if ever run into these issues. More likely, I face issues and bugs regarding state and just flaws in the logic rather than issues based on that the language wasn't designed so great.
For sure this can be worrying if you do something really important but at the same time you have a lot of other languages to choose from.
Re: JavaScript Is Weird
#300.2 + 0.1 === 0.3 That's not really a JS problem, that's a floating point problem. Plenty of languages will have the same issue. +!![] "" - - "" (null - 0) + "0" Calling these things weird is fair enough but I can't help thinking this is code you'd never actually write outside of the context of a "Look how weird JS is!" post. It's like picking examples from the Annual Obfuscated C Contest to show how hard it is to un…