what are this cookies

Hehehe first explain to him API ni nini

Wrong, it’s not an OS version and you know that.
In your previous handle you were a Linux advocate

:eek::eek::eek:

Hehehe…wacha nijaribu kukusaidia jimmy. Cookies are stored by the browser. If you go into your browser files utazipata huko. Basically, it enables the website to remember who you are and what you were doing on the website. Say you were on amazon and you put a tv in the shopping cart then the browser crashed. You restart the computer and go back to amazon and surprise the tv is still in the cart. HTML is the skeleton that builds a website. It is then beautified with the use of CSS. Data is passed to the server from the HTML forms using server side scripts such as PHP. To make the process smoother for passing data to the server without the page reloading you can use javascript/jquery/ajax.

1 Like

@gashwin here is a simple non-greek explanation of what an API is cc @Chloe

**
**
[SIZE=6]What’s an API?[/SIZE]
APIs make a connected world possible, here’s a simple, non-technical explanation of what they are. #askIoT

https://cdn-images-1.medium.com/max/800/1*LWktwNAB2cJEZD3gi-6DJg.png
When I first started at Leverege, I heard the development team say “API” all the time and realized that I should probably know what that meant. Perhaps like you, learning that API stood for Application Program Interface didn’t help me at all, and many of the results from Google remained unclear to a non-technical person like me.

But even if you’re not a programmer and don’t consider yourself the technical type, you should know about APIs. After all, APIs play an essential role in many of the products and services that we value today because APIs allow different programs to interact with one another.

So today, I’m sharing with you an analogy that I’ve found helpful in understanding what APIs are and why they’re so important to everything.

[SIZE=4]Ordering Food[/SIZE]
You’re home, you’re hungry, you’re lazy. Time to order some food.

You decide to order from Jack’s Burgers, so you look through their menu to see the options, then request a specific dish by placing an order. The order is received at Jack’s Burgers, passed along to the kitchen, and a series of steps are performed to create the dish. That dish is delivered to you and is quickly devoured.

Yum.

Ok you’re still hungry. But you don’t want another burger. You decide to go with Jill’s Pizza this time.

When you call Jill’s Pizza to place your order, what do you think would happen if you tried to order off the menu for Jack’s Burgers? You’d probably be met with confusion. You certainly wouldn’t get the dish you tried to order.

[SIZE=4]APIs are like Menus[/SIZE]
In the above analogy, you’re a program and the restaurants are programs that you want to interact with. To receive what you want (food) from the other program (restaurant), you need to make a request (place an order) in a specific way (defined by the menu). If you try to request in the wrong way, you won’t get what you want.

APIs are like menus. Menus define a list of dishes and, when someone orders one of those dishes, the restaurant does a bunch of stuff and then sends the requested dish back. APIs define a list of commands and, when a program uses one of those commands, the other program does a bunch of stuff and then sends back what was requested by that command (usually some kind of data).

https://cdn-images-1.medium.com/max/800/1*chLHkN5e3l_7iSSCQ3_UTg.png
It’s important to note that the ordering food analogy isn’t perfect. When you order food, there are many variations you could use to get the same result. But programs aren’t as smart and flexible as humans. When making a request to another program, the request has to be formatted in a very specific way.

If restaurants were like programs, saying “House Burger, medium-rare, no pickles, replace the fries with coleslaw” would get you your food but saying “may I please have the House Burger cooked medium-rare with coleslaw instead of fries and no pickles on the burger” would not. The restaurant wouldn’t understand what you’re asking because the request isn’t formatted correctly.

So APIs define a list of commands as well as the necessary format of those commands. When a company releases an API for their software, it means that they’ve basically told everyone: here is what you can get from our program and here is exactly how you have to ask to get it.

[SIZE=4]Why APIs are Essential[/SIZE]
APIs make it possible for programs to interact with each other. This is especially important for programs because they can written in different languages, so APIs provide a means for different programs to overcome the “language barrier”.

Also, APIs mean that users of your program don’t need to leave your program to use someone else’s program. For example, by using weather.com’s API, you can request current weather data and display it on your site for visitors. That way visitors can get weather information without having to leave your website and go to weather.com.

Going back to the food analogy, APIs mean you can stay at home ordering different things from different restaurants without needing to go out to them.

Also, APIs reduce complexity. When you order food from a restaurant, many complex steps are strung together to complete your order. Chopping ingredients, precise heating, boxing the food, etc… How annoying would it be if you needed to describe every step in the process when ordering to get your dish? Instead, you say the menu item and all the rest is taken care of automatically.

Similarly, when use an API to request something from a program, many complex processes may occur behind the scenes that you don’t have to worry about. You just get whatever it is that you requested in return.

A great example of this is the Alexa Voice Service API. Individual developers can’t build Natural Language Processing like Alexa, but instead they can use Alexa’s API to make tools based on it. So rather than needing to figure out how to take speech and understand the meaning (which is really hard), developers can focus on cool new applications that involve voice control.

This is why APIs are hugely important to the Internet of Things. APIs allow companies to focus on their own expertise, plugging in the tools and programs of other companies as needed to create an IoT product/service that’s greater than the sum of its parts.

https://iot-for-all.com/whats-an-api-44b23eb30897#.dqccgcxs3

3 Likes

okay wacha nisaidie mzee @gashwin

  1. Api’s nimeweka explanation in a comment
  2. HTML @denis young amesema ni nini.
  3. DOM(Document Object Model) is like an API that connects web pages(html) to programming languages and scripts
  4. HTML5 is just an improved version of HTML which @denis young talked about pia @jimmy_m has talked about the storage apis added to html in the HTML5 version
  5. DB stands for database. database is just a set of data organised in a way that a computer can find them. data i hope unajua ni nini.
  6. Database management system ni software used to manage a database i.e interacts with the user, the database and the application to organsise and analyse the data in a database. lets say uko in Ktalk, you create a post, when you hit the post button the DMS(database management system) will store the comment or post yako kwa category it should be kwa database, if ulipost kwa politics then itaiweka kwa politics section of the database or even the comments in their various post such that web application used to run Ktalk will know where to get the data from when a request is made.

example of database management systems ni SQLite(which @Jimmy ametaja) , Mysql, Postgresql, Mongodb etc.

i hope umeelewa hiyo comment y @jimmy_m sasa. @TerribleWaste na @grandpa can correct places nimemess and add more to this

4 Likes

??? :eek::eek::eek:

http://img.memecdn.com/chrome-is-not-accepting-cookies_o_1049100.webp

@gashwin finally ulielewa?

Asante sana

Thanks. Nitasoma usiku pole poole SAA hii Niko chini ya mti mahali desolate nangojea DO atoke lunch…

unfortunately when operating in my realm, wanjiku is required, as a bare minimum to understand the basic building blocks, otherwise you send them to get a book named “Tech for dummies”. i know it sounds connie but we all cant be blessed with all talents, and there are some things you cant learn in school (atleast not when i was there 20 years ago :D) ,such as the correct way to disseminate information in its basic form, or maybe some minds (like mine) are just incapable of learning the trade

i am greatly aware of my weaknesses and one thing am good at is admitting them, main weakness being explaining tech to none techies, i cant seem to figure out a way to do it in basic human relate-able language all the time, its always hit and miss (the eureka moments are few and far between). that much i know and admit as often as required. and to be honest, i think am abit too old to force my foggy brain to start learning how to, its just not worth it this far down the line