3 ms·
Usability of diffs, to do actual useful tasks, is an excellent research topic. But a very difficult area. To add my subjective expt: I just compared myers vs h
by hyperpallium 7y ago
Usability of diffs, to do actual useful tasks, is an excellent research topic. But a very difficult area.
To add my subjective expt: I just compared myers vs histogram on my latest commit.
- myers presented a function I'd 90% gutted as the the same function, edited (the rest was moved in the file, so no LCS algo could find it), like word-diff often does. I thought this was clever.
- histogram presented it as one function deleted, and a completely new function added. This was cleaner.
But I'm not even sure which is more usable. Might even vary with the specific task, e.g. function evolution vs function readability. Difficult area!
- sumosudo 7y ago> Usability of diffs, to do actual useful tasks, is an excellent research topic. But a very difficult area. I use the linux command line `diff` to implement a poor mans database. An online file store has files added daily that I need to download but not duplicate, so I grab the list off the site, save it locally, and `diff local_downloaded_files current_list_on_site | grep '>' | tr -d'>'`.. The '>' symbol is an indication of files I haven't downloaded yet; the greater than is the operation I need to perform to make my local_downloaded_files file the same as the list on the site. So I download all the files that are indicated by the diff, add their names to local_downloaded_files file and voila, up to date downloads.
- heavenlyblue 7y agoWhich part is here a database?
- nieve 7y agoI think they mean a database in the general sense and you mean an RDBMS.
- amboo7 7y agoI wrote https://github.com/amb007/persistent-buffer https://github.com/amb007/persistent-buffer hoping to use the actual editing history foe precise diffing. I know that projectional/structural editor do such things, not sure if for diffing.