this post was submitted on 01 Apr 2025
5 points (100.0% liked)

Programmer Humor

37270 readers
37 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
top 8 comments
sorted by: hot top controversial new old
[–] zenforyen@feddit.org 1 points 3 months ago (1 children)

Python with type hints and mypy and ruff = <3

Large Python codebase without types = nightmare

[–] smiletolerantly@awful.systems 3 points 3 months ago (1 children)

I'm too lazy to insert the "look what they need to mimic a fraction of our power" meme here, so.... Please imagine it instead.

I'm switching jobs in a couple of months, and I am SO glad to be leaving a (very well maintained!!) python codebase with type hints and mypy for a rust codebase.

It is just not the same.

[–] zenforyen@feddit.org 1 points 3 months ago* (last edited 3 months ago)

Nice! I'd love to use Rust at work, I was a Haskell guy for hobby things, rather recently switched to Rust for that, and I enjoy it a lot. Taking 80% of the good lessons from functional programming while staying performant and practical and just have nice tooling - whoever designed Rust are wise people who know what is important for happy developers.

My job is mainly C++, and if you have seen the bright side of life, it is difficult not to be frustrated by the language and tooling. I think C++ without clang-tidy is almost as horrible as Python without types and linters. Undefined behavior and foot guns everywhere!

[–] Telorand@reddthat.com 1 points 3 months ago

Fr, though, duck typing in Python is one of my biggest annoyances.

[–] laserm@lemmy.world 1 points 2 months ago

Time to rewrite the world in assembly

[–] HStone32@lemmy.world 0 points 2 months ago

Data types do matter, and someone's got to declare them at some point, or else your compiler won't know how to intepret them. It's just a question of who should be doing the declaring: you, or a parser algorithm? Personally, I don't like things being done for me.

[–] renegadespork@lemmy.jelliefrontier.net 0 points 3 months ago* (last edited 3 months ago) (1 children)

let comment: String = String::from(“lol”);
println!(“{}”, comment);

[–] Bogasse@lemmy.ml 1 points 3 months ago* (last edited 3 months ago)
println!("{comment}");

C'mon, it's 2025!