3 ms·
A small piece of advice. Review your changes using a nice GUI diff tool immediately before committing anything to your repo. Lately I use Github for Windows for
by Const-me 2y ago
A small piece of advice. Review your changes using a nice GUI diff tool immediately before committing anything to your repo. Lately I use Github for Windows for the tool, but that’s unimportant as long as the tool clearly shows all changes to all source files which will be committed.
It’s an easy thing to do, but IMO helps software quality tremendously. 60% of times I just read my changes and commit them as they are. In 25% of commits I spot something minor like typos in comments, and fix. Most importantly, for the remaining 15% of them I notice some important issues which need to be fixed.
Reading git log later, or delegating to other people, doesn’t work because timing. I commit my changes immediately after making these changes. This means I still remember what the code in question does, and why I changed what I did.
- nuancebydefault 2y agoI do that already for 20+ years or so. A good diff tool with editing capabilities is the best swiss army knife. Indeed, just before each commit I often find extra newlines, debug prints or incorrect comments or try-out commented code, easy enough to repair with a decent diff tool.
- deleted 2y ago[deleted]