Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: difference b/w API and a classby pajout (Curate) |
on Oct 22, 2009 at 12:08 UTC ( [id://802729]=note: print w/replies, xml ) | Need Help?? |
Just small addition: Classes are good for implementation of stateless API. Objects are good for implementation of API with some states. For instance, the instance of API can keep database connection or authentication credentials according to specified rules.
In Section
Seekers of Perl Wisdom
|
|