News for hackers. Stuff that matters.
Re:What people in tech had to say about JavaScript when it d... by aazaa on Monday February 24, 2020 @04:17PM (#22408556)
The release of JavaScript was deeply confusing to me as a developer back then. Java applets and Macromedia Flash were already touted by their vendors as the one true way forward for interactivity. The scripting language released at about the same time seemed like an oddball.

It's easy to forget, but for years after its introduction JavaScript didn't work well. It was extremely slow, limiting the complexity of what could be built with it. There were problems galore with cross-browser compatibility of what was written. There was no reliable vector graphics or canvas system, so you really couldn't do much graphically. The DOM interface was hard to understand to be charitable. It didn't run outside of the browser, so how dare you call yourself a developer if you were using it?

To the extent that developers knew JavaScript existed at all, it was not considered a programming language.

These things started to change in the early 2000. So deeply ingrained with the disgust for JavaScript, that it took a very long time for the consensus to emerge that you could actually build very complex software on a post-V8 runtime.

Re:What people in tech had to say about JavaScript when it d... by reflectiv on Monday February 24, 2020 @04:37PM (#22408711)
Complex javascript apps just weren't a thing...hell, it took google writing Gmail (2004) to really show everyone that a large SPA using javascript was even possible.

After Gmail...things really started to move in the javascript world...people started to put effort into both the runtimes and the libraries.

Re:What people in tech had to say about JavaScript when it d... by steego on Monday February 24, 2020 @05:16PM (#22409023)
They really weren't a thing, but they also weren't unheard of. Personally speaking, I started working on a complex JavaScript application (web-based ERP/CRM system) in 2000. While it wasn't an SPA, we designed our pages so you didn't have to leave them to do what you needed to do. For example, a user might stay on one page for a few hours because they're speccing out a project.

Updates were often committed live using remote scripting (A precursor to AJAX) and we did a lot of DOM manipulation to update content in-place. At that time, we targeted IE because Netscape's support for DOM manipulation was abysmal.

While I have to give Gmail credit where it's due, I have to give Firefox the real credit for doing the hard work and finally releasing an alternative to IE that kicked JavaScript into high gear. If Gmail had never happened, it would have only been a matter of time before SPAs were going to become a thing. There were more of us doing it before Gmail than most people realize.

Re:What people in tech had to say about JavaScript when it d... by Darkphibre on Monday February 24, 2020 @08:38PM (#22410233)
Oh my goodness. Flashbacks to an web app I was coding up for Universal Studios Music Group back in '99. It leveraged Visual Basic DCOM components hosted in Microsoft Transaction Server. I took over the UI from a dev that was extremely behind, and in a week threw together a fancy UI with a pop-up menu and some other asynchronous interaction concepts (later AJAX / REST provided the abstractions to make it easy).

That was a fun, well-paid project with lots of (non-exempt) overtime. Then the .com bubble popped.

Re:What people in tech had to say about JavaScript when it d... by skinnymuch on Monday February 24, 2020 @08:25PM (#22410162)
Should Microsoft get credit for inventing Ajax and having the first real world functioning example of it?
Re:What people in tech had to say about JavaScript when it d... by steego on Monday February 24, 2020 @09:21PM (#22410434)
They do deserve some credit for intentionally introducing that feature to the browser as a standard feature, but the notion of fetching data without reloading the page wasn't novel at all.

That's what Java applets and plugins were for.

I'm also pretty sure they weren't the first to fetch data from the server without reloading, because people were doing all sorts of novel things in the mid-90s with plugins.

The reason it didn't really take off back then wasn't because of vision. It was because there was so little you could do with JavaScript. The browsers were still implementing the basic features and a lot of page/component manipulation was very broken. Applets and plug-ins were so much more capable.

Re:What people in tech had to say about JavaScript when it d... by stan_rogers on Monday February 24, 2020 @09:46PM (#22410523)
Loading into a hidden or pixel-sized iframe (or ilayer in NS) was a thing before XMLHttpRequest as well. In what would now seem a scary technique, you would use JS to load more JS (plus data, of course) that would put the new data into the iframe's host page.
Re:What people in tech had to say about JavaScript when it d... by steego on Tuesday February 25, 2020 @07:31AM (#22412609)
I used Remote Scripting as well. It was a reliable enough hack that we built a lot of stuff on it. But I don’t think it was intended to be used that way when Netscape released JavaScript in ‘95.
Re:What people in tech had to say about JavaScript when it d... by mark-r on Tuesday February 25, 2020 @12:08AM (#22411057)
I remember when Java first came out. It seemed like a new and improved C++ and I was intrigued. When it became clear that it was being positioned as purely an applet language I lost all interest.

Then along came Javascript with its transparent attempt to ride the coattails of Java by adopting a similar name. No interest in that either.

Re:What people in tech had to say about JavaScript when it d... by steego on Tuesday February 25, 2020 @11:28AM (#22414488)
You're right that Java was being promoted as a front-end language at first (Sun found a customer for Java), but I'm pretty sure the intent was to generate excitement by finding a killer app and then expand the market from there.

Also, Java applets and JavaScript were added to Netscape 2.0 at the same time and were meant to complement each other, not compete. It may seem like Java came first because JavaScript was called LiveScript for the first three months. I also don't think the JavaScript name change was intended to ride the coattails of Java, rather it was clarify and harmonize its relationship to Java.

I still look back and I'm amazed at how much stuff happened between the summer of '95 and winter '96. Windows 95 release. Netscape went public. 2.0 released 1 month later introducing Java and JavaScript, etc. etc. etc.

Re:What people in tech had to say about JavaScript when it d... by mark-r on Tuesday February 25, 2020 @12:48PM (#22415306)
Sorry, didn't mean to imply that my reaction was any kind of truth about the situation. I'm just recalling the thoughts I can remember from that time, hoping that they have some relevance.
Re:What people in tech had to say about JavaScript when it d... by steego on Tuesday February 25, 2020 @02:48PM (#22416664)
I'm sorry, I didn't mean to correct you as much as add color for other HN readers. So much happened in a very short period of time and I hope that people take away how much vision and strategy these people had at that time.

I think the point I'm really trying to make is that the Netscape team had a much richer vision of the web than what we use today. Before they built Netscape, Andreessen and Clark were considering building an online gaming platform. I'm sure you remember how big multimedia was back then.

If you look at the timeline, you can see where the were going. They started off with a focus on dominating the browser market, which they did in 4 months. In less than a year after their first release, they released the first version of an online platform. It added Java, JavaScript, and a plug-in architecture with standard plug-ins like Live3D so you could embed VRML into your HTML page. No one was even sure HTML wasn't going to be replaced by something better, so I have to imagine they were hedging their bets by adding three different ways to build on their platform.

If anything, I think your original comment reinforces that strategy. They knew there were a lot of C++ developers who wouldn't take to Java for whatever reason, so they offered a plug-in architecture for people who cared more about performance and experience than being cross-platform.

Had things gone differently (Microsoft not woken up), I can easily see Netscape creating a dominant internet platform that went beyond HTTP and viewing hyperlinked documents. They were already bundling email, website editors, conferencing, news clients, etc.

Re:What people in tech had to say about JavaScript when it d... by tasogare on Tuesday February 25, 2020 @02:45AM (#22411530)
> The browsers were still implementing the basic features

And they are still doing it. CSS Grid is not even 3 years old.

Re:What people in tech had to say about JavaScript when it d... by mr_toad on Monday February 24, 2020 @10:36PM (#22410721)
> Applets and plug-ins were so much more capable.

Except that they couldn’t alter the DOM, or handle events on DOM elements, the two things that developers really needed (even if they didn’t know it).

Re:What people in tech had to say about JavaScript when it d... by steego on Monday February 24, 2020 @11:38PM (#22410947)
So the DOM was introduced in 1998, three years after applets and plugins. In 1995, you could write JavaScript code to dynamically render a page on load using document.write, but updating the rendered HTML was another story. Otherwise, JavaScript was limited to very very simple things.

When DHTML was introduced in '97-'98, the only major browser that had a reliable DOM was IE until Firefox came around in 2002. Netscape tried, but it was buggy to the point where there were no real workarounds to the huge gaps in missing functionality.

As far as 1995 was concerned, applets and plugins looked like the future. Honestly, the web was so new and so inferior to other things in 1995 (Macromedia, WYSIWYG tools, etc.), I think most of us saw HTML being replaced in a few years by a richer clients, applets or plugins.

Re:What people in tech had to say about JavaScript when it d... by weq on Monday February 24, 2020 @11:39PM (#22410954)
Thats why people wrote Applets. Even if u wanted manipulate the dom (u could), u didnt, because the Applet was so much faster and more feature rich.
Re:What people in tech had to say about JavaScript when it d... by thedance on Tuesday February 25, 2020 @12:15AM (#22411081)
What did you need plugins for? Netscape and MSIE both were able to add a script tag to the DOM dynamically, and that was all you needed to build the rest of it.
Re:What people in tech had to say about JavaScript when it d... by steego on Tuesday February 25, 2020 @10:47AM (#22414061)
You were able to use document.write somewhat dynamically, but the not reliably across all the browsers. Even if you did make an RPC call, there wasn't a lot you could do with it presentation wise because DHTML was two years away. (Even then, IE was the only one who had a decent implementation for a number of years after that.)

Plugins and applets filled a huge gap functionality wise.

Re:What people in tech had to say about JavaScript when it d... by thedance on Tuesday February 25, 2020 @01:07PM (#22415511)
You must have been before me. NN and MSIE 4 both had what we now call DOM Level 1, in 1997.
Re:What people in tech had to say about JavaScript when it d... by steego on Tuesday February 25, 2020 @10:18PM (#22419978)
My recollection at the time was IE4 had a working DOM while Netscape's DOM was buggy and left a lot to be desired. It was there, but it was a struggle.

I don't say that to crap on Netscape. Microsoft was a well-funded company with a lot of experts who had years of experience create applications with DOMs. Also, they had the luxury of delivering a browser for one operation system.

Netscape was a brand new company that went public 7 months after it's first release and 1.5 years after its founding. They sold investors the premise they were going to become the Microsoft of the internet. They had a fraction of the resources while they were trying to creating browsers, email clients, collaboration software, web server, and a host of other software for multiple platforms.

Re:What people in tech had to say about JavaScript when it d... by agumonkey on Monday February 24, 2020 @08:37PM (#22410231)
in 2004 a guy gave a talk about how they wrote large js apps, probably 1999-2000. they made a sturdy full fledged toolkit with nice prototypes. but at the time everything was in house
Re:What people in tech had to say about JavaScript when it d... by steego on Monday February 24, 2020 @09:35PM (#22410485)
That's exactly why we were able to use it. For a while, we were IE only, but then we started to support Firefox (Only because the developers were fans and we started recommending it to users).
Re:What people in tech had to say about JavaScript when it d... by asiachick on Monday February 24, 2020 @08:30PM (#22410190)
Please don't repeat this non-fact. There were plenty of large SPAs before GMail. Oddpost existed 2 years before Gmail

https://en.wikipedia.org/wiki/Oddpost

It also felt more like an app than gmail ever has given it had the "standard" 3 panel look of most desktop email apps (same as most of them do today like Thunderbird/Outlook/Apple's Mail)

And before that Outlook had a browser version that acted like a SPA since 1997.

https://en.wikipedia.org/wiki/Outlook_on_the_web

In fact I'm pretty sure that's why Microsoft introduced XMLHttpRequest

https://en.wikipedia.org/wiki/XMLHttpRequest#History

Re:What people in tech had to say about JavaScript when it d... by airstrike on Monday February 24, 2020 @09:41PM (#22410508)
Outlook Web Access is absolute horseshit compared to OG gmail. Sure, it was JS-driven, but it wasn't good.

The apps you mentioned had nowhere near the impact that Gmail had in terms of showing what was possible

Re:What people in tech had to say about JavaScript when it d... by omegabravo on Monday February 24, 2020 @10:05PM (#22410597)
GMail had a massive impact, but I didn't really think it was novel from a technical JS perspective. It was really basic, and loaded fast. It had excellent fast search and very good junk mail rejection.

Most email providers had approximately 100Mb mailbox limit (I can't remember specifically), but Gmail had 1Gb.

Re:What people in tech had to say about JavaScript when it d... by city41 on Tuesday February 25, 2020 @12:40AM (#22411170)
To me it was Maps in 2005 that really showcased what JS could do.
Re:What people in tech had to say about JavaScript when it d... by wolco on Monday February 24, 2020 @10:29PM (#22410693)
It was novel to release gmail at that scale in javascript. It hasn't been done before. 1Gb was a crazy size.

Anybody remember gmail invites?

Re:What people in tech had to say about JavaScript when it d... by wyclif on Monday February 24, 2020 @10:39PM (#22410736)
I remember Gmail invites. Ironically, Evan Williams (formerly of Twitter, now of Medium, at the time working at Google after they bought Blogger) was the person who sent me mine—and on the morning of April 1st, 2004. So I've had a Gmail account since the first day it was publicly available.
Re:What people in tech had to say about JavaScript when it d... by treebornfrog on Monday February 24, 2020 @10:43PM (#22410752)
Yes, had one from an uncle.

I then realised that I could invite a second account, so I created a handful of accounts and still own them today.

Good times.

Re:What people in tech had to say about JavaScript when it d... by airstrike on Tuesday February 25, 2020 @10:27AM (#22413882)
I actually got an invite from Google because I was on blogger.com back then (sad to admit it...)

I probably could have picked [email protected] were it not for the 6 letter minimum, so ended up with [email protected] which still yields an absurd amount of messages meant to a variety of other recipients...

Re:What people in tech had to say about JavaScript when it d... by Semaphor on Tuesday February 25, 2020 @04:34AM (#22411910)
Sure, I bought one off ebay for 0.10€ :D
Re:What people in tech had to say about JavaScript when it d... by chc on Monday February 24, 2020 @08:40PM (#22410252)
I don't think many people knew about Oddpost, whatever it was, so it seems a bit suspect to say it influenced a lot of developers' perceptions of JavaScript.
Re:What people in tech had to say about JavaScript when it d... by lowercased on Monday February 24, 2020 @10:05PM (#22410600)
As someone who was doing web development at that time (since '96 actually), oddpost did have an impact on perception of JS and what was possible among developers. Yahoo buying them was kind of a big deal at the time, and every developer I knew who was involved in web stuff had seen it or at least heard about it.

The biggest drawback at the time was that it was window/IE only, and when gmail was released, google made an effort to be cross-platform.

IMO, Google's 'big win' wasn't so much showing what JS could do, but that complex JS could be done cross-browser and cross-platform.

Re:What people in tech had to say about JavaScript when it d... by trustfundbaby on Tuesday February 25, 2020 @01:38AM (#22411349)
Never heard of oddpost, and pretty sure most devs at the time had never either. I do remember Gmail really being a wow moment with respect to Javascript and specifically AJAX though.
Re:What people in tech had to say about JavaScript when it d... by hamburglar on Tuesday February 25, 2020 @03:05AM (#22411592)
As someone who was at Microsoft and had connections in the IE team, I can tell you that Oddpost influenced IE itself, in that the team considered it a pretty novel thing to do with the browser and actually had the Oddpost dev team up to Redmond to pick their brains about how the browser should support these types of apps.
Re:What people in tech had to say about JavaScript when it d... by scarface74 on Monday February 24, 2020 @05:26PM (#22409099)
Let’s give credit where it’s due. The first large scale use of AJAX was Microsoft using it in Outlook Mail for the web in 2000.
Re:What people in tech had to say about JavaScript when it d... by bdcravens on Monday February 24, 2020 @06:48PM (#22409623)
That wasn't just the first large scale use of it, that's when AJAX was invented.
Re:What people in tech had to say about JavaScript when it d... by carterehsmith on Monday February 24, 2020 @07:09PM (#22409741)
Indeed.

Microsoft also exposed all of that HTML/JS engine as COM or whatever component, so it could be used by applications other than browser.

I remember using Microsoft Money -- personal accounting software -- and it seemed to be all built on that HTML/JS engine.

Re:What people in tech had to say about JavaScript when it d... by pavlov on Monday February 24, 2020 @08:16PM (#22410113)
It’s crazy how Microsoft had all the pieces in place in 2001 to own both the Chrome and Electron spaces. Even Apple was shipping IE as their default browser.

By investing in cross-platform IE and making it both the best browser and the universal runtime for desktop-quality apps, they could have had “Windows Everywhere”.

Instead they did the exact opposite and folded IE into a component of desktop Windows where it received no meaningful investment and lost its once commanding lead. Microsoft’s exclusive focus on their proprietary non-portable APIs was a great blunder.

Re:What people in tech had to say about JavaScript when it d... by numtel on Monday February 24, 2020 @09:52PM (#22410545)
They had been recently sued for having a monopoly from bundling IE with Windows. The chain of events you describe was in many ways not a choice of Microsoft.
Re:What people in tech had to say about JavaScript when it d... by pavlov on Monday February 24, 2020 @10:39PM (#22410738)
This is a good point, it’s easy to forget about how closely watched Microsoft was by regulators.

But IMO it makes it all the more surprising that Microsoft doubled down on the centralized OS+API+apps leverage combo that had brought upon them the antitrust scrutiny, instead of dispersing their influence?

Re:What people in tech had to say about JavaScript when it d... by scarface74 on Monday February 24, 2020 @11:05PM (#22410827)
Dispersing their influence where? Windows was all that mattered then. No one cared about the “beleaguered” Mac that was losing marketshare and Apple was close to bankruptcy. No one cared about Linux. It’s not like now where there are four platforms that matter for consumers - Android, iOS, Windows, and Macs.
Re:What people in tech had to say about JavaScript when it d... by scarface74 on Monday February 24, 2020 @11:03PM (#22410818)
IE wasn’t “cross platform” though. The rendering engine for the Mac was completely different and ironically more standards compliant and had a more complete CSS implementation than the Windows version.
Re:What people in tech had to say about JavaScript when it d... by mmcgaha on Tuesday February 25, 2020 @05:53AM (#22412215)
I cannot remember the years, but IE ran on linux at some point in the 90s.
Re:What people in tech had to say about JavaScript when it d... by dillonmckay on Monday February 24, 2020 @09:59PM (#22410563)
In the context of that time, Electron would be considered inferior.
Re:What people in tech had to say about JavaScript when it d... by bfung on Monday February 24, 2020 @11:30PM (#22410917)
It wasn't gmail -- it was google maps that really made everyone look again at javascript. Although MS added XMLHTTPRequest, it took something like google maps that pushed it further than anyone thought at the time to make JS a real thing.
Re:What people in tech had to say about JavaScript when it d... by thedance on Tuesday February 25, 2020 @12:20AM (#22411106)
Yeah, gmail was different than other webmail products but its innovation was really on the backend, giving everyone 1000x more quota than Yahoo was giving them. On the other hand the google maps frontend was what really sold it. Up to then you were getting a full page load every time you panned or zoomed mapquest or yahoo maps. Gmail did not eradicate yahoo mail or hotmail. Google maps promptly eradicated mapquest.
Re:What people in tech had to say about JavaScript when it d... by liveoneggs on Tuesday February 25, 2020 @07:46AM (#22412695)
agreed- maps was the real game changer. gmail was just okay
Re:What people in tech had to say about JavaScript when it d... by lowercased on Monday February 24, 2020 @05:33PM (#22409147)
I seem to remember oddpost.com doing 'Ajax email' pretty significantly in 2002/2003, well before gmail.
Re:What people in tech had to say about JavaScript when it d... by blahyawnblah on Monday February 24, 2020 @10:23PM (#22410663)
Outlook was the first true web 2.0 (or SPA) website. It's what XHR was built for.
Re:What people in tech had to say about JavaScript when it d... by NicoJuicy on Tuesday February 25, 2020 @02:10AM (#22411423)
Gmail was user friendly, but that's it.

I think the v8-runtime changed a lot for Javascript, although it was already normal to use then

Re:What people in tech had to say about JavaScript when it d... by dylan604 on Monday February 24, 2020 @05:26PM (#22409095)
It was my impression that Gmail's big hit was its use of AJAX more than just its use of Javascript in general. Until then, it was just this obscure thing MS created, but it wasn't really used in the wild until Gmail.
Re:What people in tech had to say about JavaScript when it d... by steego on Monday February 24, 2020 @05:32PM (#22409140)
It was used, but mostly for internal applications or websites that were willing to dictate a minimum browser. Firefox was only released in 2002. By 2004, it had hit a critical enough mass that it was reasonable to tell a user they needed as good as IE or Firefox at the time (for a beta project).
Re:What people in tech had to say about JavaScript when it d... by swiley on Monday February 24, 2020 @09:23PM (#22410440)
Gmail is a great example of everything that sucks about web applications. Poor information density, crap sliding around underneath your mouse everytime you go to click, GUI changing every month, ambiguous pictograms everywhere.

Maybe users like native applications because native app programming sucks and it weeds out people who carelessly build things like that.

Re:What people in tech had to say about JavaScript when it d... by unreal37 on Monday February 24, 2020 @09:05PM (#22410368)
"Complex javascript apps just weren't a thing"

I don't know what you were doing in 1995 and 1996, but I was building Javascript apps. They were "a thing" for me at least.

Re:What people in tech had to say about JavaScript when it d... by monocasa on Monday February 24, 2020 @04:53PM (#22408867)
And even then, gmail wasn't really written in javascript. They compiled Java down to JavaScript because JS itself was such a pain to deal with natively.
Re:What people in tech had to say about JavaScript when it d... by svachalek on Monday February 24, 2020 @05:25PM (#22409088)
I think most of it was written for the Closure compiler (JS-to-JS), with some bits like chat windows in GWT (Java-to-JS).
Re:What people in tech had to say about JavaScript when it d... by monocasa on Monday February 24, 2020 @05:29PM (#22409127)
I was under the impression that the closure compiler didn't exist in 2004, only GWT, and that it was rewritten to be almost all JS later.
Re:What people in tech had to say about JavaScript when it d... by nogridbag on Monday February 24, 2020 @05:03PM (#22408940)
Do you have a source for this? Google did create a Java to JavaScript compiler/web framework: GWT but as far as I understood this was never used by the Gmail team. In fact, I heard there was pushback against using this on Gmail.
Re:What people in tech had to say about JavaScript when it d... by cletus on Monday February 24, 2020 @06:12PM (#22409430)
This is factually inaccurate. Gmail is and was always JavaScript. GWT had some successes (eg AdWords). Gmail wasn’t one of them.
Re:What people in tech had to say about JavaScript when it d... by andykellr on Monday February 24, 2020 @05:11PM (#22408992)
Inbox was definitely written using GWT, as were other major google products, but not gmail as far as I know.
Re:What people in tech had to say about JavaScript when it d... by cletus on Monday February 24, 2020 @06:14PM (#22409439)
That’s not true. Inbox was written in Angular originally. Not sure what it evolved to but it was always JavaScript.
Re:What people in tech had to say about JavaScript when it d... by dragonshed on Monday February 24, 2020 @08:12PM (#22410081)
Angular definitely did not catch on for google properties until much much later. Back when I did nothing but backbone/angular consulting, none of the major google properties used angular.
Re:What people in tech had to say about JavaScript when it d... by technion on Monday February 24, 2020 @06:40PM (#22409584)
Back when I first played with Javascript I don't think anyone even used the name. Tutorials were all about "DHTML", where you were building "Dynamic HTML" by writing Javascript to move items around.
Re:What people in tech had to say about JavaScript when it d... by geerlingguy on Monday February 24, 2020 @07:00PM (#22409690)
It seemed like 99% of the Javascript I found was little hacks to have some string of text move around with your cursor, or to make the status bar scroll some text.
Re:What people in tech had to say about JavaScript when it d... by wyclif on Tuesday February 25, 2020 @08:07AM (#22412841)
I remember those times. Things like DHTML clocks.
Re:What people in tech had to say about JavaScript when it d... by commandlinefan on Monday February 24, 2020 @05:29PM (#22409133)
> didn't work well.

And nearly impossible to debug on top of that. Firebug didn't come around until 2005, and AFAIK that was the first interactive debugger for Javascript. In fact, I remember spending a lot of time debugging without even console.log() support - window.alert() was the only weapon you had for the longest time. Not to mention every Javascript implementation's frustrating habit of just throwing up a blank page instead of an error message if anything was wrong...

Re:What people in tech had to say about JavaScript when it d... by johannes1234321 on Monday February 24, 2020 @07:26PM (#22409825)
Before firebug there was Venkman debugger (mind the Ghostbusters theme) as Firefox (or Firebird and Netscape Navigator 9) as well as Thunderbird and their other components where built using JavaScript+XUL (pronounced Zool, as in Ghostbusters)
Re:What people in tech had to say about JavaScript when it d... by strbean on Monday February 24, 2020 @07:29PM (#22409843)
And god forbid you got yourself in an alert() loop!
Re:What people in tech had to say about JavaScript when it d... by outworlder on Monday February 24, 2020 @08:39PM (#22410239)
> These things started to change in the early 2000. So deeply ingrained with the disgust for JavaScript, that it took a very long time for the consensus to emerge that you could actually build very complex software on a post-V8 runtime.

I wonder how history would have looked like if Scheme had been used instead, as was the original intention.

Or perhaps, Lua.

Re:What people in tech had to say about JavaScript when it d... by steego on Monday February 24, 2020 @10:37PM (#22410726)
To be honest, I was using JavaScript for years as an OOP language before I actually understood how I could use JavaScript as a functional language.

However, I don't think the limitation was the language. The biggest limitation really were bug ridden browsers. Trying to get something to work across all browsers was incredibly challenging because so many basic features simply didn't work.

Had the syntax been based on scheme, my guess is scheme's reputation would have suffered. I think people have a tendency to blame the thing that they understand the least, so I could see people blaming scheme for the browser's failings.

Also, I went to a university that taught SICP and I'm sorry to say it wasn't popular. Again, when things didn't work, there was a tendency to blame the thing that was least understood.

I could see a Lua-like syntax being approachable, but even that wouldn't have helped. Again, the biggest problem with JavaScript was being tethered to buggy browsers that often failed when you asked them to do simple things.

Re:What people in tech had to say about JavaScript when it d... by goto11 on Tuesday February 25, 2020 @05:08AM (#22412056)
Then everyone would hate scheme now :-) The primary problems with JavaScript was browser incompatibilities and bugs, mostly related to the DOM, and a limited standard library. Using a different language syntax wouldn't have alleviated those problems.

But I like the idea of angle brackets for content and parentheses for script.

Re:What people in tech had to say about JavaScript when it d... by BoiledCabbage on Monday February 24, 2020 @10:10PM (#22410616)
Much better if it had gone with Scheme
Re:What people in tech had to say about JavaScript when it d... by TheCycoONE on Monday February 24, 2020 @10:22PM (#22410658)
With scheme perhaps, but the Lua of 1995 was a much more primitive language which didn't even support closures. It had the opportunity to break backwards compatibility and refine itself numerous times - as the defacto language of the web I think lua would have turned out much poorer rather than the web much better.
Re:What people in tech had to say about JavaScript when it d... by hombre_fatal on Monday February 24, 2020 @11:10PM (#22410837)
Lua is pretty terrible in how barebones it is. I don't think anyone on HN who raves about Lua yet complains about JS has done much work with either.

There's a reason it has zero traction beyond embedded application and niche application like Pico8.

Re:What people in tech had to say about JavaScript when it d... by mntmoss on Monday February 24, 2020 @11:39PM (#22410952)
That which Lua is missing is primarily in terms of its ability to define clear, succinct algorithms. And in this respect the more Algol-derived languages enjoy a substantial advantage by having readily available tools for the task. Tables are a semantic compromise compared to list, array and map primitives, and the standard library assumes little, making it hard to write "native" Lua without encountering a need for R&D on some dependency.

But when it works in its true intended domain, gluing together and applying configuration to structured APIs and data, it's about as good as it gets, having had the benefit of major revision. And that makes it a stable computing platform, even more stable than the Lisp family(which are like BASIC in that it's quite easy to make an incompatible one). As a side effect, that also makes it an excellent source-to-source target.

But to put it another way: Everyone says they like minimalism until they try to live in it. Everyone who needs minimalism knows its limitations and makes exceptions.

Re:What people in tech had to say about JavaScript when it d... by int_19h on Thursday February 27, 2020 @07:09AM (#22432558)
That's exactly what makes Lua and JS directly comparable - they're both barebones, when it comes to stdlib.

But as far as the language itself goes, Lua is far superior, with a lot more consistency all around, and fewer traps.

Re:What people in tech had to say about JavaScript when it d... by anthk on Monday February 24, 2020 @10:39PM (#22410737)
Something like TCL would be far better. Or Inferno.
Re:What people in tech had to say about JavaScript when it d... by nickthemagicman on Monday February 24, 2020 @04:49PM (#22408821)
Jquery was invented and became massive for decades because it made js basically suck less.
Re:What people in tech had to say about JavaScript when it d... by JimDabell on Monday February 24, 2020 @10:30PM (#22410698)
jQuery was invented for basically two reasons, neither of them about making JavaScript suck less.

1. Introduce a "chaining" API.

2. Paper over the differences between how browsers implemented the DOM, with events being the big issue.

Note that the DOM is not JavaScript and JavaScript is not the DOM. The DOM is a language-agnostic API for manipulating markup-based documents.

Re:What people in tech had to say about JavaScript when it d... by tasogare on Tuesday February 25, 2020 @02:54AM (#22411558)
That's nitpicking. Javascript was the only language that could be used to manipulate DOM so it's normal to conflate the two.
Re:What people in tech had to say about JavaScript when it d... by uk_programmer on Tuesday February 25, 2020 @05:53AM (#22412214)
Well to nitpick your nitpick. Internet Explorer did allow you to use vbscript to manipulate the DOM.

http://www.herongyang.com/VBScript/IE-Browser-DOM-API-Docume...

Also you can use XSLT to create a new DOM tree in a browser from an XML document.

http://www.informit.com/articles/article.aspx?p=24032&seqNum...

EDIT: I forgot about JScript vs JavaScript vs ECMAScript.

https://johnresig.com/blog/versions-of-javascript/

However much of this isn't relevant today.

Re:What people in tech had to say about JavaScript when it d... by nickthemagicman on Tuesday February 25, 2020 @07:00AM (#22412453)
So in other words: 1: to fix js chaining 2: to fix js compatibility Ergo to make js suck less.
Re:What people in tech had to say about JavaScript when it d... by JimDabell on Tuesday February 25, 2020 @07:39AM (#22412661)
No. The first is incoherent, the second ignores half my comment.
Re:What people in tech had to say about JavaScript when it d... by nickthemagicman on Tuesday February 25, 2020 @09:33AM (#22413502)
You're splitting hairs with that half of your comment so I ignored it.
Re:What people in tech had to say about JavaScript when it d... by tabtab on Monday February 24, 2020 @07:38PM (#22409898)
To an extent, yes, but didn't entirely solve the problem. When something goes wrong with Jquery or something that uses it, Jquery is yet another layer to debug or break. There's a point where throwing more layers at a problem has diminishing returns.

The solution (for CRUD makers) is to make common desktop GUI idioms part of a standard instead of emulate them all. This includes but is not limited to: MDI windowing (as an option), modal panels, drop-down menus, tabs, combo boxes, editable column-expandable data grids, expandable trees, tool bars, and a decent multi-select widget instead of using (just) the Ctrl key. HTML frames were helpful, but have since been deprecated. Somebody found them too useful? Mobile land is too different from desktop land. Forcing a lowest common denominator is bad for business IT productivity.

Re:What people in tech had to say about JavaScript when it d... by shados on Monday February 24, 2020 @09:17PM (#22410417)
I remember dealing with JS early on the same way I deal with bash today. With all the weird apis no one understood at the time, limited internet resources (and even books at first), it was just a crazy quest to hunt someone who knew what to do, copy it, and try to tweak it (usually unsuccessfully) until something kind of sortoff does what you want.
Re:What people in tech had to say about JavaScript when it d... by dvfjsdhgfv on Tuesday February 25, 2020 @02:46AM (#22411535)
> It didn't run outside of the browser, so how dare you call yourself a developer if you were using it?

That's not exactly accurate, you could actually do some server-side things with it and I knew people who did it (late 90s, early 00s) - although I never understood why and the company went bankrupt in the end.

Re:What people in tech had to say about JavaScript when it d... by thrower123 on Monday February 24, 2020 @07:59PM (#22410016)
Java Applets over current connections, on current hardware, and written with Kotlin would be pretty nice. Especially if we still had plain old HTML and CSS too for non-applications.
Re:What people in tech had to say about JavaScript when it d... by NeoBasilisk on Monday February 24, 2020 @06:14PM (#22409440)
>It's easy to forget, but for years after its introduction JavaScript didn't work well.

I haven't forgotten, and I will never forget.

Re:What people in tech had to say about JavaScript when it d... by thdrdt on Tuesday February 25, 2020 @01:31AM (#22411326)
This is why you could charge a lot of money for rollover effects (most of the time image swapping).

JavaScript was hard.

I remember writing complex graphic applications in Director. But I think it took at least 10 years before the same was possible in JavaScript.

Re:What people in tech had to say about JavaScript when it d... by dillonmckay on Monday February 24, 2020 @09:55PM (#22410554)
I always thought the big paradigm shift was the introduction of xmlhttprequest.

Prior to that, it was really just form validation and cool DHTML interactions.

I also wonder why AJAX is not called AJAJ?

Re:What people in tech had to say about JavaScript when it d... by JimDabell on Monday February 24, 2020 @10:24PM (#22410670)
The "X" in the acronym comes from XMLHttpRequest, an API that was originally provided by Internet Explorer to enable fetching XML in Outlook Web Access. It wasn't until later that fetching JSON with it became popular – XMLHttpRequest predates JSON by a few years.
Re:What people in tech had to say about JavaScript when it d... by Endy on Monday February 24, 2020 @07:58PM (#22410013)
Well, if by 'for years', you mean 25 years, you're right. ECMAScript is still hot garbage that clogs up computers and the internet, ballooning requirements on browsers and nearly forcing the monoculture we have in terms of browsers and rendering. If you want a website, you should write a website. If you want a program, you should write a program. Don't write programs to run in the same space as websites.
Re:What people in tech had to say about JavaScript when it d... by emtel on Monday February 24, 2020 @08:15PM (#22410098)
> Don't write programs to run in the same space as websites.

Who do you imagine is going to find this advice compelling?

Re:What people in tech had to say about JavaScript when it d... by james_s_tayler on Monday February 24, 2020 @08:22PM (#22410145)
I know right. Why would you ignore the single best distribution channel that has ever existed for software?
Re:What people in tech had to say about JavaScript when it d... by tabtab on Monday February 24, 2020 @06:25PM (#22409497)
Re: It's easy to forget, but for years after its introduction JavaScript didn't work well.

And STILL doesn't, at least for anything non-trivial. New browser brands or version often "break" a lot of libraries and code. It's not really JS's fault: HTML wasn't meant to be emulate real desktops, and shoehorning it to do so has made a giant tangled multi-layer mess.

Browser standards should be split into three focus areas:

1. DOC: Document-oriented for text display and editing. It would be similar to existing browser but with more word-processing-like features. [I removed "read only"]

2. GUI: Mouse-centric stateful GUI markup for data-oriented "productivity" CRUD applications.

3. ART: charts, games, music, and movies.

The one-size-fits-all "standard" mostly failed (job security aside), time to split and focus. Let's admit we f!!! up as an industry.

Re:What people in tech had to say about JavaScript when it d... by AgentME on Tuesday February 25, 2020 @01:30AM (#22411320)
>New browser brands or version often "break" a lot of libraries and code.

When has it happened that browsers have broken standardized features? Browsers have gone through large lengths to stay backwards compatible. It's hard for me to think of things that have been broken besides nonstandardized stuff (like plugins, or things that only worked in one browser to begin with like IE).

Re:What people in tech had to say about JavaScript when it d... by underwater on Monday February 24, 2020 @06:32PM (#22409532)
Websites don't exist in neat silos. Web technologies like JS aren't perfect, but they haven't failed be any stretch of the imagination. What other platforms are still alive and evolving decades after their creation?
Re:What people in tech had to say about JavaScript when it d... by tabtab on Monday February 24, 2020 @06:45PM (#22409602)
VT-100, IBM 3270 terminals, X-Window, Tk, Qt, Oracle Forms (with some caveats).

And just because "web" more or less works doesn't mean we should stop trying. Web UI's for typical CRUD are expensive to build and maintain compared to 90's IDE's. Yes, I realize it made deployment simpler, but programming has at least doubled for the same feature set at the average shop. (There are exceptions, I know, I'm talking average.)

If somebody can justify "it must be that way", I'd like to see the logic. I'm highly skeptical. We just accepted our CRUD Rut as an industry because it's good job security, not because it's efficient. That's somebody else's bill. A good GUI-over-HTTP standard would make a boatload of dev problems float away. I really miss state, for one; it was a good thing. Oh Darling State, I surely miss thee, wherefore art thou? Jetsons tech was yanketh from my finger, and replaceth with Flintstone fiddle diddleth.

(And why are my posts getting bad scores? I don't get it. Ask first, and then neg.)

Re:What people in tech had to say about JavaScript when it d... by anthk on Monday February 24, 2020 @10:42PM (#22410748)
- Tcl/Tk

- Perl5

- Python

- VT220/VT100 terminals + ncurses

Re:What people in tech had to say about JavaScript when it d... by Polylactic_acid on Monday February 24, 2020 @06:28PM (#22409506)
The problem is most pages need to fall in to 1 and 2. Wikipedia is a document website but it also has editing features and it also has interactive mouse things like the hover previews.
Re:What people in tech had to say about JavaScript when it d... by tabtab on Monday February 24, 2020 @06:37PM (#22409563)
Good point. Perhaps I shouldn't have said "read only" in #1. Just plain "document centric", including editing of documents and text.

There will always be some overlap, but that doesn't entirely diminish the value of focus. It may be possible for a given window or panel to select which focus-standard it uses to make mix-and-match a bit easier.

A given "starting" browser, typically the document-oriented one which will contain menus and lists (such as an intranet) could be configured to select the user's or org's desired GUI and Art engine. And each "engine" will contain a minimal common sub-set, mostly around existing HTML.

Re:What people in tech had to say about JavaScript when it d... by agumonkey on Monday February 24, 2020 @08:41PM (#22410260)
I used to think so, but with reactive components and css layout like grid, you have enough clear paths for most use. This dom thing seems like it's here to stay for a few decades more.
Re:What people in tech had to say about JavaScript when it d... by tabtab on Wednesday February 26, 2020 @01:17PM (#22425630)
Everything I've seen so far either has a huge learning curve to do right/well, breaks over time, or both. If there is a product out there that solves these, that would be nice. I'm skeptical, but I'll ask around...