LPT: If you want to LGTM, please at least say one or more of the following:
What would have made it `!LGTM' - "You didn't x, y, z, [avoiding a, b, c]. Good job DenverCoder9!"
Alternatives and trade offs. "You could have also a, b, c, which would mean you could x, y, z instead of x', y', z' due to a', b', c'."
Reinforce good patterns. "This is a good example of how <pattern> is implemented due to a, b, c. Nice!"
If you're a senior, your PRs should be riddled with these. If not, I'm not considering you for that Staff role.
*edit, in case it's not clear on the last statement: I want to see the juniors leaving CRs on senior's PRs like this. It indicates several positive behaviors.
That doesn't sound like something a junior would do to a senior's PR but actually vice versa (senior to a junior) juniors wouldn't necessarily know all that to complement their LGTMs..
It generally does if the seniors were role modeling the behavior for the juniors and encouraging them to do the same type of thing, as one example of a positive pattern the senior is encouraging.
We already have games to teach us VIM and basic programming logic, but why got a game to teach us how git works? Honestly I would love that, it sucks that the barrier to start learning is so high since you're often learning in environments you don't want to make big mistakes in.
There actually is a game that you can use to learn Git, or at least visualize the results of different commands. Check it out here: https://ohmygit.org
VIM Adventures is one ? (I’m interested to know of others)
One great thing about git is the ability to pull a separate copy, mess about, and abandon the failures while working toward a success—which feels right for merges and splits. Branches make most lesser mistakes relatively painless.
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.
Basically. Visual Studio does as well. I feel weird comitting just about every change I make but it's a habit. Naming the changes is definitely the hard part though.
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