this post was submitted on 16 May 2025
705 points (99.2% liked)

Programmer Humor

23427 readers
301 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Shawdow194@fedia.io 98 points 1 week ago (33 children)

The joke is always Javascript

[–] Blue_Morpho@lemmy.world 65 points 1 week ago (32 children)

JavaScript itself is fine. The problem is developers who import a library to add two numbers.

[–] jjjalljs@ttrpg.network 24 points 1 week ago (7 children)

I don't know about "fine". It has a lot of weird stuff baked in. Hoisting. Unexpected type coercion. Too many ways to loop over something and I always forget which one is which. "There's more than one way to do it" is kind of a recurring problem, come to think of it. Several function declaration syntaxes. Dot notation AND bracket notation for objects.

Also it will forever bother me that object keys aren't quoted.

const foo = "hello"; const bar = { foo: "world" }

That should be, in my mind, { "hello": "world" } . It's not. It's { "foo": "world" }

But if you want to do that, you need to do const bar = { [foo]: world }. Which looks like your key is an array with one entry, a string with a value of "foo"

You also end up learning a whole framework, with its syntax and idioms, every couple years. Angular. React. Redux. Whatever.

There's also a lot of people who have never used anything else, and want to use javascript for everything.

Javascript is basically D&D. Wildly popular. Full of legacy jank. People try to use it for anything even though there are better or more specialized tools.

[–] JordanZ@lemmy.world 4 points 1 week ago* (last edited 1 week ago)

This lightning talk is great for the oddness of JavaScript. He starts with Ruby but pretty quickly spends the rest of the time on JavaScript.

load more comments (6 replies)
load more comments (30 replies)
load more comments (30 replies)