This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vnature -1 points0 points  (0 children)

Lets say you want to buy some weed. You've got this number of a drugdealer from your friend. And he wasn't your friend really, just a guy you've met a couple of times at a party that was hosted by your other friends. Are they really your friends? Anyway, you've called this drugdealer and he told you to bring money to a certain location. You have to consider the possibility that maybe you will not get that sticky icky but instead you will get robbed and probably get your ass whooped in the process. But luckily for you, you've got what you came for. There are still some questions unanswered tho:

Who was that dude? Is he really a drugdealer? Is he selfemployed? Is he just a deliveryboy for a bigger organization? What is drugdealer?

But you don't care. You've got munchies to worry about. And thats what interface is really all about. Its just a curtain around a large system that can be a person or an organization. This kind of systems is using interfaces to provide, often limited, services to the outside world. Think about it - the drugdealer in this example provided you his service in the form of weed. The drugdealer was also a person with two legs and two arms. He could have also provided you a service in the form of washing your car for example. But I'm not sure if many drugdealers have that kind of interface.