[Insight-developers] CLEAN CODE : 0x04

Luis Ibanez luis.ibanez at kitware.com
Sat Apr 2 08:27:12 EDT 2011


"Side effects are lies. Your function promises to do one thing, but it
also does other hidden things. Sometimes it will make unexpected changes
to the variables of its own class. Sometimes it will make them to the
parameters passed into the function or to system globals. In either case
they are devious and damaging mistruths that often result in strange
temporal couplings and order dependencies."


"FUNCTIONS SHOULD DO *ONE* THING.
 THEY SHOULD DO IT WELL.
 THEY SHOULD DO IT ONLY."



"Clean Code"
'A Handbook of Agile Software Craftsmanship"
 Robert C. Martin.


More information about the Insight-developers mailing list