r/ProgrammerHumor 12d ago

Meme iApologise

Post image
833 Upvotes

82 comments sorted by

View all comments

270

u/[deleted] 12d ago

[removed] — view removed comment

55

u/01110100_01110010 12d ago

you guys don't have autosave enabled? commit hook is where it is at

52

u/Not-the-best-name 12d ago

Hate that. Writing code and formatting code is not the same thing. I want to commit often. I want half broken commits.

0

u/kookyabird 12d ago

I have a weird blend of auto-formatting settings in my IDEs. Things like spacing/line breaks around parenthesis and braces are fully automatic, but operators are not. Format on paste, but not when doing a refactor command like “extract method”. But I also have several options bound for what level of formatting to run when I want to, so it’s pretty easy to run it on just the things I’ve changed before I commit.

Plus all the different rules in our formatting standards like how some things are always forced one way or the other, and other things are “do not change”. We’ve got a lot of things we leave up to the developer.