Guides
Short, practical guides for the work around the tools. Each one is built on a real example you can try yourself.
Comparing and reviewing code
- How to review a code change
Start from the purpose, read every block of the diff and check the risky areas first.
- How to read a git diff
Every header, hunk and symbol in unified diff output, on a real example.
- Why a diff sometimes highlights the wrong lines
Myers and patience diff compared on the same change.
- Whitespace and line ending changes in diffs
Find CRLF and trailing space changes, and stop them with .gitattributes.
- How to review code copied from an AI assistant or a forum
A suggested fix that hides errors, and the checks that catch it.
Cleaning code
- How to remove comments from code safely
Which comments can go, which must stay, and a cleanup workflow.
- Comment syntax by language
Line and block comment markers for more than 40 languages and formats.
- Comment removal edge cases
Ten test snippets that break simple comment removers.