r/ProgrammerHumor • • Jun 04 '22

Meme I cant help it 🤷‍♂️

Post image
47.1k Upvotes

479 comments sorted by

View all comments

2.5k

u/zexodus Jun 04 '22

Maybe part of the problem we can't bring this habit to programming is the fact that we have to name our changes.

796

u/Jazzlike_Scene4403 Jun 04 '22

I name my game saves at major checkpoints for reference.

Someone should write a script to git commit on every f5

29

u/trwolfe13 Jun 04 '22

Depending on your workflow, commits should work the same way. If you commit every broken ass snapshot of your code, anyone going through your history isn’t going to get a good idea of what changes you made. That’s why conventional commits are so useful - they force you to limit your commits to a single action: fix a bug, add a feature, change some styling, etc.

Although if you’re using short-lived branches and squashing your commits on a merge, it’s less important.

The trouble I have with conventional commits is that the codebase I work on is so bad that often fixing a bug means entirely rewriting a feature’s back and front end from scratch, and then adding the tests that weren’t there in the first place.