DEV Community

loading...

Discussion on: API for Newbies

Collapse
dfeuster profile image
Daniel Feuster • Edited

Another analogy would be a restaurant as the application, the staff is the API.

1) Guest enters the restaurant(hereto-for called App).
2) The Hostess/Host requests info from the guest: How many in your party?
3) Then the Host reviews current seating and availability and suggests a short wait before a table is ready.
4) The Busser rushes out to clear a table and reset it for the new group of Guests.

etc. etc. Sometimes this is how I see the world, as a complex group of APIs I have to interact with/consume.

Collapse
emma_odia profile image
Emma Odia Author

Yes. This is a very good analogy!

Note forgetting to mention that the food is json responses! Lols!

Thank you for the comments.

Collapse
dfeuster profile image
Daniel Feuster

Yes, exactly! The Busser is identifying the stuff that needs to handled by the Dishwasher(garbage collector). The world is an endless analog for programming.

It's fun to come up with the algorithms at a restaurant in pseudo code while getting lunch!

Forem Open with the Forem app