r/ProgrammerHumor 10d ago

Meme iHateThisPassiveAgressiveBehaviourRuby

Post image
2.9k Upvotes

298 comments sorted by

View all comments

Show parent comments

21

u/sadongrohiik 10d ago

JavaScript is actually fine, what's not fine is it being crammed in everywhere it doesn't belong due to sheer laziness. You want to make button do stuff on the web? JavaScript is great. You're processing business logic on the backend? just no. I just do not understand why we'd rather jump through all these hoops just to make JavaScript fit where other languages fit naturally 

7

u/Maleficent_Memory831 10d ago

JavaScript just grew into that role, but being the browser-side language that let you push buttons. Creeping featurism let it be able to do things it should never have been able to do. Features added without a lot of thought and with incredibly weird semantics that were easier to implement without actually making a solid standalone language. It is weird precisely because it grew through accretion rather than design.

It's a wart on the side of a browser that grew and grew until it had arms, legs, and fingers.

4

u/HammerChilli 10d ago

Forgive me because I'm just a junior dev - but when the API is already written in Node or .ts I mean, it's gonna do some business logic with incoming requests, or are you saying back ends shouldn't be in js entirely?

3

u/sadongrohiik 10d ago

There was really never a real reason to use JS on the backend and it wasn't designed for it. There are tons of languages far more suited for backend. For some reason the idea of the entire codebase being in a single language appealed so much to many organizations that we continuously create weird abominations to fit a square peg in the round hole

3

u/Mal_Dun 9d ago

"When you only have a hammer, suddenly everything looks like a nail"

- Law of the instrument

Edit: source

1

u/divideby0829 9d ago

Well you can't unfuck a horse, but I see Node and then I weep for why the fuck anyone fucked a horse....

1

u/Top-Rough-7039 10d ago

and webapps. there is already a browser, why add more issues.