Skip to content

Commit 9295225

Browse files
authored
Dictionary (New Word): Diff (#187)
# Word #### Diff # Meaning/Definition Diff (short for **difference**) is a term used in computing to describe the comparison between two versions of a file, set of files, or data, highlighting the changes made. It is commonly used in version control systems like Git to show what has been added, modified, or removed between revisions. Diffs help developers quickly understand changes in codebases, making collaboration and code review more efficient. **Example** ```diff - const name = "John"; + const name = "Jane"; ``` This diff shows that the value of the variable `name` was changed from *John* to *Jane*.
1 parent 1d12b51 commit 9295225

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/content/dictionary/diff.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: ../../layouts/word.astro
3+
title: "Diff"
4+
---
5+
Diff (short for **difference**) is a term used in computing to describe the comparison between two versions of a file, set of files, or data, highlighting the changes made.
6+
7+
It is commonly used in version control systems like Git to show what has been added, modified, or removed between revisions. Diffs help developers quickly understand changes in codebases, making collaboration and code review more efficient.
8+
9+
**Example**
10+
11+
```diff
12+
- const name = "John";
13+
+ const name = "Jane";
14+
```
15+
16+
This diff shows that the value of the variable `name` was changed from *John* to *Jane*.

0 commit comments

Comments
 (0)