Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Do you know where your variables are?
 
PerlMonks  

Re^3: undef is undef

by moritz (Cardinal)
on Aug 29, 2012 at 10:11 UTC ( #990426=note: print w/ replies, xml ) Need Help??


in reply to Re^2: undef is undef
in thread undef is undef

Adding accessor to usr sounds like a wise solution to hide test ifs, but it will mask the fact that avatar is accessor of person.

Hiding unneeded facts is what abstraction is all about. Why should a user of your backend model care about which table the avatar comes from? If the user doesn't have to care, it means you can change that stuff later on the in the database and only adapt your model, not your code that generates the HTML.


Comment on Re^3: undef is undef

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-04-16 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (418 votes), past polls