4 ms·
Sometimes I've scanned code bases of my own for all user definable variable names and just levenshtein distanced them. It's kind of useful, but the hurdle for m
by CapsAdmin 3y ago
Sometimes I've scanned code bases of my own for all user definable variable names and just levenshtein distanced them. It's kind of useful, but the hurdle for me at least is that I need to run something in a terminal to get the results. Maybe I'd use it more if it was a plugin in my ide of choice.
Something else you could maybe do is to simplify the code and compare sequences of statements and expressions to each other.
ie the 2 statements "foo = bar; foo += 20" is identical to "zoo = war; zoo += 20"