Guides & articles
Clear, practical explainers about diffing code and text, reading patches and resolving conflicts.

How Diff Algorithms Work
Every diff tool answers one question: what is the smallest set of edits that turns one text into another? Here's the idea behind LCS and the Myers algorithm.

Line Diff vs Word Diff: When to Use Each
The same change can be shown as whole swapped lines or as a few highlighted words. Here's why both granularities exist and when each one is clearer.

Reading a Git Diff Without the Guesswork
Those @@ headers and +/- lines look cryptic until you know the pattern. Here's how to read a unified diff line by line and never lose your place.

Comparing Config Files Safely
Config drift causes real outages. Here's how to diff configuration files so you catch the meaningful change without leaking secrets or drowning in noise.

Merge Conflicts Explained
A merge conflict is not an error — it's Git asking you to decide. Here's why conflicts happen, how to read the markers, and how to resolve them calmly.

Diffing JSON and YAML the Right Way
Structured data lies about its differences: reordered keys and reformatting look like huge changes. Here's how to diff JSON and YAML so only real changes show.