December 10, 2002
Classes, interfaces, and factories

There has been a bit of a storm in the Java blogging world recently about the naming convention, if any, to use for interfaces. A storm in a teacup, perhaps? Anyway, I tend to agree with Charles' opinion on this.

We had a good blazing row discussion about this at work. We were never going to agree - there are fans of hungarian here! (And not just here, either!) Me, I hate hungarian. I'm a Python man at heart - it's the signature that counts, not the type, so hungarian is emphasising the wrong thing.

More interesting to me, though, is the notion of avoiding use of the 'new' keyword, except when used from within factory methods. Makes a lot of sense to me.

Posted to Java by Simon Brunning at December 10, 2002 01:17 PM
Comments
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?