this post was submitted on 17 Dec 2025
472 points (96.6% liked)

Programmer Humor

27913 readers
1648 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
[–] 30p87@feddit.org 23 points 1 day ago (128 children)

Almost any language is OK, but Rust is just so, so fucking ugly

[–] asudox@lemmy.asudox.dev 25 points 1 day ago (43 children)

what? what part of rust is ugly?

[–] UnderpantsWeevil@lemmy.world 19 points 1 day ago (2 children)

Maybe they're confusing the literal name with the language? Idk.

I grew up on Perl and holy fuck... Rust is fine.

[–] jackr@lemmy.dbzer0.com 5 points 1 day ago (1 children)

Perl is ugly but great. It's like shell scripting with a more solid programming language. I'd never use it outside of simple scripts in my os, but whenever I do use it it's very fun. Anyway, yeah, rust looks fine to me. Maybe they are not very experienced with it? I know some of my programs used to have lines with just x.unwrap().unwrap().unwrap() or whatever, which is not pretty.

[–] Ephera@lemmy.ml 4 points 19 hours ago (1 children)

I know some of my programs used to have lines with just x.unwrap().unwrap().unwrap() or whatever, which is not pretty.

That goes away with experience, though. At least, I can't think of a reason why you'd nest three Results or Options. Normally, you would collate them right away.

The most you see in the wild is something like Result<Option<_>> to express that a check can fail, but even if it doesn't, then a valid result can still be that there is nothing there.

If you don't care that your program crashes (like .unwrap() does), then anyhow is the error handling library of choice. With it, you can just write a ? in place of an .unwrap() for practically any error type. And well, it automatically combines the errors, so you won't be writing ??? either.

[–] jackr@lemmy.dbzer0.com 2 points 11 hours ago

yeah that was what I meant, I can see someone writing a mistake that requires ugly rust to solve and then believing rust is ugly because of it.

[–] hellfire103@lemmy.ca 7 points 1 day ago

I'm learning Perl - purely for fun - and yeah... it's a little funky.

load more comments (40 replies)
load more comments (124 replies)