Earlier quoted context omitted.
How did I guess this was going to show up again?
You do the math.
Ask HN: Favorite HN comment(s)
71–80 of 95 posts
Re: Ask HN: Favorite HN comment(s)
#72Re: Ask HN: Favorite HN comment(s)
#73"JavaScript Delenda Est", by zeveb: https://news.ycombinator.com/item?id=11447851 Excerpt: JavaScript is the XML, the Yugo, the Therac-25 of programming languages. The sheer amount of human effort which has been expended working around its fundamental flaws instead of advancing the development of mankind is astounding. The fact that people would take this paragon of wasted opportunity and use it on the server side, w…
Js is clearly very popular. What are these fundamental flaws that js has that this comment mentions? I don't understand why it would be the "paragon of wasted opportunity".
The fact that {} + [], [] + [], [] + {} are all valid and all give different results ? [1]
The fact that it has some silent error conditions like NaN ?
The fact that, in v8 (which is the most common js engine out there), if you add a comment to a function, it can suddenly start performing poorly ?[0]
I love JS, I really do. Hell, I write nodejs for a living ! I find prototypical inheritance to be an awesome idea. The simplicity, and extensibility of the language is something that I really like from it. But I can see where people hating it are coming from. I wish lua had been used instead of JS.
[0]: https://top.fse.guru/nodejs-a-quick-optimization-advice-7353...
Re: Ask HN: Favorite HN comment(s)
#74"JavaScript Delenda Est", by zeveb: https://news.ycombinator.com/item?id=11447851 Excerpt: JavaScript is the XML, the Yugo, the Therac-25 of programming languages. The sheer amount of human effort which has been expended working around its fundamental flaws instead of advancing the development of mankind is astounding. The fact that people would take this paragon of wasted opportunity and use it on the server side, w…
Js is clearly very popular. What are these fundamental flaws that js has that this comment mentions? I don't understand why it would be the "paragon of wasted opportunity".
Re: Ask HN: Favorite HN comment(s)
#75Earlier quoted context omitted.
Js is clearly very popular. What are these fundamental flaws that js has that this comment mentions? I don't understand why it would be the "paragon of wasted opportunity".
let's see... Lack of a real integer type ? The fact that {} + [], [] + [], [] + {} are all valid and all give different results ? [1] The fact that it has some silent error conditions like NaN ? The fact that, in v8 (which is the most common js engine out there), if you add a comment to a function, it can suddenly start performing poorly ?[0] I love JS, I really do. Hell, I write nodejs for a living ! I find prototyp…
I know a lot of people view using so much tooling as a con of the language, but if you use Babel + Eslint + Flow/Typescript, JavaScript becomes a lot nicer and safer to program in. For small to mid-sized projects, I think JavaScript is pretty great.
Re: Ask HN: Favorite HN comment(s)
#76"JavaScript Delenda Est", by zeveb: https://news.ycombinator.com/item?id=11447851 Excerpt: JavaScript is the XML, the Yugo, the Therac-25 of programming languages. The sheer amount of human effort which has been expended working around its fundamental flaws instead of advancing the development of mankind is astounding. The fact that people would take this paragon of wasted opportunity and use it on the server side, w…
Js is clearly very popular. What are these fundamental flaws that js has that this comment mentions? I don't understand why it would be the "paragon of wasted opportunity".
Re: Ask HN: Favorite HN comment(s)
#77Re: Ask HN: Favorite HN comment(s)
#78Earlier quoted context omitted.
Js is clearly very popular. What are these fundamental flaws that js has that this comment mentions? I don't understand why it would be the "paragon of wasted opportunity".
Here's a start http://bonsaiden.github.io/JavaScript-Garden/
Also lets not pretend that having a bunch of quirks like these is exclusive to JS. I'd say there are equally as many ways to shoot yourself in the foot in many other languages. For example, for C++, which isn't necessarily beloved but people don't want to "eradicate" like OP's comment states about JS, you can have an entire talk[0] on the quirks of type deduction.
I think where JavaScript earns its bad reputation isn't necessarily its quirks, but its quirks in combination with a low barrier to entry, lots of beginners, a large community, being a multi-paradigm language, and the fact that most people writing it were forced to write it because it's the language of the web not because they wanted to. All that in combination results in a lot of bad code...but if you take the time to learn it and use a bunch of tooling (which isn't ideal), it's actually quite nice.
Re: Ask HN: Favorite HN comment(s)
#79Earlier quoted context omitted.
let's see... Lack of a real integer type ? The fact that {} + [], [] + [], [] + {} are all valid and all give different results ? [1] The fact that it has some silent error conditions like NaN ? The fact that, in v8 (which is the most common js engine out there), if you add a comment to a function, it can suddenly start performing poorly ?[0] I love JS, I really do. Hell, I write nodejs for a living ! I find prototyp…
Most of the issues you listed with the language itself are fixed by using either Flow or TypeScript. As for that V8 issue, it's not ideal, but how about just putting comments of that size outside of the function, or not overcommenting functions small enough to be inlined. I know a lot of people view using so much tooling as a con of the language, but if you use Babel + Eslint + Flow/Typescript, JavaScript becomes a l…
Hence the initial comment about putting effort into fixing something fundamentally broken.
Re: Ask HN: Favorite HN comment(s)
#80Best HN comeback: https://news.ycombinator.com/item?id=35079
When I was a kid, a neighbor friend of my sister's came over to our house and very arrogantly announced "I live next door to a Nobel Prize winner." We all made polite comments. After she left, my mom turned to us and said "I so wanted to tell her 'my dear, I sleep with one.' Yes, it was probably the only block in the world with two Nobel Prize winners living on it.