kill9/harmful/software/javascript.md

133 lines
3.8 KiB
Markdown
Raw Normal View History

2020-08-25 18:40:48 +00:00
# JavaScript and its consequences have been a disaster for the human race
2020-05-12 21:51:54 +00:00
2021-06-13 17:03:49 +00:00
>The beach is essentially shit of fish, and we humans love it, we
>humans love shit
-- Me, circa 2021
2020-10-12 19:33:19 +00:00
2021-06-13 17:03:49 +00:00
(That's why JS is popular)
OR: Manmade virus infecting the world.
2020-05-12 21:51:54 +00:00
JavaScript is a programming language often used on websites. To create
dynamic content on client end. Some dudes thought that extracting the
V8 (chromium javascript interpreter) and making it a executable file
to run javascript outside the browser was a good idea and now we're
doomed.
JavaScript is not only stupid (javascript returns true when) ```true +
true === 2``` Which means that true is literally ```#define true 1```
At the end that doesn't matters. Because it's a useless fact to be
2020-09-05 12:48:55 +00:00
honest. It only shows how bad designed the shit is. But the pain starts
when you actually use that programming language.
2020-05-12 21:51:54 +00:00
2021-06-13 17:03:49 +00:00
# Developers idiocy
2020-05-12 21:51:54 +00:00
First of all the language is slow as fuck. And websites are BLOATED of
JavaScript nowadays. Adding ***USELESS*** function i'd never like to
use, or functions I already disabled on my browser. Such as smooth
scrolling. I hate smooth scrolling. But some websites force me to use
it because JavaScript.
2020-10-12 19:33:19 +00:00
Not to mention the fucking thing runs like shit because developers
don't really know how to write this abyss programming language. For
example, In a good browser (pale moon), Javascript runs like shit
(IT'S A FEATURE). No I mean, literally, Tweetdeck runs 100 times
better than fucking regular twitter.com.
And remember, if you use a good browser (pale moon), which has slow
javascript interpretation, haha! good luck browsing the web with
javascript enabled! it will be fucking impossible
2021-06-13 17:03:49 +00:00
# Idiocy examples
2020-05-12 21:51:54 +00:00
~~~
<true + true === 2
>true
<true == "1"
>true
<false == 0
>true
<false == "0"
>true
<'0' == 0
>true
<'\t' == 0
>true
<[] == 0
>true
<'\t' == []
>false
2020-05-12 21:51:54 +00:00
<false == undefined
>false
>false == null
<false
<null == undefined
>true
2020-08-26 20:43:24 +00:00
2020-08-25 18:48:17 +00:00
// I specially like this one
<[]+{}
>"[object Object]"
<{}+[]
>0
2020-05-12 21:51:54 +00:00
~~~
2020-10-12 19:33:19 +00:00
# Disabling JavaScript
2020-05-12 21:51:54 +00:00
Unless you only use 1.0 websites. Disabling javascript will broke your
internet experience, but will make it way faster. just install
noscript and have fun with your sane browser.
# NodeJS
2020-05-12 21:51:54 +00:00
Node is what happens when you extract the JavaScript interpreter from
chromium and put it on the desktop. This allows the user to execute
.js files on the desktop without a browser. Which is stupid. A web
programming language shouldn't be on desktop. Just on the web. But
thanks to this great idea we've now worse things
(Node isn't even a JavaScript implementation. It is just the V8 engine
outside the Chromium browser. Meaning that node is just a part of
chromium with marketing)
2020-08-25 18:40:48 +00:00
# Syntax
The syntax was written by a gorilla, it uses camelCase, (I don't
like it, but well, i can live with it).
for example, in JS you do `document.getElementById("foobar");` I guess
2020-08-25 18:40:48 +00:00
this is ok, but like I said, this was written by a monkey, becuase
then we have functions: `XMLHttpRequest` <-- What the hell? Why is
XML capitalized, but Http isn't? A good language, let's say, C, would
have done it like this: `xml_http_request`; (which is saner)
or `XML_http_request()` if you use the weird OpenSSL functions names lol
# Electron
2020-05-12 21:51:54 +00:00
Electron is what happens when you hire web developers but you gotta
make the program aviable for the desktop. The problem is that
JavaScript can't do graphics (as far as I know, there's no X11 library
for JavaScript, thankfully) So what do they do to use GUIs on
JavaScript? Make every program a mini-chromium browser! So every
program that's running electron is just chromium browser. Which is
2020-08-25 18:40:48 +00:00
truly stupid. And a lazy way to do programming.
2020-05-12 21:51:54 +00:00
Here's what is needed to run a program (Written in a compiled language) in GNU/Linux:
2021-06-13 17:14:24 +00:00
![](C.png)
2020-05-12 21:51:54 +00:00
And this is what is needed to run a program written in electron:
2021-06-13 17:14:24 +00:00
![](Electron.png)
2020-05-12 21:51:54 +00:00
2021-05-22 21:17:06 +00:00
![](/1592614085502.png)
![](/1610633628.png)