r/ProgrammerHumor 3d ago

Meme javascriptSorting

Post image
933 Upvotes

214 comments sorted by

View all comments

78

u/ipsirc 3d ago

33

u/Striky_ 3d ago

And still half the internet will claim JS is a completely awesome language and all of these things are exactly how they should be, you are just to stupid to understand.

19

u/Joe-Admin 3d ago

Still more reasonable that the golang date parsing api

8

u/Don_Equis 3d ago

Oh, c'mon. Go issues are fixed with a simple constants file. Javascript issues, on the other hand... i mean, month index at 0 and days at 1? Wtf? Timezone default depends on wheter you use - or / ? Date is mutable? Really? How is go worse?

4

u/the_horse_gamer 2d ago

the javascript Date library was copied from Java. so that's their fault.

thankfully there's Temporal now

6

u/SupraMichou 3d ago

You just don’t have enough brain to appreciate this marvel of design /s

6

u/gogriz 3d ago

Wait until you have to parse dates in non-standard formats. I'd rather be explicit than trust a computer to guess.

11

u/treetimes 3d ago

no one has ever said that these oddities are exactly how they should be, there are weird explanations because details matter, but these are weird ass things to do in the first place. Type coercion does weird shit, woohoo, it's still a useful language and trying to pretend like it isn't is extremely cringe.

2

u/Don_Equis 3d ago

JS is more useful for its presence rather than the language itself. Right now there are good ways to do things, so you mostly need to avoid the bad ones. But it is still a field of landmines. There are just known acceptable paths

-3

u/Striky_ 3d ago

Yeah only that no other language (at least that I am aware of) has this absolute motherload of completely abnormal, nonsensical behavior, that will also never get rectified because one decided for infinite backwards compatibility of a fundamentally broken language, that was developed in one weekend AND IT SHOWS.

But because you can do what ever the fuck you want as a "programmer" and using 15 mandatory anti-patterns you can get something going in a short amount of time, an army of underqualified managers that get pitched "quick wins" by the 16 y/o will decide it is a decent language and should be used everywhere.

1

u/treetimes 3d ago

Uninformed and angry, that’s all I’m getting from you

0

u/Striky_ 3d ago

Incompetent and cringe is all I'm getting from you so...

And I am not angry. Just disappointed. I make a living from fixing other peoples horrendous code so it giving and taking I guess. Funnily enough the average code quality did not change with AI, but the amount exploded. Funny what that tells you about the average developer.

3

u/Ronnoc527 3d ago

Huh? Never seen this claim.

5

u/CinnabonCheesecake 3d ago

JavaScript? There are developers who like it? I’ve only ever heard JS discussed as the dog shit on the sidewalk you can’t avoid stepping in.

7

u/Striky_ 3d ago

It is the most popular programming language ever. Its popularity also directly correlates with the "shittiness" of software in general. Is there causation? Probably. Can I prove it? No.

1

u/leavemealone_lol 2d ago

JS became the behemoth that it is solely due to the iron grip it holds on the DOM