Midas Touch Travel JavaScript Embedded in Java 6
Jun 10

APrefixing NCommon IInterfaces

Java, Tech Add comments

Cedric discussed the recent Artima interview of Erich Gamma.

Cedric and Erich make good points, and are worthwhile reads for sure.

I know Ced is more Hungarian than French though, and I don’t get it :)

More posts like this and Howard will be happy that he used IEverything in Tapestry ;)

It isn’t a huge deal, but I really am not a fan of prefixing items with anything. I don’t like it as it gets out of the way for me. We rarely do this in English.

I want to use a Person, not an IPerson. Who cares if it happens to be an interface or a concrete class, or an abstract class? I actually don’t mind if that is encapsulated from me. I really often don’t care.

If I do care, then I let me IDE tell me what I am dealing with. Maybe someone should write an Eclipse plugin to put “I” at the beginning of all interfaces for the Hungarian crowd? And, strip them off for the others?

Keeps coming back to allowing a VIEW on my source code :)

12 Responses to “APrefixing NCommon IInterfaces”

  1. James Strachan Says:

    I’m in complete agreement; IDEs these days are clever enough to colour code the context associated with a name (fields, local variables, variables which are never assigned to, variables which are never read, class types etc) so I don’t see why this isn’t just an IDE thing – get your IDE to highlight classes v abstract classes v interfaces.

    Then stick to regular names and drop the hacky prefixes (we’re not doing C these days).

    BTW another down side of prefixes is it makes changing the code harder – code using a class (rather than implementing/extending it) doesn’t typically care if its a class, abstract class or interface.

  2. Grant Rettke Says:

    In Java or .NET, interfaces are not classes, so we indicate the difference between a class and an interface to other developers using the convention I<noun>.

    In a language like C++ or Eiffel, this issue does not exist, because everything is a class.

  3. health-store.uv.ro Says:

    health-store.uv.ro

  4. Alan Says:

    [url=http://www.seehersquirtlinks.com/]see her squirt[/url] -
    [url=http://www.shotsofcumlinks.com/]shots of cum[/url] -
    [url=http://www.sleepassaultlinks.com/]sleep assault[/url] -
    [url=http://www.spankedandabusedlinks.com/]spanked and abused[/url] -

  5. free pics Says:

    [url=http://www.spermswaplinks.com/]sperm swap[/url] -
    [url=http://www.stayafterclasslinks.com/]stay after class[/url] -
    [url=http://www.streetblowjobslinks.com/]street blowjobs[/url] -
    [url=http://www.summertimemilflinks.com/]summer time milf[/url] -

  6. http://www.8thstreetlatinasmovs.com/ Says:

    [url=http://www.tamedteenslinks.com/]tamed teens[/url] -
    [url=http://www.taylorbowlinks.com/]taylor bow[/url] -
    [url=http://www.teamsquirtlinks.com/]team squirt[/url] -
    [url=http://www.teenybopperclublinks.com/]teeny bopper club[/url] -

  7. http://www.8thstreetlatinasmovs.com/ Says:

    [url=http://www.thebestlatinaslinks.com/]the best latinas[/url] -
    [url=http://www.thebestpovlinks.com/]the best pov[/url] -
    [url=http://www.thebigswallowlinks.com/]the big swallow[/url] -
    [url=http://www.thugsandjuggslinks.com/]thugs and juggs[/url] -

  8. http://www.8thstreetlatinasmovs.com/ Says:

    [url=http://www.thebestlatinaslinks.com/]the best latinas[/url] -
    [url=http://www.thebestpovlinks.com/]the best pov[/url] -
    [url=http://www.thebigswallowlinks.com/]the big swallow[/url] -
    [url=http://www.thugsandjuggslinks.com/]thugs and juggs[/url] -

  9. daxxtqgsi Says:

    CnZT1V gadpmiusyvkl, [url=http://qhzowuabjulz.com/]qhzowuabjulz[/url], [link=http://mtbbauwoygbw.com/]mtbbauwoygbw[/link], http://fuejswjjwlza.com/

  10. fpzxktr Says:

    Y4yyiO ahlvchgkllfb, [url=http://hqpmgcseofjl.com/]hqpmgcseofjl[/url], [link=http://ofmgyqblmadi.com/]ofmgyqblmadi[/link], http://qouzevqviytl.com/

  11. fpzxktr Says:

    Y4yyiO ahlvchgkllfb, [url=http://hqpmgcseofjl.com/]hqpmgcseofjl[/url], [link=http://ofmgyqblmadi.com/]ofmgyqblmadi[/link], http://qouzevqviytl.com/

  12. mafqtx Says:

    GwnNWG exuwspvbckyu, [url=http://xoexabkkrhoc.com/]xoexabkkrhoc[/url], [link=http://ygyotrcbrrxc.com/]ygyotrcbrrxc[/link], http://dhjgdyppobrr.com/

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: What is the number before 3? (just put in the digit)