12a0f5425349b08032e527f1d58f5b107aca4c64
[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 // I specially like this one
45
46 <[]+{}
47 >"[object Object]"
48 <{}+[]
49 >0
50
51 ~~~
52
53 ## Disabling JavaScript
54
55 Unless you only use 1.0 websites. Disabling javascript will broke your
56 internet experience, but will make it way faster. just install
57 noscript and have fun with your sane browser.
58
59 # NodeJS
60
61 Node is what happens when you extract the JavaScript interpreter from
62 chromium and put it on the desktop. This allows the user to execute
63 .js files on the desktop without a browser. Which is stupid. A web
64 programming language shouldn't be on desktop. Just on the web. But
65 thanks to this great idea we've now worse things
66
67 (Node isn't even a JavaScript implementation. It is just the V8 engine
68 outside the Chromium browser. Meaning that node is just a part of
69 chromium with marketing)
70
71 # Syntax
72 The syntax was written by a gorilla, it uses camelCase, (I don't
73 like it, but well, i can live with it).
74
75 for example, `in JS you do document.getElementById("foobar");` I guess
76 this is ok, but like I said, this was written by a monkey, becuase
77 then we have functions: `XMLHttpRequest` <-- What the hell? Why is
78 XML capitalized, but Http isn't? A good language, let's say, C, would
79 have done it like this: `xml_http_request`; (which is saner)
80 or `XML_http_request()` if you use the weird OpenSSL functions names lol
81
82
83 # Electron
84
85 Electron is what happens when you hire web developers but you gotta
86 make the program aviable for the desktop. The problem is that
87 JavaScript can't do graphics (as far as I know, there's no X11 library
88 for JavaScript, thankfully) So what do they do to use GUIs on
89 JavaScript? Make every program a mini-chromium browser! So every
90 program that's running electron is just chromium browser. Which is
91 truly stupid. And a lazy way to do programming.
92
93 Here's what is needed to run a program (Written in a compiled language) in GNU/Linux:
94
95 <img src="C.png" width=300px>
96
97 And this is what is needed to run a program written in electron:
98
99 <img src="Electron.png" width=300px>
100
101 # Links
102
103 [JAVASCRIPT WAS A MISTAKE](http://www.bordi.ga/blog_shit/js.html)
104
105 ![Tom Araya can't scream like i'm internally screaming
106 rn](/1592614085502.png)