this post was submitted on 16 Jun 2023
84 points (96.7% liked)

Programmer Humor

32560 readers
1118 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Freesoftwareenjoyer@lemmy.world 0 points 1 year ago (1 children)

Javascript should just be able to be opened in a browser and run with no fuss

It can be. But if you want to have modules you need to use something to compile them into a single file.

[–] Serdan@lemm.ee 0 points 1 year ago (1 children)

There are native modules, no?

Yes, but then the browser will fetch them with separate HTTP requests. You might not want to wait for 10 requests to finish before your web app can load.

Also if you want to use the features of TypeScript or SASS (many people do), you will need to turn that code into something the browser will understand.