Re:Ask HN: Have you ever inherited a codebase nobody on the ...
by jehlakj on Wednesday November 28, 2018 @09:42PM
(#18557625)
Agreed. It's impractical to incorporate "ideal patterns and practices", but competent developers can get pretty close.
Having said that, I much prefer working with code that is very simple and redundant with a verbose API, than with a codebase that is overly refactored and abstracted.
Finding the balance of the two extremes would be my definition of an ideal pattern.
As a result you end up with every function using different nomenclature, different approaches to encapsulation, differing levels of compliance to Demeter, bizarre side effects because they made sense in the one day that developer was allowed for that feature, and so on.
So “less than ideal patterns and practices” does indeed count as “awful” code where the maintainer has to learn a new coding style for every file in the codebase.