One of my favorite ways to figure out how I’m going to write a specific method, particularly when the architecture is complex, is to write the signature first. Example – I’m working on a Question & Answer section for PressCademy right now, and I needed to a method to get both the question and answer.
The answer to the question involves some abstraction layers and just enough complexity that I couldn’t quite make sense of it.
Leave a Reply