How Long Should Methods Be: Length, Depth, and Subtasks
摘要
The second piece of common wisdom when it comes to methods is that they should be short. In this chapter, we will go over advantages and disadvantages of short methods and why larger methods have their place, and we’ll talk about when you should split a larger method into shorter ones.