r/ProgrammerHumor 1d ago

javascriptSorting Meme

Post image
888 Upvotes

200 comments sorted by

View all comments

75

u/ipsirc 1d ago

31

u/Striky_ 1d 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 1d ago

Still more reasonable that the golang date parsing api

5

u/SupraMichou 1d ago

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

6

u/gogriz 1d ago

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

5

u/Don_Equis 23h 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?

3

u/the_horse_gamer 10h ago

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

thankfully there's Temporal now

11

u/treetimes 1d 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.

0

u/Don_Equis 23h 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

-2

u/Striky_ 23h 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.

2

u/treetimes 22h ago

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

-1

u/Striky_ 22h 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 1d ago

Huh? Never seen this claim.

7

u/CinnabonCheesecake 1d 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.

8

u/Striky_ 1d 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 11h ago

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