Wednesday, November 15, 2006

New Code Smell



This one really only applies to C#, but here it goes:
Over use of #region directive, especially in methods.
Example:
    public void SomeFunction ( /* probably too many parameters */ )
   {
        if ( something )
        {
            #region blah blah
            // 10000 lines of code here
           

No comments: