If you have to spend time explaining 'what' the code is doing, it is "too clever".
If you have to spend time explaining 'why' the code is doing something.. then "them's the breaks working in a complicated world".
Code should only be as complex as the problem domain.
If you have to spend time explaining 'what' the code is doing, it is "too clever".
If you have to spend time explaining 'why' the code is doing something.. then "them's the breaks working in a complicated world".
Code should only be as complex as the problem domain.