logo
  • Jobs
  • About Me
  • Contact
  • Home
« Consolas now available
Best post of the year »

.NET does not promote good code organization

Posted May 4th, 2006 by Matt Berther

There… I said it!

I’ve been more and more exposed to Java and I really have to say I *love* the constraints that Java puts on you as far as organizing code. Your packages need to follow your folder hierarchy, and one public class per file.

I understand that you can do this with VS.NET as well, however, sometimes when you get in a hurry, its easy to let these things slip by and what you end up with is a big sloppy mess… Unlike Java, it is not enforced at compile time. If I dont keep my code well organized, the compiler fails.

Is it really that hard make the language or framework promote good coding practices and organization?

4 Comments

This entry was posted on Thursday, May 4th, 2006 at 9:52 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

David Starr
May 5th, 2006

Booooo. Hisss.

Freedom from the tyranical folder structure contraints of the Java compiler soldiers!

Boooooooooo…..

Matt Berther
May 5th, 2006

Sure… Why wouldnt you want to make it easier for the next person to work on your code?

adron
May 7th, 2006

Sure, that would be simple. It would also be simple to enforce coding practices.

But it also probably is just one of the many reasons why Java is shrinking while .NET is exploding everywhere.

Do a job search for .NET vs Java right now. :) .NET pays my bills, how about yours.

Personally I like to organize my code according to the particular order that exists per the job I am working on. That way the “locals” (as I call them) don’t get confused and I just follow their practices.

Raymond Lewalen
May 8th, 2006

Last year I went through a reorg of our codebase to follow this structure, and it has made life so much easier when trying to find things in common namespaces, as my folder structure follows my namespace structure.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
-->

flag
Favorite Charity
wounded warrior project
Search
Social
  • mattberther on twitter
  • mattberther on linkedin
Syndication
Archives
  • January 2010
  • September 2009
  • July 2009
  • June 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • September 2008
  • August 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • December 2004
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • April 2004
  • March 2004
  • February 2004
  • January 2004
  • December 2003
  • November 2003
  • October 2003
  • September 2003
  • August 2003
  • July 2003
  • June 2003
  • May 2003
  • April 2003
  • March 2003
mattberther.com © 2003 - 2010