I've seen a bunch of the "Impl" idiom, but I'm not a big fan of that either. I try as best I can to give the implementations descriptive names, such as a clue about the platform or something along those lines (e.g., "SomeBusObjMySQLDAO"). Sometimes it's tough to find good names, but I tend to prefer the more descriptive variety over the previously-mentioned conventions.What is "standard" or is there one?
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Tony Morris:
The IConvention seems to be used to implement the "how I do it" then "what am I going to do", antipattern. That is, the developer thinks in terms of classes (how I do it), then defines the corresponding interface (what am I going to do).
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
With the naming convention it is quite easy to spot places where interfaces aren't used, and to fix them if appropriate.
With the naming convention it is quite easy to spot places where interfaces aren't used, and to fix them if appropriate.
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Ernest Friedman-Hill:
That's a good point, Ilja, and something for me to think about!
What else you got?
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Tony Morris:
You're assuming the use of some tool I guess, since I can "spot them" just as easily as you can with some other tool and an arbitrary naming convention.
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Tony Morris:
A programming language that provides a proper separation of implementation and contract, thus invalidating the whole "hoe do you name it?" thing. Well, not yet...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Gregg Bolinger:
But the convention still doesn't sit right. Not to mention it kind of breaks camel case rules. Although it wouldn't be a big deal to just adopt it and get used to it.
package structure: com.gthought.app.interface; where all files in this package are interfaces.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Stan James:
By the way, I think "IDatastore" reads quite nicely. You have to plant your feet firmly, say it with conviction and pound on your chest, but it works for me.![]()
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Gregg Bolinger:
+1. That is a good point. But the convention still doesn't sit right. Not to mention it kind of breaks camel case rules. Although it wouldn't be a big deal to just adopt it and get used to it. But for the sake of conversation, what are some other conventions that could be used to get the same effect.
package structure: com.gthought.app.interface; where all files in this package are interfaces.
I suffix - TableModelI (ok, that's worse than ITableModel.
What else you got?
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|