News for hackers. Stuff that matters.
Re:Five Rules for Writing Good Code by aerique on Saturday November 28, 2009 @07:28PM (#965716)
You shouldn't need to keep a mental stack since as you say the small functions are aptly named. You just check once whether the function really does what it suggests and then you don't have to throw it on your stack the next time.
Re:Five Rules for Writing Good Code by InclinedPlane on Saturday November 28, 2009 @07:50PM (#965731)
Exactly. Naming and proper design is very important. Tracking state changes through numerous "DoStuff" and "HandleThings" methods definitely represents additional intellectual overhead.