kevinrutherford
Joined 15 years ago
Karma
83
Submissions
16
Member since
Apr 26
Joined 15 years ago
For me, the genius of ToC is that it provides a focussed, step-by-step way to get to the big productivity improvements; whereas lean/kaizen, while also very effective, can take an age to get to the same place.
File createFile(String name, boolean istemp) { if (istemp) // do temp stuff else // do regular file stuff }
That's an 'if' statement that only exists as a response to the boolean parameter. We can remove the 'if' by having two methods instead:
File createFile(String name) File createTempFile(String name)