this post was submitted on 01 Apr 2025
98 points (80.2% liked)

Programmer Humor

30053 readers
1787 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 61 points 11 months 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 45 points 11 months 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 11 months 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.

[–] scrubbles@poptalk.scrubbles.tech 1 points 11 months ago

{ 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 11 months ago

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

[–] Redkey@programming.dev 21 points 11 months 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 17 points 11 months ago (2 children)
[–] NeilBru@lemmy.world 9 points 11 months ago
[–] pelya@lemmy.world 6 points 11 months ago

As long as your byte consists of 8 bits.

[–] death_to_carrots@feddit.org 5 points 11 months ago

pydantic goes brrrrr!

[–] DScratch@sh.itjust.works 4 points 11 months ago

Like any newb, the nuance is lost.

Data types don’t matter, the interface matters.

[–] dreadbeef@lemmy.dbzer0.com 1 points 11 months ago* (last edited 11 months 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