this post was submitted on 01 Apr 2025
95 points (80.3% liked)

Programmer Humor

22188 readers
2116 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
 
all 20 comments
sorted by: hot top controversial new old
[–] Limonene@lemmy.world 55 points 2 days ago (2 children)

When I worked on OpenStack for a few years, 80% of the bugs I fixed were type errors that could have been prevented by Python being staticly typed.

[–] scrubbles@poptalk.scrubbles.tech 39 points 2 days ago (1 children)

Yeah strong disagree with this meme. 15 years into my career and everything gets a data type.

The only engineers I know who still don't like strong types are engineers who haven't lost a weekend due to a stupid type issue. Once you have one or a few of those, you start to like types again.

[–] Rednax@lemmy.world 13 points 2 days ago (1 children)

I remember a javascript library where the was a function that returned, according to the documentation, "a color". Did it return an object with 3 fields? Were those fields RGB or some other color scheme? Is it a string encoding a color? What format is that string? None of these questions could be answered without just running the code, and analyzing the object you got back.

{ r, g, b}, hex code, rgb encoded in some stupid format, types are just helpful. I don't know why people don't like them. 30 seconds of creating a class for your type saves you hours of debugging later

[–] Anders429@programming.dev 9 points 1 day ago

This describes literally every python contract job I've ever had.

[–] Redkey@programming.dev 18 points 1 day ago

ASM doesn't care about your variable types, because it doesn't care about your variables. What's a variable, anyway? There is only address space.

[–] SchwertImStein@lemmy.dbzer0.com 13 points 1 day ago (2 children)
[–] easily3667@lemmus.org 1 points 1 day ago (2 children)

Nah I think this is fine for all of the software engineers working on 1-person projects at the place they intend to stay the rest of their career.

the hell of their own creation

[–] ulterno@programming.dev 1 points 1 day ago* (last edited 1 day ago)

And that's why I don't use smart pointers.


Well...
I actually did make a logical flow diagram describing all conditions for pointer deletion. They just don't care to read it.

[–] NeilBru@lemmy.world 9 points 1 day ago
[–] pelya@lemmy.world 6 points 2 days ago

As long as your byte consists of 8 bits.

[–] death_to_carrots@feddit.org 5 points 1 day ago

pydantic goes brrrrr!

[–] DScratch@sh.itjust.works 3 points 2 days ago

Like any newb, the nuance is lost.

Data types don’t matter, the interface matters.

[–] dreadbeef@lemmy.dbzer0.com 1 points 1 day ago* (last edited 1 day ago)

Elixir and Clojure are awesome languages and don't need no types. Elixir is getting them though, so you weird static type absolutists can finally look at it soon. I even use Haskell and OCaml and Rust which has stricter types than the languages y'all write in and I never complain about the lack of types in languages.

I'm the guy on the right, typescript devs are in the middle