Login | Register
My pages Projects Community openCollabNet

Discussions > users > RE: [gef-users] is a redesign necessary? VOTE NOW

gef
Discussion topic

Back to topic list

RE: [gef-users] is a redesign necessary? VOTE NOW

Reply

Author Bob dot Tarling at irishlife dot ie
Full name Bob dot Tarling at irishlife dot ie
Date 2003-07-11 01:45:09 PDT
Message Hi Jason

I understand your naming style and why you do it. Classes start with a
family name suggesting hierarchy and then a more descriptive name.

It does go against the naming that Sun use for their classes though which
probably makes it look odd to someone familiar with the those libraries. eg
XxxxAction XxxxLayout etc.

Maybe breaking down into further sub-packages would help to group you class
clusters.

If the redesign goes ahead and this results in various interfaces to GEF
then these interfaces could follow a different naming style if all are
agreed.

Regards

Bob.


> -----Original Message-----
> From: jrobbins at tigris dot org [SMTP:jrobbins at tigris dot org]
> Sent: 10 July 2003 18:56
> To: users at gef dot tigris dot org
> Subject: Re: [gef-users] is a redesign necessary? VOTE NOW
>
> >There is one thing I really dislike about the GEF interface: class names
> >are often "backwards" - for example a "LayerGrid" sounds like it's a
> >special kind of Grid, whereas it is in fact a special kind of Layer;
> >this is really confusing. It would be nice if this could be fixed...
>
>
> I am certainly open to reconsidering the coding style. It is docuemented
> at:
>
> http://gef.tigris.or​g/v0.6/docs/overview​.html#CodingStyle
>
> Specifically:
> To emphasize clusters of classes I am using what I call the
> binomial naming style (I am sure others have thought of this also):
> The root class of the cluster has a short name (e.g., Layer), other
> members of the cluster use that name as a prefix (e.g.,
> LayerGrid). This makes many of the class name longer than they
> might be normally (e.g., Grid would be shorter). But this provides
> a lot of context without having to look at a class inheritance
> diagram. It is also very nice when you have to look at an
> alphabetical list of classes. I try to name class clusters so that
> they are not lexigraphically close others (e.g., the Net cluster
> used to be named Model, but that lexigraphically overlapped the
> Mode cluster).
>
> This helps make class clusters more clear.
> http://gef.tigris.or​g/v0.6/docs/overview​.html#ClassClusters
>
> And, the use of lexigraphically clustering allowed me to keep the
> package/directory structure relatively flat.
>
> So, I think that this naming convention is a good idea and I always
> felt that the other way was backwards. However, I would like GEF to
> be a framework to seem easy and familiar to as many developers as
> possible, so I would be willing to change it if there is a clear
> agreement that that is desired.
>
>
> jason!
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@ge​f.tigris.org
> For additional commands, e-mail: users-help at gef dot tigris dot org


This is a confidential communication and is intended only for the addressee
indicated in the message (or duly authorised to be responsible for the
delivery of the message to such person). You are specifically prohibited
from copying this message or delivering the same, or any part thereof, to
any other person, whomsoever or howsoever, unless you receive written
authorisation from us to do. If you are anyone other than the intended
addressee, or person duly authorised and responsible for the delivery of
this message to the intended addressee, you should destroy this message and notify us immediately. Please note that we accept no responsibility
whatsoever in the event that this message or any other email message or any part thereof becomes known or is communicated to anyone other than the intended recipient or other person authorised in writing by us to receive
it, howsoever arising and disclaim all liability for any losses or damage
which may be sustained by any person as a result thereof.

Irish Life Assurance plc (trading as Irish Life) is regulated by the Irish Finanical Services Regulatory Authority.


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@ge​f.tigris.org
For additional commands, e-mail: users-help at gef dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

RE: [gef-users] is a redesign necessary? VOTE NOW Bob dot Tarling at irishlife dot ie Bob dot Tarling at irishlife dot ie 2003-07-11 01:45:09 PDT
Messages per page: