Thursday, February 24, 2011

Avoid having too large files.

Avoid having too large files.

If a file has more than 300~400 lines of code, you must consider refactoring code into helper classes.

Avoid writing very long methods.

A method should typically have 1~25 lines of code. If a method has more than 25 lines of code, you must consider re factoring into separate methods.

No comments:

Post a Comment