Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fuck javascript

Name: Anonymous 2015-06-26 4:55

Unless the software you want on the web is a UI in itself, like Google Docs, you don't actually need javashit. Minimize its use totally.

The ``web app'' can still by dynamic--just serve everything from the server as nice compact html files. The user changes the state of something, serve a new html page.

``B-b-bbbut muh AJAX calls can make it more like a real program!'' Forget it. The only reason you need to make AJAX calls when the user changes state and then modify the original page based on the response, is because loading a new page with all your javashit will take forever. This is the solution to a problem that's caused by itself: javashit. If you would just remove all <script> tags and serve plain HTML and CSS, loading a new page would take just as long or less than the AJAX query. Besides, a new page for a new state in your application is much more intuitive.

It's time to end the cargo cult mentality of making websites that rely on javashit. When it comes to websites, you're sacrificing the most important resource (network resources) for the sake of some eye candy and phony UX bells and whistles, which users don't really care about.

Craigslist and Amazon are one of the few websites who know what they're doing. They both work very well without javascript. It automatically works perfectly well on mobile devices with very little customization only for mobile, because it's regular html that has worked forever. The big problem about browser and device compatibility in the javashit world is nullified by simply not using javashit.

Using javashit to make a ``web app'' introduces massive complexity. The worst part is that it's totally unnecessary, nothing but an exercise in vanity.

Name: Anonymous 2015-06-28 10:17

splitting an application into parts has multiple advantages in the enterprise. A frontend written in JavaScript can maintain its own state, reducing the backend to an HTTP API. /prog/ doesn't need a javascript powered UI, but trying to write a reasonably complex accounting app with server-side rendered HTML gets old fast. Generating HTML on the backend is tiresome, and doesn't allow you to do things such as instant validation / table sorting & filtering.

Furtermore, the frontend is seen as less vulnerable. A sensibly designed backend needs to be closely watched for exploits but as long as all authentication is done in secure httpOnly cookies we can "move fast" with the frontend team.

you'd probably be one of those guys who's proud to be in the backend team.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List