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

Programmer Humor

23416 readers
1636 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
top 50 comments
sorted by: hot top controversial new old
[–] fonji@sopuli.xyz 30 points 6 days ago (1 children)

Then marketing comes around, asks to add google tag manager, and proceeds to make the client download 10TB of tracking librairies.

At least node_modules don't directly impact the browser.

[–] RagingRobot@lemmy.world 12 points 6 days ago (1 children)

The tag manager ones always have console errors too lol

[–] HK65@sopuli.xyz 7 points 6 days ago

Even if you rawdog the internet with no ad blocker. Actually, especially if you do that.

[–] Shawdow194@fedia.io 99 points 1 week ago (1 children)

The joke is always Javascript

[–] Blue_Morpho@lemmy.world 64 points 1 week ago (11 children)

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

[–] i_stole_ur_taco@lemmy.ca 50 points 1 week ago (2 children)

Excuse me, but it’s industry practice to always use PlusJs.

Its just annoying that it has its own dependency on MinusJs.

[–] Artyom@lemm.ee 4 points 6 days ago

And MinusJs depends on AngularJs and VueJs for some reason, but that's just the cost of doing business!

[–] TheGalacticVoid@lemm.ee 34 points 1 week ago (5 children)

Maybe we wouldn't need external libraries to do basic things if JavaScript had a standard library

[–] jaybone@lemmy.zip 9 points 1 week ago

What is this crazy talk??

load more comments (4 replies)
[–] jjjalljs@ttrpg.network 23 points 1 week ago (5 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 6 days ago* (last edited 6 days 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.

[–] SaharaMaleikuhm@feddit.org 1 points 6 days ago (1 children)

No need to convince me it's shit. Also how do you end up only knowing Javascript? Who the hell starts out using Javascript of all the languages?

[–] jjjalljs@ttrpg.network 12 points 6 days ago (1 children)

Anyone entering through web development. If you're self taught or did a "coding boot camp", it might be the only language you've used. A lot of places use it for backend stuff now, too

[–] marlowe221@lemmy.world 1 points 5 days ago

I write back end JS, when I’m not writing back end C#.

It’s totally fine. In fact, Node makes it a great back end language. I find that the infamous quirks of JS fall into two categories - “common enough that you internalize the rules for them” and “edge cases that almost never come up in practice.”

And when you write back ends in JS… you aren’t on the endless new framework treadmill!

load more comments (3 replies)
[–] nickwitha_k@lemmy.sdf.org 12 points 1 week ago (1 children)

Use the modulo operator? Nah. Need to import the isEven library and a ton of other unnecessary sub-50 LOC libraries "maintained" by a single dev to make their CV look more impressive. /s

[–] phoenixz@lemmy.ca 9 points 1 week ago (3 children)

Oh Hells no.

JavaScript is NOT fine, it's .... I'm really trying to think of a word that will convey the shit that it is without triggering half the people on Lemmy into an aneurysm, but I can't find it.

JavaScript is by far the worst. I've been working with JavaScript for the past 6 days and I want to hang myself, it'd be a better fate than continuing

[–] Hoimo@ani.social 4 points 6 days ago

Yeah, I had some webpages archived and tried to use javascript to clean them up, but I ended up parsing it as xml through Powershell instead. I've done something with Python and BeautifulSoup too, a long time ago. Both much easier than JS, but somehow JS is designed to work with web pages? Make it make sense.

[–] aev_software@programming.dev 6 points 6 days ago

6 Whole Days!

Try 25 years. And it still surprises me.

[–] Aqarius@lemmy.world 3 points 6 days ago (1 children)

JavaScript is by far the worst.

PHP

[–] phoenixz@lemmy.ca 1 points 20 hours ago

PHP was shit 25 years ago (like everything else back then) and I never bothered to look at it ever again but to this day I keep shitting on it because reasons

You

[–] mindbleach@sh.itjust.works 6 points 1 week ago

Or ship a browser to run a script.

load more comments (5 replies)
[–] bjorney@lemmy.ca 77 points 1 week ago* (last edited 1 week ago) (2 children)

> want to compile 50kb C++ console app on windows

> 6 GB MSVC installation

[–] onlinepersona@programming.dev 29 points 1 week ago* (last edited 1 week ago) (1 children)

"It's so easy to compile C/C++ apps on Linux"

"Just run make install"

"If it doesn't work, fuck you, it worked on my machine"

Anti Commercial-AI license

[–] Kazumara@discuss.tchncs.de 38 points 1 week ago (1 children)

Hm. I've always found it harder to compile stuff on Windows.

[–] onlinepersona@programming.dev 17 points 1 week ago (4 children)

Oh, my comment was more that compiling C/C++ apps on any platform is shit. Windows may be the worst to compile on, but Linux is only marginally better.

Rust is amazing though.

Anti Commercial-AI license

[–] Kazumara@discuss.tchncs.de 5 points 6 days ago

Okay that's fair. I fricked around with some C++ numerics BLAS header library (I think it was Eigen) on Linux before that was complicated and annoying too. The ARM Fast Models simulator was also a pain. Maybe I just don't like C++ development now that I think about it.

C mostly worked okay for me though.

[–] FuckBigTech347@lemmygrad.ml 1 points 6 days ago

That's only been my experience with software that depends on many different libraries. And it's extra painful when you find out that it needs hyper specific versions of libraries that are older than the ones you have already installed. Rust is only painless because it just downloads all the right dependencies.

[–] msage@programming.dev 1 points 6 days ago (1 children)

Gentoo is the best platform for this.

[–] barsoap@lemm.ee 1 points 5 days ago (1 children)

NixOS. Gentoo gets into trouble when you need multiple versions of the same library at the same time. Also while the infrastructure supports it it's annoying that gentoo doesn't provide pre-built binaries, like yes some people might want to have reason to build their own bash but I think I'll be fine with a standard build. NixOS? If you install something usually it's going to be pre-built. Change a couple of configuration flags? May or may not be pre-built. You want to apply a custom patch? It's going to seamlessly build from source.

[–] gabelstapler@feddit.org 1 points 5 days ago

I remember that Gentoo recently introduced binary packages, however I didn't really look into it, as I changed away from Gentoo. (Looking at you Spidermonkey, llvm etc.)

[–] SomethingBurger@jlai.lu 17 points 1 week ago

compiling C/C++ apps on any platform is shit

I'm starting to think the platforms aren't the problem.

[–] arty@feddit.org 11 points 1 week ago

I keep seeing complaints from non JavaScript developers about their IDE not handling millions of files in a folder properly

[–] WoodScientist@sh.itjust.works 33 points 1 week ago (1 children)

Depending on the design of its memory, a device with a full drive will literally weigh slightly more or slightly less than one with an empty drive. Charging the battery in all cases causes it to weigh more.

[–] cm0002@lemmy.world 13 points 1 week ago (1 children)
[–] perishthethought@lemm.ee 28 points 1 week ago (2 children)
[–] podperson@lemm.ee 6 points 6 days ago

How did you get permission from the elders to take a picture of it?

[–] bartvbl@lemmy.world 7 points 6 days ago

Is it even plugged in? I don't see a wire.

[–] andyburke@fedia.io 14 points 1 week ago

lol at 3/4 of a megabyte of Vue components being ok and thinking node_modules is the issue at hand.

load more comments
view more: next ›