What would you name this class? [modified]
-
I suspect that too... I think he spotted your post and my reply on OCD naming... but it seems pretty clear that we weren't the only ones suspectible to getting caught in his nets... :-D
-- Peter
And that would be susceptible actually... I never get that right!
-- Peter
-
Ravi Bhavnani wrote:
What would you name an object that controls a collection of FooManagers
[edit] hmm, already suggested FooManagerController [/edit] FooManagerManager jhaga
Protect the Gorilla!
jhaga wrote:
FooManagerManager
Is that FooManagerSquared, or FooManagerToThePowerOfTwo, or worse still FooCEO?
Deja View - the feeling that you've seen this post before.
-
Sorry, I haven't caffeinated yet. Yes, I meant 3. /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
Thanks, now I can go to sleep again... :-) You already had me googling for volumes 4 & 5. Nothing new since I looked last time, though - parts of volume 4 are available, volume 5 still scheduled for 2015... http://www-cs-staff.stanford.edu/~uno/[^]
-- Peter
-
jhaga wrote:
FooManagerManager
Is that FooManagerSquared, or FooManagerToThePowerOfTwo, or worse still FooCEO?
Deja View - the feeling that you've seen this post before.
-
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
Noone always likes that kind of thing, that's the type of guy he is.
-
You all bitch and moan when someone posts a programming question here, I point out quite rightly that we have a design forum and you vote me down and proceed to answer Ravi. Away and raffle your donuts! :mad:
"The great pleasure in life is doing what people say you cannot do." - Walter Bagehot
Why are you surprised?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
fat_boy wrote:
And just what does 'Foo' mean anyway? You probably dont knmow, and you just use it because you think it makes you look cool because you read it in some crappy SW book written by an American, because, god knows, only an American would ever use it anyway.
Foo is one of the most revered and ancient placeholder names ever used in computer science, along with its friend Bar (occasionally they join to become The Mighty FooBar). Using it shows experience and literacy (and/or age, possibly - which also calls for respect). What it means? That has been the subject of much musing in the industry... as has its origins. Google for "jargon file" for one particularly well-written attempt at enlightenment (also discusses the possible relation to fubar).
fat_boy wrote:
f*** I hate computer nerdyness.
So what exactly are you doing on a computer programming site?
-- Peter
For the most part he's the village idiot but 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.
"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
El Jefe!
WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated. There are 10 kinds of people in the world: People who know binary and people who don't.
-
For the most part he's the village idiot but 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.
"The great pleasure in life is doing what people say you cannot do." - Walter Bagehot
True. Nerdiness isn't a virtue to strive for, but for some reason it seems to afflict most of us. Even those self-employed suckers depending on getting stuff done. I'm one of them - and that's why I'm here, finding ready-to-use code snippets and pieces of knowledge - and trying to support the community by helping people whenever I have the spare time. In any case, I doubt a CodeProject site for just self-employed professionals would be nerd-free. On the contrary, I think nerdiness (again, not a virtue but a fact) often drives people in that career direction. As in a) finding it at all interesting to program computers in the first place and b) finding it necessary to not be bossed around by incompetent people (while customers may be incompetent in my field, they usually outsmart me in theirs, so I can live with them). I know this was the case for me... :-)
-- 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
FooDepartmentHead
?FooDirector
?FooVicePresident
?Software Zen:
delete this;
Fold With Us![^] -
jhaga wrote:
FooManagerManager
Is that FooManagerSquared, or FooManagerToThePowerOfTwo, or worse still FooCEO?
Deja View - the feeling that you've seen this post before.
FooCEO
is remarkably close to one of my rejects:FookUp
Software Zen:
delete this;
Fold With Us![^] -
fat_boy wrote:
And just what does 'Foo' mean anyway? You probably dont knmow, and you just use it because you think it makes you look cool because you read it in some crappy SW book written by an American, because, god knows, only an American would ever use it anyway.
Foo is one of the most revered and ancient placeholder names ever used in computer science, along with its friend Bar (occasionally they join to become The Mighty FooBar). Using it shows experience and literacy (and/or age, possibly - which also calls for respect). What it means? That has been the subject of much musing in the industry... as has its origins. Google for "jargon file" for one particularly well-written attempt at enlightenment (also discusses the possible relation to fubar).
fat_boy wrote:
f*** I hate computer nerdyness.
So what exactly are you doing on a computer programming site?
-- Peter
PeterTheSwede wrote:
So what exactly are you doing on a computer programming site?
Trolling endlessly on Global Warming. Stay away from the soapbox.
Cheers, Vikram.
The hands that help are holier than the lips that pray.
-
fat_boy wrote:
And just what does 'Foo' mean anyway? You probably dont knmow, and you just use it because you think it makes you look cool because you read it in some crappy SW book written by an American, because, god knows, only an American would ever use it anyway.
Foo is one of the most revered and ancient placeholder names ever used in computer science, along with its friend Bar (occasionally they join to become The Mighty FooBar). Using it shows experience and literacy (and/or age, possibly - which also calls for respect). What it means? That has been the subject of much musing in the industry... as has its origins. Google for "jargon file" for one particularly well-written attempt at enlightenment (also discusses the possible relation to fubar).
fat_boy wrote:
f*** I hate computer nerdyness.
So what exactly are you doing on a computer programming site?
-- Peter
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
-
For the most part he's the village idiot but 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.
"The great pleasure in life is doing what people say you cannot do." - Walter Bagehot
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
-
(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
-
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.