DevelopmentAlso called: "file diff", "text comparison"
Diff algorithms power version control, code review, and change detection.
Common algorithms
- Line-based diff: Compare text line by line (used in Git, diff command).
- Character-based diff: Compare individual characters (inline changes).
- Word-based diff: Compare at word boundaries (better for prose).
- Patience diff: Improved algorithm that handles moved code blocks.
Output formats
- Unified diff: +/- lines with context (Git standard).
- Side-by-side: Two columns showing both versions.
- Inline: Highlighting changes within lines.
Use cases
- Version control (Git, SVN diff).
- Code review and pull requests.
- Configuration file changes.
- Document comparison and merge.
Explore More Development
View all termsCron Expression
A time-based job scheduling syntax using five or six fields to specify when tasks should run.
Read more →JSON (JavaScript Object Notation)
A lightweight data interchange format using human-readable text to represent structured data.
Read more →Markdown
A lightweight markup language that uses plain text formatting to create structured documents.
Read more →Regular Expressions (Regex)
Pattern-matching syntax used to search, validate, and manipulate text based on rules.
Read more →Text Diff (Difference)
A comparison showing line-by-line or character-by-character changes between two versions of text.
Read more →Universally Unique Identifier (UUID)
A 128-bit identifier guaranteed to be unique across space and time without central coordination.
Read more →