Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: difference b/w API and a class

by pajout (Curate)
on Oct 22, 2009 at 12:08 UTC ( [id://802729]=note: print w/replies, xml ) Need Help??


in reply to Re: difference b/w API and a class
in thread difference b/w API and a class

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://802729]
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: (2)
As of 2024-04-26 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found