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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Doing One Thing: Abstraction, Boolean Parameters, and Design Patterns

  • Pablo Gonzalez

摘要

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.