Note to JS
[kill9.git] / harmful / software / javascript.md
CommitLineData
4071814b 1# JavaScript and its consequences have been a disaster for the human race
ccb424f8 2
3JavaScript is a programming language often used on websites. To create
4dynamic content on client end. Some dudes thought that extracting the
5V8 (chromium javascript interpreter) and making it a executable file
6to run javascript outside the browser was a good idea and now we're
7doomed.
8
9JavaScript is not only stupid (javascript returns true when) ```true +
10true === 2``` Which means that true is literally ```#define true 1```
11
12At the end that doesn't matters. Because it's a useless fact to be
abf2637e 13honest. It only shows how bad designed the shit is. But the pain starts
14when you actually use that programming language.
ccb424f8 15
4071814b 16## Developers idiocy
ccb424f8 17
18First of all the language is slow as fuck. And websites are BLOATED of
19JavaScript nowadays. Adding ***USELESS*** function i'd never like to
20use, or functions I already disabled on my browser. Such as smooth
21scrolling. I hate smooth scrolling. But some websites force me to use
22it because JavaScript.
23
24## Idiocy examples
25
26~~~
27
28<true + true === 2
29>true
30<true == "1"
31>true
32<false == 0
33>true
34<false == "0"
35>true
36
37<false == undefined
38>false
39>false == null
40<false
41
42<null == undefined
43>true
7a1ab46f 44
16c7d46b 45// I specially like this one
46
47<[]+{}
48>"[object Object]"
49<{}+[]
50>0
51
ccb424f8 52~~~
53
54## Disabling JavaScript
55
56Unless you only use 1.0 websites. Disabling javascript will broke your
57internet experience, but will make it way faster. just install
58noscript and have fun with your sane browser.
59
9c93887f 60# NodeJS
ccb424f8 61
62Node is what happens when you extract the JavaScript interpreter from
63chromium and put it on the desktop. This allows the user to execute
64.js files on the desktop without a browser. Which is stupid. A web
65programming language shouldn't be on desktop. Just on the web. But
66thanks to this great idea we've now worse things
67
68(Node isn't even a JavaScript implementation. It is just the V8 engine
69outside the Chromium browser. Meaning that node is just a part of
70chromium with marketing)
71
4071814b 72# Syntax
73The syntax was written by a gorilla, it uses camelCase, (I don't
74like it, but well, i can live with it).
75
76for example, `in JS you do document.getElementById("foobar");` I guess
77this is ok, but like I said, this was written by a monkey, becuase
78then we have functions: `XMLHttpRequest` <-- What the hell? Why is
79XML capitalized, but Http isn't? A good language, let's say, C, would
80have done it like this: `xml_http_request`; (which is saner)
81or `XML_http_request()` if you use the weird OpenSSL functions names lol
82
83
9c93887f 84# Electron
ccb424f8 85
86Electron is what happens when you hire web developers but you gotta
87make the program aviable for the desktop. The problem is that
88JavaScript can't do graphics (as far as I know, there's no X11 library
89for JavaScript, thankfully) So what do they do to use GUIs on
90JavaScript? Make every program a mini-chromium browser! So every
91program that's running electron is just chromium browser. Which is
4071814b 92truly stupid. And a lazy way to do programming.
ccb424f8 93
94Here's what is needed to run a program (Written in a compiled language) in GNU/Linux:
95
96<img src="C.png" width=300px>
97
98And this is what is needed to run a program written in electron:
99
100<img src="Electron.png" width=300px>
101
102# Links
103
104[JAVASCRIPT WAS A MISTAKE](http://www.bordi.ga/blog_shit/js.html)
69b11735 105
106![Tom Araya can't scream like i'm internally screaming
107rn](/1592614085502.png)