What is an API? (Application Programming Interface)

Techquickie ·Techquickie ·2017-05-06 · 983 words · ~4 min read
Floatplane YouTube

Transcript

JSON SRT VTT 77
0:00 have you ever shopped at a place that promised lower prices by cutting out the
0:04 middleman although this might make things easier in the real world by not
0:08 having to deal with a Cheesy storefront and high pressure salesman who's
0:12 desperate for a commission the middleman or lady is actually very important in
0:18 computer land you see the software that you use can be thought of as a club
0:22 sandwich like stack of different programs some of which sit between
0:28 whatever program you're inter acting with directly and the hardware itself
0:33 because without these layers programmers
0:36 and developers would have to code differently for every single Hardware
0:41 configuration on the planet which would be
0:45 impossible other layers sit between two
0:48 different pieces of other software and help them talk to each other without
0:52 needing to have tons of code in common
0:55 these software layers help standardize the coding process so that programs can
1:00 interface with lots of different stuff easily and while you might be most
1:04 familiar with a layer called a device driver which we've actually discussed
1:08 before and that translates program instructions and talks directly to your
1:12 Hardware another layer called an application programming interface or API
1:18 can be just as important but if a driver
1:21 is already there then to serve as the link between your hardware and programs
1:26 then what does the API actually do we'll think of it like this Windows macOS and
1:32 Linux all provide a graphical interface
1:35 your buttons checkboxes menus Etc that
1:39 are easy to click on without that you'd
1:42 be left tediously typing commands for everything you want to do like back in
1:46 the days when Doss ruled the world or if you're a bash fan then yesterday
1:52 similarly an API provides a simpler way
1:55 for developers to interact with other kinds of software a really good example
2:00 of this is social media plugins that you see on certain websites such as a news
2:05 article that embeds tweets or a page that For Better or For Worse lets people
2:10 leave Facebook comments under it both Twitter and Facebook have their own apis
2:16 that they make available to web developers making it easy for them to
2:20 bake Twitter and Facebook features into their own Pages without these apis these
2:26 social media Giants would have to share code directly with owners of other sites
2:31 which would be tedious difficult and possibly give away certain Trade Secrets
2:36 but if you're a PC Gamer you might be even more familiar with Graphics apis
2:41 such as DirectX openg and Vulcan which
2:45 sit between the engine of whatever game you're playing and your graphics card
2:50 driver these apis make it easier for game developers to code cool effects
2:55 that bring your favorite characters and stories to life and to have them work
3:00 regardless of whether you have an AMD or an NVIDIA GPU since the API can talk to
3:06 any mainstream graphics card and as GPU
3:10 technology advances you'll see new revisions of Graphics apis being rolled
3:14 out that can take advantage of more powerful Graphics chips you can actually
3:18 learn more about direct X12 and Vulcan
3:22 as well as how game engines work in these episodes but even if you don't
3:27 game or argue with random trolls in Facebook comments you're still taking
3:31 advantage of apis all the time if you're a Windows user Windows has its own API
3:38 uninspirational named the Windows API
3:41 commonly referred to as win32 or win64
3:45 depending on whether you're running a 32 or a 64-bit application Windows API
3:50 makes it easier for programs to do things like talk to your devices modify
3:55 your registry use screen elements like buttons and Status bars and much more
4:00 without making the developer code these things directly and also helping users
4:05 by providing a more reliable and consistent experience I mean can you
4:10 imagine if every single program on your computer had a different looking close
4:13 button in the corner so while apis might
4:16 not be the usual star of the show when you're doing whatever it is you do on
4:20 your PC or phone they make it possible for all of our disperate devices and
4:25 software to work well with each other and Ena the massive amount of quick
4:30 communication and high-end gaming that we've gotten used to I mean really
4:35 haven't you always been a little curious as to how the sausage is made but if
4:39 when it comes to payments for your website or your mobile app you do not
4:44 care how the sausage is made then you might want to check out brain tree brain
4:49 tree makes mobile payments so fast easy and seamless it's almost magical add it
4:55 to your app with just a few lines of code and you are instantly ready to
4:58 accept Apple pay Android pay PayPal venmo credit cards even Bitcoin and if
5:03 some other way comes along brain tree will support that too they fast payouts
5:08 and continuous support mean you'll always be ready whether you're earning
5:12 your first dollar or your billionth you
5:15 can see fewer abandoned carts and more sales with brain tre's best-in-class
5:19 mobile checkout experience and you can learn more at Braintree payments.com
5:24 tequ which we're going to have linked below so thanks for watching guys if you
5:28 like the video like it if if you dislike it dislike it if you want to check out our channels boom if you want to leave a
5:32 comment with video suggestions boom and if you want to subscribe and follow then cool beans does anyone say cool beans
5:37 anymore I picked it up from for Better or For Worse which was like already kind
5:41 of a wellestablished comic by the time I was old enough to be reading comics