Javascript sucks
tags:You saw the title, yea I’m starting to learn PHP because I HATE JAVASCRIPT. Javascript is trash. If you want to serve your website you write using Javascript, users’ browser has to download your code.
Okay ryusuke, and what’s the problem?
First, Javascript is bloated. Imagine if you write a website with Javascript framework like React or something idk, and you build it. The build size of standard React build is like around 500kb. You think this is not that big? yea, but what about users with low-end device and/or slow internet? like ME. It’s pain in the ass
Okay so it is your problem, why even bother?
Second, I know it’s my device and network problem. but it’s not just me who has this problem, still many people suffering about this issue, RIGHT?
Also as I said, if you write your website and it has Javascript, users will download the Javascript files from your server and their browser will execute it. This is called Client-Side rendering and also a problem
The problem of Javascript (Client-Side) rendering is, when users or even you open a website and download the Javascript files, do you know what the scripts run in your browser? yes, you don’t know… this mean if the developers write malicious scripts, trackers, etc. You will run it in your browser.
Why not just check the network tab in devepoler console?
It’s already too late. When you open a website, it’s already downloading the scripts and why do you even need to check developer console everytime you open a website? that’s insane. Also average normie users don’t even know what developer console is.
I hope you understand. So from now on, I will ditch Javascringe and begin to learn PHP. I will write a new blog on why I choose PHP because I don’t want this post to get too
long.
- Peace, Ryusuke