Browse files

Acknowledge that method count isn't everything

  • Loading branch information...
1 parent e227c9e commit 78d07d55456afd750d3cfc6188081860ffb37be4 @steveklabnik committed May 7, 2012
Showing with 12 additions and 3 deletions.
  1. +12 −3 posts/2012-05-07-mixins--a-refactoring-anti-pattern.md
View
15 posts/2012-05-07-mixins--a-refactoring-anti-pattern.md
@@ -228,6 +228,15 @@ module Summarizer
end
```
-This example isn't fantastic, but whatever. We've eliminated some duplication, even if we didn't reduce our method
-surface. This is a win along a different axis, we just shouldn't fool ourselves
-that we've made our classes 'simpler.'
+This example isn't fantastic, but whatever. We've eliminated some duplication,
+even if we didn't reduce our method surface. This is a win along a different
+axis, we just shouldn't fool ourselves that we've made our classes 'simpler.'
+
+## This isn't the only metric
+
+Now, I don't mean to imply that method count is the be-all, end-all metric of
+complexity. Real software development is too complicated to wrap up in
+one tiny number. However, I do think there's a strong correlation between
+small, focused classes and easy to understand software systems. Aggregates can
+be used to make it easier to understand the use of a cluster of smaller
+objects. But that's another post.

0 comments on commit 78d07d5

Please sign in to comment.