r/AskProgramming • • 13h ago

Is diffing of non-text content a problem in revision control systems (and outside too)

0 Upvotes

I'm trying to figure out if I'm solving something that anyone else cares about.

Git mostly punts on binary files "it changed". There's no way to reconcile two non-overlapping edits to a PNG asset. Naively merging non-conflicting edits (two appends to the end of a series of items) in JSON can break the file because of comma strictness. Etc, etc for donzens of formats that SHOULD be relatively straighforward to diff and merge. Then you get into files that have internal size counts or error-detection chechsums/CRC/hash embed, or a compressed stream component that causes a one-byte change near the beginning to ripple down into the entire file after that point being different.

Does anyone care or am I solving a problem that isn't really a problem? Maybe that's why it has gone unsolved, because it doesn't bother anyone? I'm genuinely curious because it was something that annoyed ME, and then I was shocked that it didn't already seem to be solved. So is this just an itch I needed to scratch but nobody else did? I always assume someone smarter than me should be way ahead of me.

Happy Friday everyone.


r/AskProgramming • • 11h ago

I'm Gen Z and now reading about history of CS. I wonder is DHH, David Hansson, the Danish programmer who built Ruby on Rails an important person for CS world here? I found out he is very popular

0 Upvotes

I dont know much about Ruby on Rails but it seems Javascript/Node.js is more popular here for web development unlike Ruby on Rails so how come DHH is still popular here?

Is there something I don't know and miss here? I dont get a full picture.