A good programmer has to be just the right amount of lazy. If he is too lazy, he will simply copy & paste his code and modify a few lines. In the end, his codebase will be unmaintainable, but he might be promoted due to the amazing lines-of-code (LOC) he has achieved. If he is not lazy enough, he will not shirk from doing something over and over again. Both character flaws (too lazy and too eager) result in code that is hard to maintain.
-- Heinz Kabutz, Generating Static Proxy Classes 2/2
Laziness is a subtle thing. I always figured "copy & paste ... and modify a few lines" was more work, and it strongly resembles "doing something over and over again".
Typing and testing problem 23 - *Yet another reflection on the relationship between types and tests, this time with a simple example.* The debate about dynamic typing versus static ty...
1 week ago