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

Programmer Humor

20815 readers
1613 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] 64 points 1 day ago* (last edited 1 day ago) (1 children)

rustfmt

is stopping me from writing code like this, and I have never been more happier using it after viewing this.

[–] [email protected] 51 points 1 day ago (2 children)

I'm going to write a tool that automatically adds the braces and semicolons to the column as you edit the code.

I will call it rustfml

[–] [email protected] 1 points 16 hours ago

Please do, I'm waiting for it to get ported to other languages.

[–] [email protected] 7 points 1 day ago (1 children)

Crap, thats what I was thinking.

[–] [email protected] 7 points 23 hours ago (1 children)

It could be run after git checkout and then rustfmt before commit.

[–] [email protected] 3 points 22 hours ago

Slow down satan