3 ms·
It makes more sense if you think that an HTML is a static document, which then gets decorated by CSS, and lightly animated by JS. That is what the web was buil
by toyg 3y ago
It makes more sense if you think that an HTML is a static document, which then gets decorated by CSS, and lightly animated by JS.
That is what the web was built as. We were supposed to browse documents like we browsed magazines. Your React monstrosities were hacked on top of that model, turning the browser into an application runtime - which it wasn't meant to be.
- doctor_eval 3y agoThat’s a misreading of history. Here’s the announcement for JavaScript, which was posted here just yesterday[0]: It says, > MOUNTAIN VIEW, Calif. (December 4, 1995) -- Netscape Communications Corporation (NASDAQ: NSCP) and Sun Microsystems, Inc. (NASDAQ:SUNW), today announced JavaScript, an open, cross-platform object scripting language for the creation and customization of applications on enterprise networks and the Internet. (Emphasis mine) JavaScript was always meant for building applications. [0] https://news.ycombinator.com/item?id=36782761 https://news.ycombinator.com/item?id=36782761
- moritzwarhier 3y agoEven assuming JS that was originally meant for hover effects (or "rollover") and other "light animation", complex web applications predate React by a lot. Think Outlook Web, Google Maps, and all the smaller apps built with frameworks of their time such as Dojo, YUI etc There also are monstrosities with the server at the center... applications with hundreds of hidden form fields per page, required server sessions for anonymous users, DSLs in half-baked server-side templating languages, server code generating and injecting opaque JS to sync state with the client, the list goes on. And these things all have ups and downs themselves I guess, just like React has. In fact animation is one of my least favorite uses of JS, the more I can do in CSS, the better. As a user sometimes I enjoy complex animations but only when it serves a purpose.
- toyg 3y agoThose applications were meant to run on the server, more precisely on the Netscape proprietary appserver. On the browser they were meant to do popups and basic form validation at best. There was not even a network communication mechanism!
- doctor_eval 3y agoThis is not what was intended. Just read the 1995 announcement - straight from the horse’s mouth. It was clear that Netscape had big plans for this. JS had its limitations, sure, but it could talk to Java on the client - which certainly did have network access. And famously, Microsoft felt so threatened by this new “platform” that they feared it would make Windows redundant. The late 90s was a wild ride. > JavaScript is an easy-to-use object scripting language designed for creating live online applications that link together objects and resources on both clients and servers. While Java is used by programmers to create new objects and applets, JavaScript is designed for use by HTML page authors and enterprise application developers to dynamically script the behavior of objects running on either the client or the server. JavaScript is analogous to Visual Basic in that it can be used by people with little or no programming experience to quickly construct complex applications.
- toyg 3y agoYou just have to read that to see how JS was just meant as a bit of glue between JDK and html pages. Java would do the heavy lifting everywhere.
- doctor_eval 3y agoYes but you understand that the JDK was running in the browser, right? The browser has been an app platform since Netscape developed plugins. That is my whole point.
- toyg 3y agoBut Netscape didn't create Java. The browser was not created to be an application runtime; commercial interests shoehorned the role onto it.
- doctor_eval 3y ago> But Netscape didn't create Java So what? They didn't invent HTML either. > The browser was not created to be an application runtime It's been 35 years since HTML was invented, and 30 years since Netscape was released. There have been dozens - or maybe even hundreds - of browsers written in that time. So when you say, "the browser was not created to be an application runtime", really, I don't even know what that means. Which browser? Amaya? Arena? Lynx? Mosaic? Netscape? IE? IE6? Webkit? Blink? "The browser" was created to be whatever their creators wanted it to be. Netscape, for better or worse, wanted it to be an application platform. And, to their credit, they were right.
- yCombLinks 3y agoFrankly it doesn't matter what it was meant to be, and it doesn't help at all thinking about it as a way completely separate from reality.
- z3t4 3y agoWeb/JS did what Java tried to do, a runtime that works on all platforms. The problem is that its too heavy weight. But platform lockdown will prevent any competition.