Zachary Cutlip on Nostr: I've shared this before but it's been a while and probably was on twitter, so it's ...
I've shared this before but it's been a while and probably was on twitter, so it's worth a re-share
A lot of people don't know that `diff` (and `git diff`) have a several algorithms to choose from
They have various tradeoffs, mostly around performance vs readability & semantic accuracy vs overall diff size
For manual/visual diffing, I generally prefer 'histogram’, as it tends to be a closer representation of what *actually changed*
Here's a nice writeup
https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of-the-git-diff-algorithms/(1/n)
Published at
2023-07-07 20:17:25Event JSON
{
"id": "566f946084739fc9cd50ab91f1a87d951f08c6c1fffefd720f5f4dfe52588393",
"pubkey": "6e189043fe53eb7a31d115b9c86c5fde5e7f066e1793e99bbe4f796bbbc79cb2",
"created_at": 1688761045,
"kind": 1,
"tags": [
[
"mostr",
"https://hachyderm.io/users/zcutlip/statuses/110674643879741406"
]
],
"content": "I've shared this before but it's been a while and probably was on twitter, so it's worth a re-share\n\nA lot of people don't know that `diff` (and `git diff`) have a several algorithms to choose from\n\nThey have various tradeoffs, mostly around performance vs readability \u0026 semantic accuracy vs overall diff size\n\nFor manual/visual diffing, I generally prefer 'histogram’, as it tends to be a closer representation of what *actually changed*\n\nHere's a nice writeup\n\nhttps://luppeng.wordpress.com/2020/10/10/when-to-use-each-of-the-git-diff-algorithms/\n\n(1/n)",
"sig": "64b7ac86b3ca769c1f57768a9f3ef63da7d108a0aebe36a8fb9539281ba2593b554ecdb62f4ff4bfe78f6ee07a7af31d94c4c78f913988132a5624a9ccd6b67a"
}