The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Five Habits of Highly Profitable Software Developers
Subject:  order the source file carefully
Date:  2006-08-24 07:14:14
From:  malcolmdavis


It’s amazing that people still put private variables at the top of files as this article demonstrates, and the lack of separation between methods. If this article is an example of doing things the right way, then items should flow from public to private to help with readability. If I’m working from a service/interface perspective with your class, I do not care to see the private methods/variables. The private methods/variables might change, that is why they are private. The fact of the matter, how a username is stored is of little importance, (it might be a String, char, MyString, or something else entirely different, the point is, it does not matter, and maybe shouldn’t be in the example at all).

 Feed java.net RSS Feeds