Grammatically correct: ProjectileManager or ProjectilesManager?
This really is driving me insane; what name does a class that manages projectiles have, is it singular: ProjectileManager or is it plural: ProjectilesManager?
It is for the C#/MDX game I've been working on the last 7 months and which I intend to release the source to When It's Donetm.
I really am going mental anytime soon...
So once and for all, what is the correct name?
Thanks.
EDIT: Gramaticly Grammatically
[Edited by - Enselic on January 11, 2006 1:58:13 PM]
ProjectileManager. Just as in "car seller" [smile].
Cheers and best of luck with your game!
Pat.
Cheers and best of luck with your game!
Pat.
Lol, this reminds me of a development job I had a few years ago. It involved the use of a SQL database together with accessing code. The table in the DB containing all entities (for example) would be called "ENTITY" while the code object representing this table would be given the name "Entities" and the object used to compile a group of entities would be called "EntityCompiler"!
More than once this was the source of arguments with some people wanting to change "ENTITY" to "ENTITIES" or something...
Luckily someone usually fought them back with a pointed stick and got everyone back to the task of actually doing something productive!
(But anyway, using good grammer when naming classes is always worth it IMO as then everyone can usually correctly guess the name of the various classes without having to memorise which classes break the rules.)
Mike.
More than once this was the source of arguments with some people wanting to change "ENTITY" to "ENTITIES" or something...
Luckily someone usually fought them back with a pointed stick and got everyone back to the task of actually doing something productive!
(But anyway, using good grammer when naming classes is always worth it IMO as then everyone can usually correctly guess the name of the various classes without having to memorise which classes break the rules.)
Mike.
Usually prefer the singular rather then plural I think. At least that's what I was taught in college and university.
(edited for spelling)
[Edited by - paulecoyote on January 11, 2006 6:36:15 PM]
(edited for spelling)
[Edited by - paulecoyote on January 11, 2006 6:36:15 PM]
Well, then it's as good as official!
For managers, the classes should be named <Singular>Manager. E.g. TextureManager, SoundManager, ProjectileManager.
Praise unambiguity!
For managers, the classes should be named <Singular>Manager. E.g. TextureManager, SoundManager, ProjectileManager.
Praise unambiguity!
I should think, if you are interested in naming your classes informatively, "ProjectileManager" if an instance only manages one projectile at a time, and "ProjectilesManager" in any other case.
I agree with the ProjectileMgr people..
The word Manager implies it manages more than one object,
which happens to be of the type 'projectile'.
The word Manager implies it manages more than one object,
which happens to be of the type 'projectile'.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement