r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

-23

u/Quito246 Mar 20 '24

Cool story, do you know how many times I tripped up by any type conversions in 7 years? ZERO times because I use statically and strongly typed languages sooo. I love seeing those excuses “Reee JS good this is just skill issue” instead of knowing that it is not skill issue but rather language design issue…

7

u/AshKetchupppp Mar 20 '24

Not everyone has a choice of what language they code in, you need a job and take a decent one where everything is in JS... you have to work in JS. You can try to find one in another language but ya boi gotta eat

6

u/iskyfire Mar 20 '24

Users of a programming language are able to find the edge cases in much the same way that users of an application can, but finding edge cases in JavaScript doesn't mean you will have a negative development experience or that the language is unable to efficiently complete tasks.

-8

u/Quito246 Mar 20 '24

No it just means that the language design is shit. Simple as that.

3

u/mypetocean Mar 21 '24

If you train the emotional center of your brain to hate the tools you're working with, you will have a hateful time. Spreading that unnecessary pessimism is even worse.

And if you are here just to piss on a tool you're not even using, then kindly touch grass.

0

u/Quito246 Mar 21 '24

I am just telling a fact, that JS is poorly designed thats it

4

u/reiner74 Mar 20 '24

Show me a language as backwards compatible as JS, then come back to talk about language design.

-7

u/Quito246 Mar 20 '24

cough cough Java, C, C++, C#. I can take C++ code from 80s and just compile it with latest gcc and it will work sooo

3

u/Eva-Rosalene Mar 20 '24

Don't pretend like C++ spec isn't stuffed with bad decisions caused by obsession with backwards compatibility then.

-1

u/Quito246 Mar 20 '24

Yeah it is but guess what still better decisions than JS, because it is shitty language created in week. But look at Java or C# they are also backeard compatible, and their decisions make sense, because creators thought about the language and how it will be designed more than one saturday afternoon. To be honest I do not understand those people who just defend JS, dont be silly all things considered it is a terrible language…

3

u/[deleted] Mar 21 '24

Skill issue lol. Just test your code before pushing it to prod.

0

u/Quito246 Mar 21 '24

Yeah sure, why not to write tests or waste time by testing something, which could be tested by compiler in any sane language🤷‍♂️

3

u/[deleted] Mar 21 '24

what? you solely rely on compiler/linter to know if you really passed the correct variable or not? You didn't test your code atleast once?

1

u/Quito246 Mar 21 '24

No what I mean is that I do not have to write type tests like insane person because compiler is doing that and I only write business logic tests which actually bring value.

3

u/[deleted] Mar 21 '24

Honestly, this is just skill issue. Just setup linter like eslint and you're good to go

Or just use typescript

→ More replies

0

u/Eva-Rosalene Mar 21 '24

Don't get me wrong - JS spec has a plenty of bad decisions. Most of them are there because it's both weakly and dymanically typed, but there are also things like ASI or defining document.all to be falsy.

But hear me out - it still provides pretty good developer experience with modern tooling and as long as you use TypeScript (it is different language, yes, but at the same time it's just JS with types: you can use it whenever you can use JS and you don't need to learn any new concepts). Developing in JS was shitty back at 00's and in early 10's, but is pretty much great today. Most of its design flows are covered if you use right tools.

0

u/Quito246 Mar 21 '24

Okay so you have to really on 3rd party tools to fix issues that should not even exist in any well designed language in first place. Guess what in C# all tools and linters I need is Roslyn aka compiler, which will never let you do such stupid stuff with random type casts etc. Just admit it what I say is a fact and that is the JS is poorly designed language…

1

u/Eva-Rosalene Mar 21 '24

Okay so you have to really on 3rd party tools

How is that even relevant? What is the difference between using tsc, a scary third-party tool vs using Roslyn (a blessed native tool), huh?

Just admit it what I say is a fact and that is the JS is poorly designed language…

JS has its share of bad design choices. It's still a great language.

1

u/Quito246 Mar 21 '24

Yeah sure “great” language thats why they had to create TS to even make JS possible. If they spend more than week designing language and have it at least strongly typed and not having those shitty random type casts then yeah it could be fine. For example python is much better language because it is also dynamically typed but at least it will not do such shitty things.

1

u/Eva-Rosalene Mar 21 '24

What's your point? Modern JS/TS is great. Old vanilla JS is worse.

→ More replies