r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

2

u/consciousCog13 Apr 06 '22

I’ve still never heard a concise definition of an API. I’ve built them, modified them, taken entire courses on them. I’m still just like “it’s a…bunch of methods…that let you access data…and stuff…”

2

u/AlotOfReading Apr 06 '22

You pretty much have it. An API is a collection of things you can call to pass or receive data and the set of rules around how to use them. Often the "things" are functions, but it's perfectly reasonable to talk about APIs made up of things that aren't strictly functions like HTTP endpoints.

1

u/starkat0w0 Apr 06 '22

Here’s a great video and it’s only 3 minutes long!