I know diff algorithms are hard, but I sure wish Git and the other differs I use recognized comma-separated lists and didn’t mark the previous line as changed just because a comma was added to allow for the next item. (Just a display change, of course it needs merging)

@uliwitness Mercurial has a nice feature, where it lets you run a code auto-formatter of your choice on both files before diffing them — this way you only see the relevant changes, and not formatting stuff.

@uliwitness Yeah a lot of my coding standard choices (like trailing commas) have to do with eventual diffs and merges :/

@uliwitness But that is a change in the line, diff algorithms don't care about code. Thats a kind of important part

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!

We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot Café list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators.

Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!