|
|
|
|
|
by contravariant
1621 days ago
|
|
There's something to be said for preferring composition over inheritance, but in that case overly DRY code consists almost entirely of glue. As with almost anything it's a matter of choosing the right tool for the job. The only code style advices that I've found to hold nigh universally are the following: - The best code is no code - Don't end classes in 'er' or 'or' Coding paradigms are good when they let you do those things and are bad when they don't do both of those things (i.e. they result in more code or clases ending in 'er'; a class named 'Helper' is a code smell worse than sulfur dioxide) |
|
So they pretty much all are "er" classes. ¯\_(ツ)_/¯