r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Mar 21 '24

Well that's it. You're comparing a language with compiler to a language that doesn't need one to run. But when there's an option for a compiler/transpiler/linter, you don't want to use it? lol. The browser is not a compiler. So when you run the JS code, it won't check your code for you. It will just try to run it. Setting up a compiler is dev's task. You don't force your users to setup a compiler on their computers to check your code for you lol. The user only needs to download the runtime environment and you just need to spit out codes that works on their runtime

1

u/Quito246 Mar 21 '24

Python also does not have compiler and does not make such stupid implicit type casts so not having a compiler is not excuse tbh.

3

u/[deleted] Mar 21 '24

It's not an excuse as well that you didn't use a transpiler/linter on your dev environment when there's a ton of options for it then later cries for type issues lol

1

u/Quito246 Mar 21 '24

No why should I bother to fix language design issues? This issues should be solved by language designers and not me installing some crappy 3rd party tools.

3

u/[deleted] Mar 21 '24

Because JS itself doesn't have its own runtime. There's no single repo or program for its runtime. All runtimes were build by different people/company ranging from desktop browsers, mobile browsers, server runtime, environment. etc. And these "language designers" were from different companies that tries to make these standards and implement whatever features agreed upon to their own runtimes to make the web consistent for all.

1

u/Quito246 Mar 21 '24

What does runtime have to do with that? C++ for example has also several compilers but they all behave the same, according by the ISO standard, therefore even if there is new compiler it has to be compliant. JS just did a poor decisions regarding the specifications, if they said that implicit casts can not happen then the runtime would just not implement it🤷‍♂️

2

u/[deleted] Mar 21 '24

It's not about making the right decision. It's all about making the web consistent. If we prioritize right decision above all, then we'll need to rewrite all project every single time. Which can happen faster than you can deliver a working feature. It would not be fun for everyone if you deployed a web app then all of a sudden, it would not work as intended because the user upgraded its browser.

0

u/Quito246 Mar 21 '24

Well thats my point if the right decisions sere made at the beginning, then we would not have this debate👍

2

u/[deleted] Mar 21 '24

You'll never make the right decision from the beginning. Especially for something unique. Unless you have a time machine to look for the future. It's up to the present to fix it

0

u/Quito246 Mar 21 '24

Hmm interesting, yet many languages would proove you wrong.

→ More replies