this post was submitted on 27 Feb 2025
403 points (97.9% liked)

Programmer Humor

22247 readers
708 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
[–] dgriffith@aussie.zone 72 points 1 month ago* (last edited 1 month ago) (1 children)

rustfmt

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

[–] killeronthecorner@lemmy.world 62 points 1 month 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

[–] Irelephant@lemm.ee 11 points 1 month ago (1 children)

Crap, thats what I was thinking.

[–] verstra@programming.dev 10 points 1 month ago (1 children)

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

[–] killeronthecorner@lemmy.world 5 points 1 month ago

Slow down satan

[–] nintendiator@feddit.cl 1 points 1 month ago

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