this post was submitted on 17 Dec 2025
494 points (96.1% liked)

Programmer Humor

33210 readers
329 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] 30p87@feddit.org 29 points 9 months ago (116 children)

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

[–] asudox@lemmy.asudox.dev 24 points 9 months ago (37 children)

what? what part of rust is ugly?

[–] rtxn@lemmy.world 4 points 9 months ago* (last edited 9 months ago) (9 children)

Enums and nested blocks. I understand the importance of Option and Result, but it's fucking infuriating when I have to check and destructure the result of every function call and either bubble the result up the stack from six levels of nested if let blocks or risk Cloudflaring my program by using .unwrap(). And while I like being able to extract a return value from an if...else expression, the structure gets really convoluted when multiple if and match blocks are nested (of course each one returning a value), and it gets completely fucked once closures are introduced.

I like Rust, but calling it pretty is delusional.

[–] roanutil_@programming.dev 18 points 9 months ago

Sum types with associated values are worth it

load more comments (8 replies)
load more comments (35 replies)
load more comments (113 replies)