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