Wednesday, August 03, 2011

Long Methods

How do you know in any programming language that a method or function that you implemented is too long?

Answer: You know when you use normal font size and have to scroll up and down despite having a 30-inch screen.

Recommendation: If you have to scroll vertically or horizontally on a 30-inch screen you definitely should consider refactoring this function or method.

Hostgator promo code