What is API - GoTechTalk


Sunday, September 20, 2020

What is API

Whatever you do on your pc or phone API's make it possible for all of our devices and software to work well with each other and enable the massive amounts of quick communication.
By Sudarshan Yerunkar | | Posted on 20th September 2020 | deals.gotechtalk.com


Hey everyone this is Sudarshan, today I will try to explain what is API (Application Programming Interface)

So have you ever shopped at a place that promised lower prices by cutting out the middleman, although this might make things easier in the real world by not having to deal with that superlative storefront and high-pressure salesman who's desperate for a commission.

The middleman is actually very important in computer world, you see the software that you use can be thought of as a sandwich like stack of different programs some of which sit between whatever program you're interacting with directly and the hardware itself because without these layers programmers and developers would have to code differently for every single hardware configuration on the planet which would be impossible.

other layers sit between two different pieces of other software and help them talk to each other without needing to have tons of code in common, these software layers help standardize the coding process so that programs can interface with lots of different stuff easily and while you might be most familiar with a layer called a device driver and that translates program instructions and talks directly to your hardware another layer called an Application Programming Interface or API can be just as important but if a driver is already there then to serve as the link between your hardware and programs then what does the API actually do?

Well think of it like this; Windows, Mac OS and Linux all provide a graphical interface your buttons checkboxes menus etc, that are easy to click on without that you'd be left boring typing commands for everything you want to do like back in the days when Dos ruled the world similarly an API provides a simpler way for developers to interact with other kinds of software.

The really good example of this is social media plugins that you see on certain websites such as a news article that embeds tweets or a page that for better or for worse let people leave Facebook comments under it, both Twitter and Facebook have their own API which they make available to web developers making it easy for them to bake Twitter and Facebook features into their own pages without these api these social media giants would have to share code directly with owners of other sites which would be tedious difficult and possibly give away certain trade secrets but if you're a PC gamer you might be even more familiar with graphics API's such as DirectX, OpenGL and Vulkan which sit between the engine of whatever game you're playing and your graphics card driver, these API's make it easier for game developers to code cool effects that bring your favourite characters and stories to life and have them work regardless of whether you have an AMD or an NVIDIA GPU since the API can talk to any mainstream graphics card and as GPU technology advances you'll see new revisions of graphics API is being rolled out that can take advantage of more powerful graphics chips.

If you don't game or argue with random trolls and facebook comments you're still taking advantage of API's all the time if you're a Windows user, Windows has its own API its named Windows API commonly referred to as win32 or win64 depending on whether you're running a 32 or a 64-bit application, windows api makes it easier for programs to do things like talk to your device's modify your registry use screen elements like buttons and status bars and much more without making the developer code these things directly and also helping users by providing a more reliable and consistent experience, can you imagine if every single program on your computer had a different looking close button in the corner so while api's might not be the usual star of the show when you're doing whatever it is you do on your pc or phone they make it possible for all of our disparate devices and software to work well with each other and enable the massive amounts of quick communication and high-end gaming that we've gotten used to.

If this helped you learn something new please let me know into the comments and share this to your friends.

No comments:

Post a Comment