News for hackers. Stuff that matters.
Re:What people in tech had to say about JavaScript when it d... by danmg on Monday February 24, 2020 @04:31PM (#22408658)
It was not well liked.

The majority of webpages did not use it, or it was used very sparingly for things like form validation.

Old versions of IE would have a dialog pop up if there was any kind of error during execution which happened frequently.

Re:What people in tech had to say about JavaScript when it d... by asveikau on Monday February 24, 2020 @04:55PM (#22408880)
Not only that, for years afterwards the techie crowd and equivalent of places like HN (I suppose I am mostly talking about slashdot) had a lot of people saying it was bad, a nuisance, should be disabled in the browser, webpages should fail gracefully to non-JS content, etc.

I don't know exactly when the tides turned on this attitude. In 2000 the above were not controversial opinions. By 2010 it was gone, and I saw people call it crazy talk, but it probably happened earlier than that. Probably things like gmail in 2004 were a turning point.

Re:What people in tech had to say about JavaScript when it d... by LandR on Monday February 24, 2020 @05:12PM (#22408997)
>a lot of people saying it was bad, a nuisance, should be disabled in the browser, webpages should fail gracefully to non-JS content,

I still feel like this.

Re:What people in tech had to say about JavaScript when it d... by asveikau on Monday February 24, 2020 @05:15PM (#22409018)
Me too, I think. We're a minority though. I'm giving deference to the new normal.
Re:What people in tech had to say about JavaScript when it d... by karatestomp on Monday February 24, 2020 @05:18PM (#22409034)
My love of a paycheck drives me to give deference to the new normal. Meanwhile real desktop programs are still way more pleasant to use and way more respectful of my system resources, and low- or no-JS websites are still mostly nicer to use and better performing than JS heavy ones.
Re:What people in tech had to say about JavaScript when it d... by asveikau on Monday February 24, 2020 @09:12PM (#22410393)
> and low- or no-JS websites are still mostly nicer to use and better performing than JS heavy ones.

I dunno, there are some pretty egregious examples of this being false though. gmail is one such example. I remember using webmail in the days where every action was a full page load -- and we had slower connections then too, which made it hurt even more. Then gmail came out and blew everybody away with its response times. A well thought out AJAX solution could give you minimal load times for data. The issue lately is when the JS code is too big, not well tuned, and gives the equivalent of several 90s-era-website-full-pageloads worth of data with every action. That is to say a lot of websites aren't as lean as they could be.

I'm not a web focused person so somebody correct me if I'm wrong, this is my outsider's perspective.

Re:What people in tech had to say about JavaScript when it d... by karatestomp on Monday February 24, 2020 @10:06PM (#22410602)
“AJAX” when it was mostly grabbing chunks of HTML to insert or otherwise not doing much but “grab, render” was sometimes faster. Not so much these days.
Re:What people in tech had to say about JavaScript when it d... by danmg on Tuesday February 25, 2020 @12:55PM (#22415386)
It was two things around 2004-5: 1) people using GWT to make SPAs and 2) the ability to lazy load content through XMLHttpRequest.

GWT was essentially what typescript is today but java and it handled most of the nasty DOM related stuff and browser incompatibilities.

Re:What people in tech had to say about JavaScript when it d... by NeoBasilisk on Monday February 24, 2020 @06:23PM (#22409489)
RIP progressive enhancement
Re:What people in tech had to say about JavaScript when it d... by jherdman on Monday February 24, 2020 @04:37PM (#22408718)
This. The tooling and development environment for JavaScript has improved by leaps and bounds. As an early adopted I found JS to be a pain in the ass. These days I dare say it's one of my favourite languages.
Re:What people in tech had to say about JavaScript when it d... by karatestomp on Monday February 24, 2020 @04:41PM (#22408748)
With TypeScript and async/await papering over its greatest sins and inconveniences, it's not half bad.
Re:What people in tech had to say about JavaScript when it d... by pimlottc on Monday February 24, 2020 @05:01PM (#22408929)
I wouldn’t say it was unliked. It enabled image rollovers and people _loved_ those.
Re:What people in tech had to say about JavaScript when it d... by danmg on Monday February 24, 2020 @11:49PM (#22410982)
People liked the rollovers, not javascript. You'd see people try doing them in flash, shockwave, as java applets, activex controls, and I'm probably missing a few.

If they were done in javascript, the code was heavily cargo-culted and cut and paste.