What would you name this class? [modified]
-
(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
-
(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
FooBoss
"I'm not altogether all together."
-
(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
Ravi Bhavnani wrote:
What would you name an object that controls a collection of FooManagers?
FooManagerController
-
(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
If you follow the conventions used in the .NET Framework: class name:
FooManagerCollection
. property name:FooManagers
(for a property that returns aFooManagerCollection
). By using the suffix "Collection", you're also indicating that the class behaves like a collection, so you might want to base it onCollectionBase
. As that class predates generics, you might also want to implementICollection<FooManager>
andIList<FooManager>
(this may happen automagically with CollectionBase now - I actually never tested that - but I suspect not).-- Peter
-
Ravi Bhavnani wrote:
What would you name an object that controls a collection of FooManagers?
FooManagerController
Nemanja Trifunovic wrote:
FooManagerController
Yep, that's what I originally chose. I was wondering someone had a better idea. Thanks, /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
If you follow the conventions used in the .NET Framework: class name:
FooManagerCollection
. property name:FooManagers
(for a property that returns aFooManagerCollection
). By using the suffix "Collection", you're also indicating that the class behaves like a collection, so you might want to base it onCollectionBase
. As that class predates generics, you might also want to implementICollection<FooManager>
andIList<FooManager>
(this may happen automagically with CollectionBase now - I actually never tested that - but I suspect not).-- Peter
PeterTheSwede wrote:
FooManagerCollection
Actually it's not a collection.
Foo
,FooManager
and aFooManagerController
(the name I originally came up with) are all processes in a distributed system. /raviMy 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
DasFoohrer!
-
PeterTheSwede wrote:
FooManagerCollection
Actually it's not a collection.
Foo
,FooManager
and aFooManagerController
(the name I originally came up with) are all processes in a distributed system. /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
Right. I second the
FooManagerController
suggestion then. Although some of the other suggestions are clearly more fun. Why notFooBar
? It has a nostalgic ring to it...-- Peter
-
(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
FooFoo :-) I must admit that sounded funnier in my head than it looks in print. Oh well.
-
Right. I second the
FooManagerController
suggestion then. Although some of the other suggestions are clearly more fun. Why notFooBar
? It has a nostalgic ring to it...-- Peter
-
DasFoohrer!
DasFooT
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Ummmm... I think the CP community just killed your server... scalability issues, anyone? In any case... nice name choice! Is your K&R also still sitting next to you in a bookshelf? Mine is (next to me, that is). :-)
-- Peter
-
(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
FooGoo FoosToi
-
Ummmm... I think the CP community just killed your server... scalability issues, anyone? In any case... nice name choice! Is your K&R also still sitting next to you in a bookshelf? Mine is (next to me, that is). :-)
-- Peter
PeterTheSwede wrote:
Is your K&R also still sitting next to you in a bookshelf?
Fer sure! Next to my 5 volumes of Knuth! /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
FooFiFaFum!
-
Ummmm... I think the CP community just killed your server... scalability issues, anyone? In any case... nice name choice! Is your K&R also still sitting next to you in a bookshelf? Mine is (next to me, that is). :-)
-- Peter
PeterTheSwede wrote:
Ummmm... I think the CP community just killed your server... scalability issues, anyone?
Nah... DNS lookup failure - route66.net name servers seem down. Not your fault (?).
-- Peter
-
(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 you talkin' about' Foo'?
-
FooQueue? :-O
That's a real gem with english pronounciation of "queue"! :laugh:
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist -
PeterTheSwede wrote:
Is your K&R also still sitting next to you in a bookshelf?
Fer sure! Next to my 5 volumes of Knuth! /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
Ravi Bhavnani wrote:
Next to my 5 volumes of Knuth!
OMG! I only have three (Sorting&Searching being the only one I frequently refer to). Coolness!
-- Peter
-
What you talkin' about' Foo'?
PityTheFoo