Hans,

On Thu, 2008-09-11 at 08:25 +0200, Hans Dockter wrote:
> Hi,
> 
> I'm wondering what convention we should use for naming interfaces.  
> Right now my approach is to use an 'I' prefix for interfaces of the  
> internal API and no prefix for public interfaces like Project. I'm  
> wondering if we should skip the I-prefix altogether.
> 
> - Hans

I have to admit I have never really seen the efficacy of Hungarian
Notation which this prefixing of interface names with I is an echo of.
I think it is fashionable to do this in C# but that doesn't make it
useful.

I guess it depends on whether splitting interface and class is important
or whether type is the important thing.

Perhaps hypocritically, I do like separating type names and variable and
function names, so I like the Java convention of capitals for types and
lowercase for variables and methods.  I use this in C++ and Python where
it is more conventionally not to distinguish -- but then I prefer Camel
Case convention to large numbers of _ to separate words in a name.

Summary:  My view is drop the Is.
-- 
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to