Live data from Hacker News

Enough with the JavaScript already

fr.slideshare.net

201–210 of 231 posts

Re: Enough with the JavaScript already

#201

I see one problem: - Entire generation of programmers may not have any knowledge about how computer works

No? If that were to happen, it would be a problem with the programmers more than anyone else.

with JavaScript, there is no need to know how computer works, so why would anyone learn(deeply) about that?

Re: Enough with the JavaScript already

#202
post #177
post #47

Earlier quoted context omitted.

It does not however, preclude the possibility that the tool is in fact a bad tool, and that the tool is bizarrely the only tool we have. They say poorly skilled people blame their tools, and that highly skilled people who know their tools well, will know how to use it well. That being said, see that circular saw over there that will occasionally bounce and cut off its user's fingers? I'm not gonna use it, no matter h…

But JS isn't just a tool. No programming language is. JS is more a workshop that happens to contain, amongst its stations, a less-than-safe circular saw. And you can absolutely, productively use the shop without using the saw, or by using the saw, if necessary, with additional safety precautions. And because some people use the saw willy-nilly, you're saying we should throw out the whole shop?

[deleted]

Re: Enough with the JavaScript already

#203

Earlier quoted context omitted.

I want a specific format to our proprietary systems. In C# I can just say "date.Format("dd.MM.YYYY")" or what ever I want.

Granted that's a bit tidier than doing this in JS: var myProprietaryDateFunction = function(dt) { return dt.getDate()+'.'+dt.getMonth()+'.'+dt.getFullYear(); }; But in JS, you can pass that function around like a village bicycle -when I think back to my C# days, it makes me wonder how I ever did without functions as first class objects and a slew of other really great things about JS. A lot of those things are brainb…

You forgot to add 1 to dt.getMonth(), because months index 0-11 :)

(and be careful not to accidentally concatenate that 1 instead of add)

Re: Enough with the JavaScript already

#204
post #47

Earlier quoted context omitted.

It does not however, preclude the possibility that the tool is in fact a bad tool, and that the tool is bizarrely the only tool we have. They say poorly skilled people blame their tools, and that highly skilled people who know their tools well, will know how to use it well. That being said, see that circular saw over there that will occasionally bounce and cut off its user's fingers? I'm not gonna use it, no matter h…

People don't use javascript because it's a beautiful, well thought out language. They use it because it runs everywhere .

I used JS because it was the only option. I'm using it now because it's beautiful and fun.

Re: Enough with the JavaScript already

#205

I don't know if I should laugh or cry: I had to temporarily disable NoScript for both slideshare.net and slidesharecdn.net to read these slides.

Is it ironic that this slideshow complains about Javascript but requires it to be viewed?

this slideshow doesn't complain about JS, it's giving you suggestions on how to use it well.

Re: Enough with the JavaScript already

#206
post #61
post #50

Earlier quoted context omitted.

Yeah JavaScript has problems, so do all programming languages. JS has some particularly egregious ones, but the abuses and problems the slide complains about are not a symptom of a defect with JavaScript. They would be the same problems with any other language being used by incompetents.

It makes me shudder to think what things would be like if they hadn't included closures in Javascript. Things could have been a hell of a lot worse!

Ironically, if they hadn't we'd probably be using something much nicer by now. Closures are one of those couple features that made idioms for sane JS programming possible.

Re: Enough with the JavaScript already

#207

Earlier quoted context omitted.

I will never understand the utility of posting slides from a talk online without the audio.

I found the slides to be quite informative.

I agree, but I definitely see the grandparent's point. These slide decks are annoying as hell. They're inconvenient for quoting, reading on-the-go, and they can leave out a whole lot of context. This is a trend that really needs to go.

Re: Enough with the JavaScript already

#208
A lot of JS usage on web browser is as a tool to manipulate DOM. A bigger part of the problem, I think, is the DOM API. Another big part of the problem is of course inconsistencies between browsers. Because of those 2 problems, our client-side code becomes complex. Changing JS with "$LANGUAGE_X" wouldn't help much. If the DOM API is much better and web browsers behave the same way, things would be much different.

Re: Enough with the JavaScript already

#209

Earlier quoted context omitted.

No? If that were to happen, it would be a problem with the programmers more than anyone else.

with JavaScript, there is no need to know how computer works, so why would anyone learn(deeply) about that?

You act as though Javascript will take over the programming world -- I can confidently say that it won't

Re: Enough with the JavaScript already

#210
post #59

Before "js everything", it wasn't just a plain simple pure web. It was flash and gifs and "dynamic html" that would break in half of the browsers, and you'd show a special version of your site saying "we're not paid enough to support your browser, go get another one". Clients never were reasonnable in their demands, nor did most of the site owner have good and simple tastes and care about efficiency, nor did half of…

The first HTTP 1.1 implementation, CL-HTTP was written in ANSI Common Lisp.

> Clients never were reasonnable in their demands, nor did most of the site owner have good and simple tastes and care about efficiency, nor did half of the internet care about user experience first above everything else.

My web browser today uses more memory than my computer had in 1996. The web isn't efficient today at all.

Post reply on HN