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