Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: The division of (class) labor in OOP

by BrowserUk (Patriarch)
on Jun 05, 2005 at 19:11 UTC ( [id://463751]=note: print w/replies, xml ) Need Help??


in reply to The division of (class) labor in OOP

Ask yourself will you ever authenticate anything other than a User?

If yes, and if there will some commonality between the code to authenticate a User and that/those Other things then an Authenticate class maybe useful.

Otherwise, just add authentication method(s) to the User and Other classes.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
  • Comment on Re: The division of (class) labor in OOP

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-23 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found