What is an API? (Application Programming Interface)

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии •

  • @heeerrresjonny
    @heeerrresjonny 8 лет назад +85

    I'm a software developer, and this was a good overview. At first I thought you were just covering the graphics APIs, but I'm glad you went over things like the Windows API and APIs for social media. This is something that a lot of people don't know about programming and maybe scares them away from learning (we don't have to make everything from scratch)

    • @Videocu
      @Videocu 5 лет назад +3

      Well all of those things basically is rest or rest api. Api has different meaning basically..

  • @jjr9198
    @jjr9198 8 лет назад +36

    I love how straightforward TechQuickie is in explaining various topics in a way that most watchers can understand, but it is not so long it's boring. Kudos to Linus, Luke, Dennis, and Jon for TechQuickie!

  • @pavelbantsevich480
    @pavelbantsevich480 4 года назад +10

    I've recently started a new career as a Project Manager (From teaching English to IT:)) and needed to deepen my knowledge in.... everything. Your channel helps me a lot! Thank you, guys!

  • @belstar1128
    @belstar1128 8 лет назад +523

    This was uploaded the moment when i was about to google what a api is

    • @paulgarcia2887
      @paulgarcia2887 8 лет назад +38

      Message from the gods

    • @MIxosmefistous
      @MIxosmefistous 8 лет назад +17

      I was reading about it today for my Java University Classes.
      Holy shit. I never got to read it, cuz i got bored. Now i guess i gotta watch and learn here.

    • @JACKOFALLFATES
      @JACKOFALLFATES 8 лет назад

      awareness gods

    • @noredine
      @noredine 8 лет назад +3

      you used Google+ API to post this comment

    • @jagc2206
      @jagc2206 8 лет назад +1

      No he did not, youtube just send a Ajax post to the nearest Google server with a key, the message and other security information

  • @trig
    @trig 8 лет назад +140

    Literately working their way through the tech dictionary.

  • @dino130395
    @dino130395 8 лет назад +59

    4:28 Wow! That's some Kurzgesagt level artwork right there!

    • @animationspace8550
      @animationspace8550 4 года назад

      That is beyond kurzgesagt even beyond current day kurzgesagt

    • @elie933
      @elie933 3 года назад +1

      Kurzgesagt ain't got nothing on techquickie

  • @max-zl1vm
    @max-zl1vm 2 года назад +10

    After all these years, you still make great stuff, Linus

  • @kusaluprety232
    @kusaluprety232 8 лет назад +17

    Sweet, I always here Vulcan API when looking at games for my s7 and never understood what it was until now. Thank Linus!

  • @freddian4865
    @freddian4865 8 лет назад +149

    "ping 127.0.0.1" 10/10 picture choice

    • @mtunayucer
      @mtunayucer 8 лет назад +2

      xd

    • @IAmTheRealKen
      @IAmTheRealKen 8 лет назад

      ping 0.0.0.0/0

    • @Kid574
      @Kid574 8 лет назад +2

      #PingDaWorld

    • @factsverse9957
      @factsverse9957 8 лет назад +1

      It is actually sad that 3 hours before the upload of this video someone in my relative family passed away. 😢

    • @freddian4865
      @freddian4865 8 лет назад

      Kenji Gunawan FeelsBadMan

  • @JonatasMonte
    @JonatasMonte 8 лет назад +1

    I really like this guys, seriously that's the reason why I come here to learn more about tech stuff and get update what I already know.

  • @nikhilkadiyan4847
    @nikhilkadiyan4847 6 лет назад +104

    1:44 see whats on F4, just see it!

  • @RC-1290
    @RC-1290 8 лет назад +15

    On 64-bit you still use the Win32 API. Even though the code is 64-bit

  • @henniehennie
    @henniehennie 4 года назад

    dude thank you so much - i just watched & read 20,000 different things about APIs and this is the only one that actually made me connect the dots

  • @GeekIWG
    @GeekIWG 8 лет назад +22

    1:40 "...or if you're a Bash fan, then.. yesterday."
    For me that's everyday, including today (that is, if we are counting ZSH).
    For a lot of things, I find it faster and more powerful than using a GUI.

    • @paulgarcia2887
      @paulgarcia2887 8 лет назад +2

      MORE POWER!!!!

    • @tylerrussell7560
      @tylerrussell7560 8 лет назад +4

      Ulimited power!!!

    • @GeekIWG
      @GeekIWG 8 лет назад +4

      And with great power comes great responsibility. I've accidently swapped out a period for a slash before and destroyed my OS. Others have had worse mistakes, causing them to lose much data.

    • @roycai8895
      @roycai8895 8 лет назад +3

      apt-get moo
      with sudo, comes more responsibility.

    • @lordluke10
      @lordluke10 8 лет назад

      more like _moo_ responsibility

  • @Yemto
    @Yemto 8 лет назад +38

    04:10 Yes, that would be like all programs using it to close themselves, then suddenly one uses it as a accept button.

    • @pascha4527
      @pascha4527 8 лет назад +4

      its possible to do that......lolll

    • @keeyan2166
      @keeyan2166 8 лет назад +5

      I think he is referring to the windows 10 update prompt. Closing it was essentially accepting the update

    • @Yemto
      @Yemto 8 лет назад +3

      ESDACIO44 Just to confirm, that is indeed what I was referring to.

    • @pascha4527
      @pascha4527 8 лет назад

      Haa, I didnt get that! But windows 10 isnt bad, bud I dont know why microsoft wanted that much us to have it....

    • @Yemto
      @Yemto 8 лет назад +6

      Pascal Lafreniere It's not about how good or bad windows 10 are, they should never have tried to trick their users to upgrade.
      Data is worth money, and for someone who isn't tech savvy, windows 10 collect a lot of it from their users.

  • @NeoAutodroid
    @NeoAutodroid 2 года назад

    This is the best description video of API's I've found yet. Looking forward to sharing it with my class.

  • @tekshock3542
    @tekshock3542 8 лет назад +10

    A very good and solid explanation of API! Thanks!

  • @loricus7319
    @loricus7319 8 лет назад +375

    Why is Linus so yellow? Its like every single techquickie video has huge colour issues...

    • @MistahMOB
      @MistahMOB 8 лет назад +9

      haha damn now you got me looking at his bright yellow hands the entire video

    • @353click
      @353click 8 лет назад +20

      this is common problem with using a green screen, the light bounces off of the green screen and back onto the person giving a green or yellowish glow around or even on the person

    • @Raul1528
      @Raul1528 8 лет назад +25

      Drinks too much lemonade

    • @GeekIWG
      @GeekIWG 8 лет назад +2

      LOL! When I first read you comment, I thought you were calling Linus chicken

    • @SuperMetalDave64
      @SuperMetalDave64 8 лет назад +1

      Bad green screen this time?

  • @kennygbadebo4943
    @kennygbadebo4943 4 года назад +4

    THIS GUY IS GOOD!!! KEPT ME GLUED TO MY SCREEN

  • @jeremyO9F911O2
    @jeremyO9F911O2 8 лет назад

    super cool visual effect you used when you broke down API acronym kudos on that.

  • @annamarie6310
    @annamarie6310 6 лет назад +1

    Thank you this was one of the best explanations of API and how it works that I seen so far.

  • @MunkeyChips
    @MunkeyChips 6 лет назад +4

    That Vulkan API is pretty remarkable when looking at how it is used in Doom (2016).
    Running on just R3 2200G iGPU, the game gets around 60fps @720p/med
    (Technically, 50% render scale of 1080p, so slightly more than 720p)

    • @snesmocha
      @snesmocha Год назад

      2023 now and you can get 60 fps at 900p on the newest amd apus

  • @meltedcheese1908
    @meltedcheese1908 6 лет назад +2

    This video was very informative, I always enjoy binge watching these videos because they are very helpful in understanding how things work. Good job!

  • @whitewater9873
    @whitewater9873 8 лет назад +8

    Linus you are a wealth of knowledge. Gaben bless thine soul

    • @therandomguy2441
      @therandomguy2441 3 года назад

      This is not such great knowledge, it's a simple/ basic logic that most people ignore.

    • @therandomguy2441
      @therandomguy2441 3 года назад

      And this is a very simplistic explanation.

  • @PatRiot-
    @PatRiot- 6 лет назад +1

    Why do I need to learn this at midnight before work in the morning?!?
    I just can't stop myself

  • @skilz8098
    @skilz8098 3 года назад +1

    If you're a bash fan, then like yesterday! That's on point!

  • @kso35
    @kso35 2 года назад

    Here in 2021. This was a great video in which he also refers two other really good informative videos!! Linus is great at what he does!!! Thanks man!

  • @seankkg
    @seankkg 4 года назад +1

    Why is Linus' voice so high, it's so much deeper now comparatively.

  • @nO_d3N1AL
    @nO_d3N1AL 8 лет назад

    I knew what an API is (great explanation btw) but wasn't sure what graphics APIs like D3D and OpenGL actually do, this summed it up nicely.

  • @MasterGeekMX
    @MasterGeekMX 8 лет назад

    Forget "psycology of fonts" or "battery bank buy guide" and other kind of nonsense videos. I suscribed here for this kind of videos.

  • @acbghost4411
    @acbghost4411 4 года назад +21

    “Or if your a bash fan than yesterday “ 1:50 I shouldn’t have laughed as hard as I did

  • @alyowenspm
    @alyowenspm 4 года назад

    I love your videos and how you simplify complex subjects

  • @evhunter0962
    @evhunter0962 3 года назад +1

    1:44 nice commands, dont think I've ever seen those before

  • @TheFreaxTux
    @TheFreaxTux 8 лет назад +1

    4:08 "I mean, can you imagine if every single program on your computer had different looking close button on the corner?"
    Yeah...that pretty much happens on Linux if you screw up with theme settings...
    More specifically if you set different looking theme for each toolkits

  • @LimitedWard
    @LimitedWard 5 лет назад

    Another thing that was somewhat glossed over in this video: APIs control what data is exposed to the consumer and what stuff is hidden, and this is usually tied in with some sort of authentication algorithm. Web APIs, for example, often use token-based authentication to control what data a user can see.

  • @caincha
    @caincha 6 лет назад

    I don’t know how it is today with Win10 but back in the late 90s early 2000s a friend techie theorised that the main reason Windows would be more unreliable than say MacOS is that Win has to ‘make do’ with infinitesimal combinations of hardware whilst MacOS had a close system and only had to manage this or that hardware making the OS not only more stable but also quicker - Unix aside.
    An analogy could be Hackintoshes: when you want to make MacOS play with several combinations of hardware you’ll likely face the same issues one would face using Windows...

  • @xurtis
    @xurtis 8 лет назад

    An API isn't really a distinct layer, but more where to layers meet, at the 'interface' of the two if you will.

  • @WhileTrueCode
    @WhileTrueCode 8 лет назад

    As a senior software developer, I approve this message

  • @2Stepzupp
    @2Stepzupp 8 лет назад

    I remember when techquickie was about "... as quick as possible" or "... in under a minute". Good ol' days. Rip 6 min videos

  • @322-k1s
    @322-k1s 8 лет назад +3

    You know you could add captions, earn points, and move up the regime.

  • @Finkelfunk
    @Finkelfunk 8 лет назад +4

    You know what would make for a good video?
    The history of keys like Numlock, Scroll, Pause, Pos1 and Capslock and why the hell they still exist on a modern keyboard.

  • @jekanyika
    @jekanyika 7 лет назад +1

    I covered this at university but I have since forgotten most of it.

  • @TerryKashat
    @TerryKashat Год назад +1

    Cool Beans will always be around.

  • @yeppiidev
    @yeppiidev 4 года назад +2

    Do you know how to render OpenGL without allocating the memory at the location 0xB50000050500FF?

  • @GSBarlev
    @GSBarlev 2 года назад

    This video came recommended after watching the LTT preview of Intel's ARC GPUs, which they report perform great on Vulkan and DX12, but not so hot on all the titles that are still using DX11.
    Let that sink in: this video is *five years old* and game makers are *still* dragging their heels moving to the new APIs.

  • @TheLolilol321
    @TheLolilol321 5 лет назад +161

    i've been programming for years why did i click on this

    • @JITCompilation
      @JITCompilation 4 года назад +9

      that makes me feel better as a CSCI major googling what an API is

    • @benandrei8690
      @benandrei8690 4 года назад +2

      Lonke cause u a fake programmer jk xdddd

    • @TheLolilol321
      @TheLolilol321 4 года назад +1

      @@benandrei8690 the jig is up

    • @tubz
      @tubz 4 года назад +6

      Same, I'm a professional developer and was just curious to see what this layman's explanation would be

    • @clout8270
      @clout8270 4 года назад +3

      I literally got assigned to build an API and I had to google what it is...

  • @Zipzeolocke
    @Zipzeolocke 6 лет назад

    I'm surprised you guys didn't make a video called what is openGL by now. That has to be a commonly asked question

  • @ElectronicsForFun
    @ElectronicsForFun 8 лет назад

    haha... l was just thinking to myself last night "l wonder if Techquickie will do APIs?" and the l got the notification that this very thing has happened.

  • @PirateKingRoger-x1y
    @PirateKingRoger-x1y 4 года назад

    I never thought i would be watching LTT for help in high school programming, but here I am.

  • @Daniel15au
    @Daniel15au 8 лет назад +8

    3:44 "Window 95"... Just one Window? :P

  • @damientan8837
    @damientan8837 8 лет назад

    why do i have deja vu about luke talking about waiter and chef cooking pizza

  • @onealryan
    @onealryan 6 лет назад +1

    Thank you for this very informative video. Linus! More power!

  • @eeshaan1539
    @eeshaan1539 8 лет назад +6

    Didn't Luke make a video on this same topic a few days back??

    • @dannyedwards2012
      @dannyedwards2012 8 лет назад +1

      Eeshaan Achar yeah he did. I was thinking the same thing. They used waiters and food orders for examples

    • @eeshaan1539
      @eeshaan1539 8 лет назад

      exactly

  • @ajko000
    @ajko000 7 лет назад

    So in terms of gaming, the engine would talk to the API or say OpenGL which would then talk to the driver which would then talk to the hardware? Engine>API>Driver>Hardware?

  • @shubham_gaud
    @shubham_gaud 8 лет назад

    hii techquickie I love all your tech videos.. can you make a video on programming languages...and it's history..

  • @aortaplatinum
    @aortaplatinum Год назад

    I'm SHOCKED I've never heard of or tried Vulkan, I just got done playing DOOM 16 at ultra settings on a GTX 1050Ti at a solid 60fps

  • @VirulentNurse
    @VirulentNurse 8 лет назад +1

    Getting real worried that Linus' transformation into an oompa loompa will be complete soon. Those palms are getting awfully orange in a quickie.

  • @OverloadedOrama
    @OverloadedOrama 8 лет назад +1

    You forgot to put "as fast as possible" on the title. :P

  • @vicvic553
    @vicvic553 3 года назад

    Great video, but too short. Could you make a little bit more detailed video about this topic, huge please? :)

  • @adamwinters3011
    @adamwinters3011 8 лет назад +2

    Linus, can you do a techquicky about Floating point performance and how it relates to single and double precision (whatever that means) and this 16 bit and 32 bit accuracy that I hear people talking about. Like how quadro graphics card are apparently better at rendering using such techniques. Sorry if I made this question hard to interpret. Have a good day please.

    • @tylerrussell7560
      @tylerrussell7560 8 лет назад

      Floating point and double precision numbers both store decimal numbers. Floating point numbers are faster, but aren't near as accurate (for many reasosn). Double precision numbers are much, much more accurate, but cost a lot more RAM. Hope this helps!

    • @adamwinters3011
      @adamwinters3011 8 лет назад

      It does. But how does 16 bit, and 32 bit, and whatever other bits come into play when talking about these things?

    • @tylerrussell7560
      @tylerrussell7560 8 лет назад

      16 bit and 32 bit refer to how much memory (in bytes) is being used to store information. RAM is pretty easy to come by these days, but it's still worth mentioning.

  • @bee8396
    @bee8396 8 лет назад +2

    Bash came out 8 years after DOS, not yesterday...

    • @Quakj
      @Quakj 8 лет назад +8

      "when DOS ruled the world, or if your a bash user, yesterday" doesn't mean he said bash came out yesterday he meant that bash is commonly still used or "its ruling the world."

    • @burcburc865
      @burcburc865 7 лет назад

      you took it literally

  • @sunscorpio81
    @sunscorpio81 8 лет назад

    SUGGESTION - can you guys do a "As Fast As Possible" video on MSI's Afterburner program or Awesome Miner please?

  • @movoyemickele
    @movoyemickele 5 лет назад

    Yeap, this is what I need. Please keep creating a video like this. I don't like hardware videos, but if it comes to software then I count it as better knowledge. Why don't you create a video about terminal / unix language or maybe github or package manager, explanation about ajax and cetera. That would be awesome.

  • @TheFan630
    @TheFan630 8 лет назад

    So, visualized, the more applications you have on one end, the more you have to add on the other? I imagine a normal software like this:
    Hardware -> Driver -> Programm
    And a game like this:
    Hardware -> Driver -> API -> Engine -> Software (game)
    As someone learning IT it still confuses me, any help?

  • @collapsingspace
    @collapsingspace 3 года назад

    Everytime i learn about API's I get the concept instantly but its the acronym that messes up the understanding after a while.
    can someone explain why do we call it "application programming interface" ? which app is getting "programmed" ? shouldn't it be more like application communication interface or something like that

  • @arjunbemarkar7414
    @arjunbemarkar7414 6 лет назад

    Also, if companies like Facebook and Twitter share their code, and decide to change the code in their system to make them faster or more secure, other people will have to change thier whole website to adapt to this change.

  • @joelmck
    @joelmck 3 года назад

    All the fog is cleared up.. I now understand APIs. Cheers.

  • @jacobytes8720
    @jacobytes8720 8 лет назад

    still waiting for Luke's version of tech reviews

  • @moahammad1mohammad
    @moahammad1mohammad 6 лет назад

    API is basically the coding dictionary for a library or program

    • @dilute6980
      @dilute6980 5 лет назад

      It makes it way more straightforward for programmers to make what they want to make

  • @HassaanRaza
    @HassaanRaza 6 лет назад

    please make a video on "SYSTEM CALLS"

  • @gamecast4432
    @gamecast4432 8 лет назад

    Bash explained as fast as possible and .dll explained as fast as possible please ^-^

  • @CusPedro
    @CusPedro 7 лет назад

    the commercials at the end kills him.

  • @SrMyzia
    @SrMyzia 8 лет назад +8

    I use Glide API, and 3dfx voodoo 5 5500. :)

  • @10meisterballe
    @10meisterballe 3 года назад

    There are some programs that have different looking close buttons,

  • @D3FKONMusik123
    @D3FKONMusik123 8 лет назад +2

    "if bash, then yesterday" I see what you did there

  • @debojitacharjee
    @debojitacharjee 3 года назад

    But how do I know which API is required for a computer program to work and is it only required to run a program or we can code a program without the API also? Which API required to run C/C++ code and which installed files are API?

  • @madstein806
    @madstein806 8 лет назад

    a techquickie that's quick?!

  • @meerestiyak9483
    @meerestiyak9483 3 года назад

    Best Explanation Ever! ♥

  • @mahee96
    @mahee96 4 года назад +3

    I don't think he explains it correctly. An Interface is a communicator which communicates with dissimilar entities ...to facilitate loose coupling.
    Suppose u have program A and your friend has program B ....now your program needs to use some functions implemented by your friend's program B. Inorder to do that you can simply include/import that functions into your program and use it.
    But what if he's not interested in showing implementation(source) of the function but can give you his helper functions (interfaces) which are externally exported/available publicly. Now if he agrees to give his compiled executable(exe/dll/libs) and the documentation on how to use his functions(link editing to ur program)....
    Then what he created just now is an API(Application Programming Interface).
    If you consider your program to be an Application then in order to help your programming your friend's program B supplies externalised interface functions....thus the name API....
    API can be anything which couples two things where one is consumer of API and other being Distributor/publisher of the API....
    This is very useful in the sense that if for ex: one wants to create a text on Android he can use api function called settext() without bothering how the android framework actually draws the text box on the screen.
    For web based APIs....the server provides some services and clients can request those service using externalized APIs which could be a query URL or some functions/methods running on the server program.
    In terms of Gaming....DirectX, OpenGL, provides functions/methods to game developers who need not worry about how a Vector/line/triangle is constructed pixel by pixel on screen and can simply use them to drawer desired structures. The underlying game engine to which the DirectX communicates could be UnrealEngine4, Unity etc.

  • @linuxguy1199
    @linuxguy1199 6 лет назад

    Bash fan here, I last typed a command just now because I used a command to type this

  • @MegaXDBrasil
    @MegaXDBrasil 2 года назад +1

    Opengl is bugged for me

  • @levieleuterio
    @levieleuterio 8 лет назад

    Very good explanation!

  • @techtranslated8218
    @techtranslated8218 8 лет назад

    I learned something new today!

  • @catmonkey4351
    @catmonkey4351 6 лет назад

    Dude, thank you. Well done.

  • @JackLe1127
    @JackLe1127 8 лет назад +40

    How sausages are made: when daddy sausage loves mommy sausage very very much....

    • @IDMYM8
      @IDMYM8 4 года назад +1

      Wait.. this sounds wrong...

  • @kameronswan4152
    @kameronswan4152 8 лет назад

    I love how you show Linux mint 18 instead of Ubuntu

    • @JinwooYoon1217
      @JinwooYoon1217 8 лет назад +1

      Probably because mint would look familiar to those who don't aren't familiar with Linux.

    • @kameronswan4152
      @kameronswan4152 8 лет назад

      probably that may be his reasoning, but the reason why I say that is because I use Linux mint 18 and normally it's Ubuntu that is shown for the fact that Ubuntu is what Linux mint is based off of, and do tell me what is your favorite os or os's, mine is mint 18 and Windows 10

    • @KimionTM
      @KimionTM 8 лет назад

      I like Linux Mangaka Mou the most

    • @JinwooYoon1217
      @JinwooYoon1217 8 лет назад

      Kameron Swan Probably Linux Ubuntu, and Windows 7. I'm okay with Windows 10, though the default ads and some questionable update decisions makes it a somewhat mixed bag for me.

    • @joshuafletcher4963
      @joshuafletcher4963 8 лет назад +1

      I personally use Debian

  • @---rm2gw
    @---rm2gw 8 лет назад

    If the issue with not having an api is that programmers would have to develop for every possible config, then why did the Xbox use DirectX when there was only one config?

  • @Pheatrix
    @Pheatrix 8 лет назад +6

    Wow. It's easy to tell that LTT has no employe that can actually code. The closing button for example is nothing the programer chooses. The windows manager decides how it looks and where it is located.
    It's very easy to test that: Just change your window manager settings or kill it in linux...
    Unless you do some strange things like programing a full screen application and implement your own close button and stuff.

    • @tylerrussell7560
      @tylerrussell7560 8 лет назад

      I know right! SDL2 for the win by the way. :P

    • @Pheatrix
      @Pheatrix 8 лет назад

      But in order to classify as an API it has to be programmable. Have you ever tried to change the closing button in your application? I wish you luck if you try, because you aren't supposed to be able to do that.
      Yeah sure it is possible to see everything as an API because it is possible to use it as an interface. But at this point the term gets useless because you can also use a game as a pretty strange and extremely bad API for trying out AI or some others things.
      Normally an API is an Interface that is actually designed to be used in the coding process of an application. That means you can interact with it and don't just get something static (like a closing button that is not changeable through code).

  • @harrisonknockers2038
    @harrisonknockers2038 8 лет назад +14

    Dang nabbit Linus, use a foot pedal to trigger your teleprompter.

  • @AndrewsalTk
    @AndrewsalTk 8 лет назад

    So glad you made this!! :D

  • @_naeimi6751
    @_naeimi6751 7 лет назад

    great video linus ! thanks

  • @sheriffderek5333
    @sheriffderek5333 7 лет назад

    This is a Braintree commercial. but 1:44 there is a sweet list of commands. I didn't know I could just type 'sex.' Awesome.

  • @Finalh0pe_YT
    @Finalh0pe_YT 6 лет назад +1

    Did anyone else catch the pitch change at 4:31? His voice dropped mid sentence

  • @projectjt3149
    @projectjt3149 8 лет назад

    So how about a framework or libraries? How are they different?

  • @syedaliam
    @syedaliam 7 лет назад

    Which is the best graphics api

  • @forhadrh
    @forhadrh 4 года назад

    Now I know why the close button of all software are the same...

  • @bryonfeliksa3845
    @bryonfeliksa3845 8 лет назад

    Your commercials are hilarious

  • @paulsunday7688
    @paulsunday7688 4 года назад

    Question: is API a part of an app or it's the app itself? Do websites use API?

    • @mahee96
      @mahee96 4 года назад +1

      I don't think this guy explained it correctly. An Interface is a communicator which communicates with dissimilar entities ...to facilitate loose coupling.
      Suppose u have program A and your friend has program B ....now your program needs to use some functions implemented by your friend's program B. Inorder to do that you can simply include/import that functions into your program and use it.
      But what if he's not interested in showing implementation(source) of the function but can give you his helper functions (interfaces) which are externally exported/available publicly. Now if he agrees to give his compiled executable(exe/dll/libs) and the documentation on how to use his functions(link editing to ur program)....
      Then what he created just now is an API(Application Programming Interface).
      If you consider your program to be an Application then in order to help your programming your friend's program B supplies externalised interface functions....thus the name API....
      API can be anything which couples two things where one is consumer of API and Distributor/publisher of the API....
      This is very useful in the sense that if for ex: one wants to create a text on Android he can use api function called settext() without bothering how the android framework actually draws the text box on the screen.
      For web based APIs....the server provides some services and clients can request those service using externalized APIs which could be a query URL or some functions/methods running on the server program.
      In terms of Gaming....DirectX, OpenGL, provides functions/methods to game developers who need not worry about how a Vector/line/triangle is constructed pixel by pixel on screen and can simply use them to drawer desired structures. The underlying game engine to which the DirectX communicates could be UnrealEngine4, Unity etc.

  • @adabujiki
    @adabujiki 3 года назад

    Thank GOD Linus did a video on this, because everybody else is talking shit.

  • @DoctorGlitchy
    @DoctorGlitchy 7 месяцев назад

    Excellent content