Update
This commit is contained in:
parent
1343c90ee8
commit
edb70b8898
33 changed files with 2184 additions and 2044 deletions
|
@ -6,7 +6,27 @@ JavaScript (JS) is a very [popular](shit.md), highly [shitty](shit.md) [bloated]
|
|||
|
||||
**How bloated is JavaScript?** Very much. A [MINIMALIST](minimalism.md) [C](c.md) implementation called QuickJS has around 80K [lines of code](loc.md) -- compare e.g. to about 25K for [tcc](tcc.md), a similar style implementation of C, and about 5K for [comun](comun.md). A more mainstream implementation of JavaScript, the [v8](v8.md) engine (used e.g. in node.js) has **over 1 million lines of code** of C++. { Checked with *cloc*. V8 also contains web assembly aside from JavaScript, but still you get the idea. ~drummyfish }
|
||||
|
||||
Number 1 rule of a good webdesign is: **NEVER use JavaScript**. Website is not a program, website is a document, so it doesn't need any scripts. Privacy freaks hate web JavaScript because it's a huge [security](security.md) vulnerability (websites with JavaScript can spy easily on you -- yes, even if the script is "[free software](free_software.md)" and yes, even if it runs under VM and so on) -- we don't fancy security but JavaScript is still bloat and [capitalist](capitalism.md) shit, it makes a website literally unusable in good browsers (those that don't implement JavaScript) so [we](lrs.md) hate it too. Basically everyone hates it.
|
||||
In summary, here is what we can thank JavaScript for:
|
||||
|
||||
- Only the richest [corporations](corporation.md) can now make a web browser.
|
||||
- Websites can't be indexed, download or archived.
|
||||
- Websites can spy on you.
|
||||
- Websites can mine [crypto](crypto.md) on your computer.
|
||||
- Websites burn more CO2.
|
||||
- Websites automatically download and run arbitrary code on your computer without asking.
|
||||
- Old computers can no longer browse the web.
|
||||
- Websites can refuse to display the content if you have adblock.
|
||||
- Websites can automatically open pop-up [ads](marketing.md), prevent you from scrolling, prevent you from right-clicking or zooming.
|
||||
- We have more [security](security.md) vulnerabilities.
|
||||
- Web browsers have to be constantly [updated](update_culture.md) else everything stops working. Websites too.
|
||||
- People waste lives on designing a completely useless language and solving problems they themselves [arbitrarily create](antivirus_paradox.md). Students waste time learning it and teachers waste time teaching it.
|
||||
- ...
|
||||
|
||||
But this is just a small price for all the advantages JavaScript brought us, namely:
|
||||
|
||||
- nothing
|
||||
|
||||
And so we get to the number 1 rule of a good webdesign: **NEVER use JavaScript**. Website is not a program, website is a document, so it doesn't need any scripts. Privacy freaks hate web JavaScript because it's a huge [security](security.md) vulnerability (websites with JavaScript can spy easily on you -- yes, even if the script is "[free software](free_software.md)" and yes, even if it runs under VM and so on) -- we don't fancy security but JavaScript is still bloat and [capitalist](capitalism.md) shit, it makes a website literally unusable in good browsers (those that don't implement JavaScript) so [we](lrs.md) hate it too. Basically everyone hates it.
|
||||
|
||||
In the past JavaScript was only a **[client](client.md) side** scripting language, i.e. it was used in [web browsers](web_browser.md) (the clients) to make computations on the client computer (which suffices for many things but not all) -- as a browser language JavaScript interoperates with [HTML](html.md) and [CSS](css.md), other two languages used on websites (which are however not programming languages). For server side computations [PHP](php.md), a different language, was used, however later on (around 2010) a framework/environment called [node.js](node_js.md) appeared which allowed JavaScript to be used as a more general language and to be used for server side programming as well; as it's more comfortable to write everything in a single language, JavaScript started to replace PHP in many places, though PHP is still used to this day.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue