3 ms·
The better solution is the one with fewer bugs, fewer dependencies and less resource use. If the solutions are both correct and use the same approach, but one
by kazinator 3y ago
The better solution is the one with fewer bugs, fewer dependencies and less resource use.
If the solutions are both correct and use the same approach, but one has managed to make it understandable, then that is better. Understandable beats obfuscated, all else being equal.
The solution that the programmers don't understand reveals a weakness in their analytic skills, though. The author could well be smarter or know more techniques, or both.