![]() | SUMit Roster Software > Nut's Weekly > December 1999 > Two | Nederlands · Search... |
![]() |
Two |
Monday, 20 December 1999 |
![]() Since a couple of weeks I've been hired as a Smalltalk Guru, the private trainer of a junior programmer.
We just completed bug busting a dirty piece of code. The code was so awful that even the debugger ran into errors. Fortunately it appeared that the bug was elsewhere. So, we left the jar unopened as: "Nothing ventured nothing gained, Nothing opened nothing stained.". The bug appeared to reside in quite a clean bit of code. Not the very best, but doable with a bit of effort. We added a bit of documentation to clear up things further. A new saying was born: "If the jar is not quite clear, better you wash it first.". The real fix required a complex bit of logic, too much to squeeze into one clear ifTrue: statement. So, we isolated the logic into a new method, in line with a new born Chinese saying: "If it's too much for one jar, better use two". | ||
With special thanks to Paul Wai Kon Lee for his inspiring words of wisdom. | ||
November 1999
· 2x2
· Three
· Two
· One
· January 2000
Home · Search... |