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