this post was submitted on 13 Aug 2023
340 points (94.7% liked)

Programmer Humor

31214 readers
117 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 18 points 10 months ago (1 children)

i want to see the original, where can i find source?

[–] [email protected] 21 points 10 months ago

It's a comic by Hannah Hillam

[–] [email protected] 10 points 10 months ago

I've recently started writing JS recently, after writing C, go, shell and ruby for years.

Ended up with this gem in my code:

var total = +qty + +pool[0] - +pool[1];

I hate it.

[–] [email protected] 9 points 10 months ago (1 children)

Well, I love it! So there! Muahahhahahaahaa

[–] [email protected] 20 points 10 months ago (1 children)
[–] [email protected] 4 points 10 months ago* (last edited 10 months ago)

Haha hey it brings in the money! I’m almost exclusively doing devops now (terraform makes me drool) but I can fix your php, ruby, js, give me anything man, I’ll learn it.

I just have no problems with the weirdness of js. I weirdly like it. Love receiving a comment on a PR “wtf why do you do it like this? This is much easier: something_i_already_tried”.

[–] [email protected] 7 points 10 months ago

Anything is a nail if you hammer it hard enough.

Though modern JS is way better than what it was before, and in my opinion is evolving in a good direction. It also pays my bills, so I couldn't complain even if I wanted.

[–] [email protected] 3 points 10 months ago

Member Node.js? I member.

[–] [email protected] 2 points 10 months ago (1 children)

I'm making an app with SvelteKit, the frontend and the backend at the same time, in Typescript, I love it.

[–] [email protected] 2 points 10 months ago

The SvelteKit + TypeScript combo is such a breeze to work with!

And compared to other languages, JavaScript scores pretty well in performance benchmarks. It has a lot more going for it than people give it credit for.

[–] [email protected] 1 points 10 months ago (1 children)
[–] [email protected] -1 points 10 months ago

It's a slight improvement, but you're still inheriting the whole Js ecosystem, tooling, and most of the quirks of Js. There are far better languages you can use on the server, so I really don't understand the appeal of using a Js based backend.