What would you name this class? [modified]
-
MRLacey wrote:
Objects shouldn't control other objects.
Are you completely unfamiliar with the concept of design patterns? /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
I'd say FooManagerCollection, or even FooManagerFactory.
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
What's wrong with 'FooManagers'? There's a nice little convention (I first noticed it in VB though it undoubtedly started somewhere else) that if class A is a collection of class B objects, the name for class A is simply the plural of the name of class B. So, an 'Items' object is a collection of 'Item' objects. Items[i] is--an Item. Simple, obvious, works in most cases.
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
A manager of managers. Good question. I would be penchant for something like FooSupervisor or MCP (for those Tron geeks out there).
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
I don't know what kind of data structures you are using, but somewhere in there I hope you have a queue. Even if you don't need it, how can you resist creating an object named FooQueue?
Brian ----------------------------------------------- Never try to reason the prejudice out of a man. It was not reasoned into him, and cannot be reasoned out. - Sydney Smith (1771 - 1845) If we were to wake up some morning and find that everyone was the same race, creed and color, we would find some other cause for prejudice by noon. - George Aiken
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
an object that controls a collection of FooManagers? Dear Ravi, May I suggest : MoFoManager MotherOfAllFoos FooManagerHerder If you are a Hindi speaker, may I suggest : AndherNagreeChauputRajah best, Bill
"The greater the social and cultural distances between people, the more magical the light that can spring from their contact." Milan Kundera in Testaments Trahis
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
MrPresident
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
FooManagerManager would be consistent :P This is one of the things that always makes me a little uncomfortable and not satsified when writing big programs in Java. Perhaps an issue with OO in general, having large, empty hierarchies of classes... unless there is compelling logic happening at each level. It gets really tedious if you're unit-testing everything you write, and you realise you need to build something like this.
-
leckey wrote:
Foo Fighters
I said that much further up the thread and without the space in the name. I wonder if people will like now that you have suggested it, noone liked it when I did.
Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004
Oh, we're fishing for class name compliments, are we? :)
To hell with circumstances; I create opportunities.
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
FooManagerManager (FooMgrMgr for short)? FooManagerPlusPlus? FooDirector? If you create a new Manager for your FooDirector, it could be named FooVP.
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
-
I don't know what kind of data structures you are using, but somewhere in there I hope you have a queue. Even if you don't need it, how can you resist creating an object named FooQueue?
Brian ----------------------------------------------- Never try to reason the prejudice out of a man. It was not reasoned into him, and cannot be reasoned out. - Sydney Smith (1771 - 1845) If we were to wake up some morning and find that everyone was the same race, creed and color, we would find some other cause for prejudice by noon. - George Aiken
brian8655 wrote:
an object named FooQueue?
Already suggested. :) /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
One or all of the following: FooFooManager LordOfAllFooManagers FooAlmighty FooOfFoos HisGreatFooness TheGreatFooInTheSky Ralph
KramII wrote:
Ralph
:) /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
PeterTheSwede wrote:
Foo is one ...
Exactly. So just why does an American WW2 military acronym find get used by nerdy computer programers? Did the first programmers come form 101 airborn? Makes me want to puke!
PeterTheSwede wrote:
Using it shows experience and literacy (and/or age, possibly - which also calls for respect).
That is exactly my point. Its used purely to atempt to appear more 'expert' or whatever despite the fact the user most likely isnt.
PeterTheSwede wrote:
So what exactly are you doing on a computer programming site?
Sorry, did CP become the home of nerds? I thought it was for software engineers? h, by the way, I was in mechanical engineering for many years before switching to software engineering, so I have many traits of a mechanical engineer, I like beer and cars for example, and not those of a typical software engineer.
Morality is indistinguishable from social proscription
"h, by the way, I was in mechanical engineering for many years before switching to software engineering, so I have many traits of a mechanical engineer, I like beer and cars for example, and not those of a typical software engineer. " I don't think being a software engineer excludes a person from being "cool". I like shooting assault rifles, classic rock, and racing cars(I used to race cars). I have more geek attributes than nerd attributes (if there is a difference), but I still like "normal" stuff. However, by most accounts I am a geek and I think most software engineers are too. I actually find it more interesting to be around geeks. They aren't all caught up in Berry Bonds steroid use or the Jeff Gordon nascar crash. I prefer discussing how Intel and AMD are scamming consumers by holding back on releasing better technology just so they can get a better return on their R&D, or how OSS is OK, but it will never become what MS has become. I think this is clear. Geeks (nerds) are cool. Everyone else is just boring. :laugh:
Ben
-
"h, by the way, I was in mechanical engineering for many years before switching to software engineering, so I have many traits of a mechanical engineer, I like beer and cars for example, and not those of a typical software engineer. " I don't think being a software engineer excludes a person from being "cool". I like shooting assault rifles, classic rock, and racing cars(I used to race cars). I have more geek attributes than nerd attributes (if there is a difference), but I still like "normal" stuff. However, by most accounts I am a geek and I think most software engineers are too. I actually find it more interesting to be around geeks. They aren't all caught up in Berry Bonds steroid use or the Jeff Gordon nascar crash. I prefer discussing how Intel and AMD are scamming consumers by holding back on releasing better technology just so they can get a better return on their R&D, or how OSS is OK, but it will never become what MS has become. I think this is clear. Geeks (nerds) are cool. Everyone else is just boring. :laugh:
Ben
Odd. I am totaly not a geek or a nerd. I like talking about philosophy, telling jokes, politics, food, especially food, but never about computers. For me computers are a job. I like writing device drivers for windows, its very complex, very challenging, but I dont give a toss what the market as a whole is doing elsewhere.
Morality is indistinguishable from social proscription
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
-
Odd. I am totaly not a geek or a nerd. I like talking about philosophy, telling jokes, politics, food, especially food, but never about computers. For me computers are a job. I like writing device drivers for windows, its very complex, very challenging, but I dont give a toss what the market as a whole is doing elsewhere.
Morality is indistinguishable from social proscription
OK, this is strangely becoming more like a personals ad. Maybe, you don't feel apart of the geek community, but I do think that for the most part software engineering does attract people that may be considered geeks or nerds. Although, that seems to be mostly an U.S. thing. Outside of the U.S. those people just seem to be considered very smart.
Ben
-
John C wrote:
For the most part he's the village idiot
Do you really take it so seriously?
John C wrote:
I do agree with a dislike of nerdiness for nerdiness sake, if there as a CodeProject for people who own their own business and write the software I'd be there a lot talking about getting things done.
Agree.
Morality is indistinguishable from social proscription
fat_boy wrote:
John C wrote: For the most part he's the village idiot Do you really take it so seriously?
Sorry, that was a little harsh, I should have said *one of* the village idiots, there's at least a dozen I'm sure if I added them all up. ;)
"The great pleasure in life is doing what people say you cannot do." - Walter Bagehot
-
(This is not a programming question). I have a bunch of
Foo
objects, all of which are controlled by aFooManager
. What would you name an object that controls a collection ofFooManager
s? [edit]Foo
,FooManager
and the manager ofFooManager
s are all processes in a distributed system. [/edit] [edit] John C is right - this really does belong in the Design forum. I might have actually got more than a couple of useful answers if I'd posted there in the first place. :-D [/edit] Thanks, /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
modified on Thursday, May 22, 2008 12:49 PM
What's a foo? If you're using "foo" as a name for something in production code, I think you have bigger problems than what to call a foo object manager manager. Might as well call it "bar", after all, you'd be hard pressed to obsfucate your code further. Besides, changing class names is a low risk operation, so don't fret over it. D'oh! Nevermind. Haven't had my coffee yet :) Overseer? UberManager? OverLord (that one's always fun)? Controller? Foreman? Container?
patbob
modified on Friday, May 23, 2008 12:17 PM