Second-Order Refactoring: Narrow The Question
Another small second-order refactoring for you today. I call it “narrow the question”. If you’re asking an object for data, ask for exactly what you want to know, instead of what you’d need to compute what you want to know. A very simple example: the PlayerView wants to disable/enable some of its controls when the […]
Second-Order Refactoring: Narrow The Question Read More »