this post was submitted on 27 Feb 2025
376 points (97.7% liked)

Programmer Humor

20815 readers
1914 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
[โ€“] [email protected] 2 points 1 day ago* (last edited 1 day ago) (2 children)

I don't know Rust. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

(I mean, I don't know a lot of Python either so I can't even get the joke. ๐Ÿ˜ž)

[โ€“] [email protected] 13 points 1 day ago

In Rust and lots of other languages you have to end each statement with a semicolon. The semi colon is usually placed right after the statement, but in this example there's indentation after each statement before the semicolon so they're all aligned.

There's also the curly brackets, they're padded in the same way, but those usually define where a scope (block) starts and ends making it even worse.

[โ€“] [email protected] 7 points 1 day ago (2 children)

Look at the right side of the code editor

[โ€“] [email protected] 6 points 1 day ago

These scrollbars with issue indicators are becoming more and more fancy

[โ€“] [email protected] 6 points 1 day ago

lmao I didn't even notice