News for hackers. Stuff that matters.
Re:How My 10-Year-Old Learned JavaScript by fiatjaf on Sunday December 18, 2016 @11:20AM (#13206290)
What programming language do you think is different from that?
Re:How My 10-Year-Old Learned JavaScript by aibottle on Sunday December 18, 2016 @01:53PM (#13207004)
Everything. Including Brainfuck. JavaScript is a fking mess.
Re:How My 10-Year-Old Learned JavaScript by fiatjaf on Sunday December 18, 2016 @04:17PM (#13207697)
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.

Re:How My 10-Year-Old Learned JavaScript by knieveltech on Sunday December 18, 2016 @11:21AM (#13206299)
Any language that was learned 15+ years ago.
Re:How My 10-Year-Old Learned JavaScript by shurcooL on Sunday December 18, 2016 @11:33AM (#13206350)
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.
Re:How My 10-Year-Old Learned JavaScript by prashnts on Sunday December 18, 2016 @11:43AM (#13206394)
> fits on a single page

That's ~88 A4 sheets when printed.

Re:How My 10-Year-Old Learned JavaScript by shurcooL on Sunday December 18, 2016 @01:40PM (#13206947)
A single web page. My point stands, is there an equivalent page for JavaScript?
Re:How My 10-Year-Old Learned JavaScript by eropple on Sunday December 18, 2016 @01:52PM (#13206999)
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.

Re:How My 10-Year-Old Learned JavaScript by shurcooL on Sunday December 18, 2016 @09:06PM (#13208999)
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.

Re:How My 10-Year-Old Learned JavaScript by eropple on Sunday December 18, 2016 @11:23PM (#13209495)
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?

Re:How My 10-Year-Old Learned JavaScript by Turing_Machine on Sunday December 18, 2016 @06:33PM (#13208384)
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.