Hacker News new | ask | show | jobs
by fiatjaf 3470 days ago
What programming language do you think is different from that?
3 comments

Everything. Including Brainfuck. JavaScript is a fking mess.
Are you serious? All imperative languages are the same. There are many different features, but in essence they're exactly equal.

I could argue that is much easier to write something functional in Go than it is to do the same in Javascript, because the compiler conducts you since the beginning and you can actually get around with Stack Overflow and Google.

Javascript requires a lot more experience, because it can fail in so many ways, it has callbacks everywhere etc.

Any language that was learned 15+ years ago.
One that has a very readable specification that fits on a single page and has been read by most people using the language. For example, https://golang.org/ref/spec.
> fits on a single page

That's ~88 A4 sheets when printed.

A single web page. My point stands, is there an equivalent page for JavaScript?
I think JavaScript developers know how to make single web pages.

http://www.ecma-international.org/ecma-262/7.0/

But you're just trolling (and for something mediocre in the first place, sit down, he said from his lofty perch), so you should stop.

Thanks, that's very helpful!

I'm not sure what would make you think I'm trolling, because I'm not. Go was the only language I genuinely knew had a spec on a single page, and I thought other languages don't do that because it's not feasible (and the reason Go can do it is because it's much simpler and has a lot less features).

Now it's interesting to be able to compare the size of the two specs.

Other languages don't do it? What do you think C99 is? Or C++14? They're not "a single page", because they're ratified standards and so they're books and so they're PDFs, but--more importantly, who cares? Who doesn't specify their language, if they specify their language, in a single document?

Heck, why does this surprise you in the first place? Why do you think it's called ECMAscript?

https://www.safaribooksonline.com/library/view/javascript-th...

Disclaimer: you will need a login to see the whole thing.

IIRC, it's about 7 or 8 pages in the printed book.