Live data from Hacker News

JavaScript at 20

brendaneich.github.io

81–90 of 327 posts

Re: JavaScript at 20

#81
post #8

I just wish the best language would win, not the accidentally ubiquitous one. And giving a real choice of language would been even better.

> And giving a real choice of language would been even better.

You have a real choice of language! You can use any language you like, and compile to JS.

Or are you going to complain that x86 CPUs provide no "real choice of language", offering only x86 assembly?

Re: JavaScript at 20

#83

Cool presentation, but holy shit, taking ~2 minutes to load on FF and freezing the browser is not.

In fairness, taking 2 minutes to load and freezing the browser is a pretty darned good summary of Javascript at 20.

In fairness, taking 2 minutes to load and freezing the browser is a pretty good indicator of bad Javascript code.

Re: JavaScript at 20

#84

"Haters gonna hate." Anyone claiming that JS is the "worst thing to happen to the web" and/or that some other language would miraculously solve all of the problems present in JS should do the following, "Go create it." Don't whine about the barriers and how a new language would never be adopted because "JS is already everywhere." There are plenty of people already trying to solve this problem by actively doing someth…

There are no end of alternatives out there today, from mobile platforms to research languages exploring a myriad of aspects of computer science. Just let me know when browser vendors are going to break down the two-tiered system, and let us run the legion of alternatives alongside -- instead of under -- JavaScript. Or, they could take their own medicine, and try and write the browser in JS.

> Just let me know when browser vendors are going to break down the two-tiered system, and let us run the legion of alternatives alongside -- instead of under -- JavaScript.

Just let me know when Intel, AMD and VIA are going to break down the two-tiered system, and let us run the legion of alternatives alongside -- instead of under -- x86 assembly language.

Re: JavaScript at 20

#85

I have learnt that if I click a javascript post and see a title and author slash screen and nothing else apparently I must start using my right arrow button.

What if I don't have a right-arrow button? Keyboards are not standard equipment in non-text-entry contexts.

Re: JavaScript at 20

#86

Earlier quoted context omitted.

> Just let me know when browser vendors are going to break down the two-tiered system, and let us run those myriad of alternatives alongside -- instead of under -- JavaScript. The complexity of doing that would be needlessly high compared to just improving JavaScript. Having to integrate a C++ DOM with a JS DOM is hard enough. Think about how you handle cross-language cycles… > Or, they could take their own medicine,…

Works on OSes. We have a choice. In browsers, the OSes of the web, nope, just a bad language designed in 10 days that resists all attempts to make it not bad. It doesn't really matter if you like javascript, there's so many people who don't. Why do you get to dictate whether we can or can't develop on the web? You leave us with a horrible choice, use what we consider to be one of the worst modern languages, or not de…

> Works on OSes. We have a choice.

No, it doesn't work on OSes. OSes only handle one language: the native machine code of that platform. Everything else must be compiled to it.

This is exactly the same as browsers.

Edit: At least two people disagree with me (-1 points) - would you mind elaborating why?

Re: JavaScript at 20

#87
post #18

I wish JavaScript "committed a teenager suicide" and we finally got a more sane language for the web. It's startling how much energy is spent to work around its bad design every day and it's not getting any better, people are just getting used to it (which is akin to voluntarily agree with having most of one's brain blown off). Even seeing Brendan showing off that he hacked the language in 10 days makes me sick to th…

This post, like JavaScript, is an utterly horrible way to express an idea.

Re: JavaScript at 20

#88

I wonder whether `let` should be used everywhere now making `var` effectively obsolete? Mixing both declaration styles looks bad.

I'm not a JS programmer so I was confused with using "let" and the arrow function to create a function versus using "function funcname {}".

Naming functions with 'var' or 'let' is possible in JavaScript because functions are first-class in JS unlike some common languages that don't have a functional paradigm (say Java). I think the function foo() {} syntax is mostly to make programmers coming from languages like Java feel comfortable but it does get confusing to have multiple syntax/semantics for declaring functions.

The fat arrow '=>' in ES6 adds yet another way. Personally I think the added complexity in ES6/7 mostly just add bloat and syntactic sugar rather than necessary fixes.

Re: JavaScript at 20

#89

Earlier quoted context omitted.

> Just let me know when browser vendors are going to break down the two-tiered system, and let us run those myriad of alternatives alongside -- instead of under -- JavaScript. The complexity of doing that would be needlessly high compared to just improving JavaScript. Having to integrate a C++ DOM with a JS DOM is hard enough. Think about how you handle cross-language cycles… > Or, they could take their own medicine,…

Works on OSes. We have a choice. In browsers, the OSes of the web, nope, just a bad language designed in 10 days that resists all attempts to make it not bad. It doesn't really matter if you like javascript, there's so many people who don't. Why do you get to dictate whether we can or can't develop on the web? You leave us with a horrible choice, use what we consider to be one of the worst modern languages, or not de…

> just a bad language designed in 10 days that resists all attempts to make it not bad.

This is unnecessarily inflammatory. I've been writing JavaScript since back when it was called LiveScript and while it's certainly not my vision of the perfect programming language, it's come a long way. The code I write now is considerably cleaner, easier and more reliable than the code I was writing in 2005, much less 1995.

Re: JavaScript at 20

#90
post #61
post #21

I find it very interesting that he says asm.js was "discovered" rather than "invented". Clues to a person's philosophy.

I think that's similar to how people say JSON was discovered by Crockford. Both only use things already present in the language, but they do form something new out of them. It is sort of a middle ground between discovery and invention.

Moreover, asm.js effectively already existed, right? It's not quite the same, but it's essentially a formalisation of what emscripten and the like already produced.
Post reply on HN