Rant on Martin. LOL Larry
On 5/29/07, Martin Davis <[EMAIL PROTECTED]> wrote: > > > Sunburned Surveyor wrote: > > Martin, > > > > See my comments below. > > > > Martin wrote: "Naming of > > methods, classes and packages is more visible (in increasing importance) > > - articulating some policies here might be helpful." > > > > You make a good point here. I prefix all of my interfaces with a > > capital "I", all of my exceptions with the prefix "Exc", and all of my > > JUnit tests with the capital letters "JU". I'm not saying that we > > should use this particular convention. I'm just saying that I have > > found it helpful to distinguish interfaces, exceptions, and unit tests > > by their class name. Perhaps we could start our coding standards with > > a discussion of how to make this distinction. > > > Well, now we're getting closer to the bone... As tools have improved > I've found myself using name prefixes in fewer and fewer situations. > All the IDEs I've used in the last 6 yrs can easily tell you whether > something is a class or an interface, and what its parent class is. So > I try and avoid embedding too much type metadata in names. I think this > is the usual Java convention as well - I've never seen *any* types in > the Java APIs which use these conventions. > > <rant> > I know MS popularized using I* names back in the old COM days, and I > think they've propagated this into the .Net world as well. Another good > reason to avoid it, IMO. Might as well use that lovely m_* convention > for instance variables, not to mention prefxing every variable with a > secret code word that reveals its type to those who speak Hungarian... > 8^) (Luckily the inventor of this has exiled himself to far earth orbit...) > </rant> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > -- http://amusingprogrammer.blogspot.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel