|
Its 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 Im 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 shouldnt be in the example at all). |