Are you a Crappy Programmer?
Are all your users stupid? Do you take pride in the volume of code you produce? Maybe you are a crappy programmer.
Damien Katz identies signs that you are a crappy programmer (and confesses that many have applied to him from time to time).
I confess that I am guilty of "You think no function/method should have multiple return points". I'll even concede that I may not have a great argument to support that behavior.
A more interesting item for me, however, was "You are adamantly opposed to function/methods over 20 lines of code". Comments cover limitations on lines of code and levels of idention.
My general guideline on functions/method is that you should be able to describe what it does in one sentence that doesn't use the word "AND" or the word "OR". If you can't, consider splitting it into multiple functions. It doesn't mean that you MUST split your function/method, but it is a good sign (better, I think, than lines of code).
There are no comments for this entry.
[Add Comment]