"The fact is that JavaScript is one of the top reasons for security breaches on the client computer and client mobile phones" - source?<p>"Another point worth mentioning is that more and more people disable JavaScript uncompromisingly, using extensions such as NoScript, due to very valid security concerns." - source?<p>"If a website isn't working without JavaScript it is loosing potential visitors and customers on a regular basis." - none of my clients would want such visitors or "customers" anyway.<p>Now, I don't think JS should be used for everything, nor do I think the JS ecosystem is made of well designed code, but I think we should definitely stop pushing for bad HN content such as this one.<p>I genuinely wish there was a debate around alternatives to JS in the browser, but around better written articles.
The point is pushed a little forcefully and I would say from an extreme camp, but there are definitely good facets being presented here. Fighting for good accessibility in SPA websites is a huge chore because for some reason nobody gives a shit.
Writing like this makes it very hard to take the author seriously. I guess it’s supposed to be a rant?<p>> You do remember what plain HTML is right?<p>> Web development is not about how to make the work fast and easy for the "lazy" frontend developer who long since has forgotten how to manually do anything and as a result no longer knows or understands how to put a simple website together without the use of a barrier producing framework or technology.
> The optimal solution will always be to make sure that basic functionality works without JavaScript.<p>That's not the world we live in.<p>Already since the inception of the Web, the browser has been perceived as far more potent then simple rendering of hypertext. Rich Web Applications have always been part of the larger vision. It's the idea that you can deliver entire functional applications - interactive user experiences - to the end-user without having to install anything on your computer.<p>Remember Flash, Silverlight, Java Web Applets? All of these were attempts to fill a functional gap that browsers lacked through the 90's and 00's. The implementation of browser API's over the decades have allowed for the development of rich web experiences. For better or worse, the gateway to interact with these API's is JavaScript. Even so, the language is by and large inconsequential to a degree: the same basic concerns - security, accessibility - would always remain if browser API's were implemented in any other language.<p>> And the fact of the matter is that the majority of frontend developers aren't developing applications for niche markets with specific JavaScript requirements, rather they are developing regular websites, applications that in the end are just plain simple HTML.<p>There's no clear separation between "applications" and "websites". It's a spectrum. There are applications that render static hypertext, and there are websites with components that really act like applets. Hybrids do exist. And they are a completely valid business case.<p>Yes, accessibility and security are concerns. But treating them as a categorical imperative while ignoring the diversity and complexity of what the Web has grown into, well, that just won't do.
The article disregard that most of the time JavaScript is introduced into the fray because the product needs some level of interactivity that cannot achieved without it.<p>JavaScript right now is the only way a program can run in a page on the browser side.<p>The article also conflates problems caused by 1.) JavaScript being a hard dependency of an application, a misarchitecture, and 2.) low JavaScript code that is common in the wild<p>Those are different problems with different solutions. Both can be solved without removing JavaScript.<p>There are technology which can help reduce the importance of JavaScript in the client side. GatsbyJS is one of them. It allows generating static site and dynamic frontend app depending on what you need. Although GatsbyJS has its own problem that sometimes shoot you in the foot.<p>What we need is to raise awareness to service and product providers that browsing without JS is a thing! That way the whole industry can move in a more efficient manner. Rather than a struggle between engineering and product team, it will be the provider's struggle to provide for paying customers.<p>Meanwhile low JavaScript code quality in the wild - I don't really have a solid idea for it. I can be sure that wisdom can be gotten from the days of old where resource are scarce and things have to be super smart in order to work. There are hidden engineering gems and wisdom over there, but I don't know how to propagate it quick enough to match the growing number of devs. Meanwhile devs will keep coming because of the high demand and nowadays low barrier of entry. What we can do is to encourage the culture of rigor, thriftiness, and constant learning to keep code quality high.
There are <i>web applications</i> and there are <i>web documents.</i> Both utilize HTML and CSS. Applications typically also need JavaScript.<p>We've been discussing, no arguing, whether web technologies are appropriate for building applications. It's a moot point now - we've been doing it for twenty years. The horse has done left that barn. Besides, we don't have an alternative that's nearly so multi-platform across a wide variety of devices. For better or worse I simply don't see web applications or JavaScript going anywhere anytime soon.
I think frontend developers are not pushing Javascript. They are pushing cross platform development and distribution environment with UI rendering, REPL, debugger and profiler, which is able to run on almost every consumer device. There are no competitors here. Unfortunately JS comes as the default language in that otherwise brilliant package. But it does not mean you should use JS - fortunately due to it's simple and permissive nature JS has become a platform for tens if not hundreds of other decent languages.
The article feels like a plea to go back to the 80s and it's not entirely clear who the author is pleading to. There's no cabal of Frontend Developers pushing their Agenda. Instead there's employers, customers, and requirements. Can I write a serverless React-esque web app without using any Javascript?<p>The author also keeps mentioning "simple" web pages that shouldn't require JS (eg personal blogs), but in practice very few people code those from scratch.
I’m having a hard time imagining the post changing anyone’s mind. It read more like a rant than a request or call to arms, and I found the arguments to be thin versions of what the HN crowd will be familiar with.<p>I hope to be wrong and that more people will eschew JavaScript by default. Has anyone changed (or considered changing) their stance on JavaScript after reading?