Live data from Hacker News

How true hackers write JavaScript

news.ycombinator.com

341–342 of 342 posts

Re: How true hackers write JavaScript

#341
post #293

Earlier quoted context omitted.

I'm aware, but I'm responding to the myth of: > Any effort in trying to bring it up to modern webdev standards would likely make the code expand significantly That's just not true, and nowhere did that person say: "Because of legacy IE support requirements", they only mentioned "modern webdev standards". Are you suggesting arrow functions, and classList aren't modern standards then?

I was that person, and what I meant was that "modern webdev standards" would include modules and features requiring transpilation, which would introduce many dependencies, all of which count into code size (you have to keep track of them mentally).

Why/where would modules be necessary here? Just because there's a feature now that didn't exist years ago doesn't mean it's the right time & place to use it. The code works as-is, a small refactor to leverage built-in functions to do some of the trickier logic parts would make this code a breeze. There's no need for something like Babel to help out with a small refactor.

Re: How true hackers write JavaScript

#342

Earlier quoted context omitted.

I get one of your points, that some sites should work in the bottom of Africa. But there is a counter-point here, no? Why should a site be developed for the worst of connections out there? Is there a middle point here?

If it works on a crappy dial-up connection it should be nice and fast on a decent connection. Slow loading pages turn visitors away.

Horrible designs and lack of features do too.
Post reply on HN