Add new post

This commit is contained in:
Anthony Wang 2021-02-26 10:26:48 -06:00
parent 8f455e2dda
commit 369528b0e8
Signed by: a
GPG key ID: 6FD3502572299774

View file

@ -1,41 +0,0 @@
---
layout: post
title: "The Web Sucks!"
author: Ta180m
tags: ["Web"]
---
[suckless.org](https://suckless.org) really hates [the web](https://suckless.org/sucks/web/). I'll quote them directly:
> *It has enabled the global information exchange, mass surveillance, studies in social control, allowed revolutions, made a fortune for many billionaires and in the meanwhile ruined our climate: the web.*
> *There is an industry which is specialized on extending the resource usage to display just some characters on your display. Millions of jobs are based on outputting HTML in an inefficient way. Look at PHP and all the techniques to extend its "scalability". It is not scalable, it's a prototyping language. Not to mention all its syntactic irregularities. Nowadays classes on classes on classes with getter and setter functions define buttons which can be stripped down to just a simple character string. The web is the practical example why corporate software development does not work and never will. It only ruins our environment, sanity and many brains which could be used for the better of humanity.*
> *PHP was used as the primary example for how interpreted languages produce resource waste. There were optimisations for compiling PHP to C++(!). But this is just a way to allow the mass of programmer sheep to go on and sleep calm at night.*
But why? How did web go from something to make all of humanity's knowledge available and connect people around the world turn into *this*?
To understand, we must first go back to 1995. You're probably thinking, that's when the Internet first started taking off, right? Nope, this is when Java was released.
## Java
What does Java have to do with our current Internet mess? Everything. The date was 1995 May 3, a day that altered the course of programming history. The sad saga of the Internet begins here, with the release of Java.
What was Java all about? What new concept did it try to bring to the table? That's right, **Write Once, Run Anywhere (WORA)** (also known as [Write Once, Run Away](https://stgray.com/quotes/javaquotes.html)). Most programmers are lazy, and writing apps for every different OS variation is a boatload of work. I mean, look at Windows and Linux. They are completely different beasts, right down to the core. To begin with, they have different [line endings](https://www.hanselman.com/blog/carriage-returns-and-line-feeds-will-ultimately-bite-you-some-git-tips) which always seems to pop up in places where you expect it the least. Anyways, here comes Java, and suddenly, you can *write once*! Magic! Of course, early Java implementations didn't exactly deliver on performance, not until optimizations like JIT became a thing, but still! This was a revolution.
So, why did I just dump all of this information? Because here we see the crux that is the crap of the modern web. It all comes down to programmer laziness and convenience. And Java was the beginning. (Well, you can find examples of this much earlier, but I'm leaving them out of this post)
The web was also beginning its meteoric rise around 1995. Then, some lazy programmer put 2 and 2 together and came up with Java web applets (hey also turned out to be hideous security holes). Now you could not only WORA, but *also* deliver your crummy little Java apps *over a browser*. No more installing stuff (except for Java). It was that easy!
And people took great advantage of it. Soon, all the major browsers, or at least the ones that wanted to be competitive, started shipping with support for Java applets. And that was the beginning of the idea that the humble *browser* could be the vector for this infection.
But no one uses Java applets anymore. In fact, they were officially discontinued in 2018 for being such cancerous security holes. While Java applets have not been able to survive the turbulence of time, a similarly named thing has.
## Java... Script!
Yep, that's right, JavaScript!