Doing One Thing: Abstraction, Boolean Parameters, and Design Patterns
摘要
Common wisdom suggests that clean methods have two traits: they do one thing and they are short. However, these characteristics are merely the end result of various design principles. Applying these ideas without understanding the underlying principles won't help you learn how to properly think about methods.