Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: OO semantics quandary

by smalhotra (Scribe)
on Aug 14, 2002 at 19:10 UTC ( [id://190199]=note: print w/replies, xml ) Need Help??


in reply to OO semantics quandary

In my opinion it depends on how related the modules are and how they are 'use'd. When you say 'thingy', I assume you mean module/object. If Foo::Bar uses uses Quux for implementing certain methods Foo::Bar without any inheritance, then you could have Foo::Bar::Quux.

However, if Foo::Bar are related as in they both apply to Foo but not directly to each other, they I would suggest using Foo::Quux. (OT: anyone know how to pronounce quux?)

Foo::Bar new(-Quux): I don't like this because it appears that quux is separate from bar and should therefore be in a separate module altogether.

<code></ramble>

Replies are listed 'Best First'.
Re: Re: OO semantics quandary
by belg4mit (Prior) on Aug 14, 2002 at 20:14 UTC
    They are related in that actually both provide a subset of the functionality of figlet(6). I say "thingy" because the second is not an object, but rather a closure.

    Foo::Quux is not an option (Text::Control is both non-sensical, and relatively useless. Quux essentially provides for specifying a series of tr transformations in a non-perl, plain-text manner. See "CONTROL FILES".

    I am still leaning towards Foo::Bar->new(-Quux), since as I said the Current Foo::Bar is really Foo::Bar->new(-Baz), and simply croak-ing on a new with both -Quux and -Baz.

    OT: I pronounce it qu-ucks, like quick ducks without the ick'd. This is in agrrement with The Jargon File, especially given the association with crux.

    --
    perl -pew "s/\b;([mnst])/'$1/g"

Re(2): (OT) How do you pronounce Quux? (was Re: OO semantics quandary)
by FoxtrotUniform (Prior) on Aug 14, 2002 at 19:40 UTC
      OT: anyone know how to pronounce quux?

    I tend to pronounce it "kooks", like the Usenet infestation, but I think "kwooks" is more popular.

    --
    F o x t r o t U n i f o r m
    Found a typo in this node? /msg me
    The hell with paco, vote for Erudil!

      I pronounce it kwuhks; rhyming with bucks rather than books (or pukes). I think that is generally accepted.

      I pronounce "qux" as kuhks and "quuux" as kwew-uks but I think those are both personal variations.

      -sauoq
      "My two cents aren't worth a dime.";
      
      The Jargon File entry for "quux" claims that it is pronounced /kwuhks/.

      -- Mike

      --
      just,my${.02}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://190199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-20 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found