r/AskComputerScience • u/Stolen_Gene • Feb 21 '21
I think I know what an API is, but I don't quite get what an API isn't
I let most of what I learned in college sink deep into my brain through neglect, so I'm currently stuck re-teaching myself what an API is. My general takeaway is that it's something that lets you communicate information between different pieces software. Even though I know what it does, I can't wrap my head around what an API actually is, as in, what an API actually looks like.
Is it a method you write into a program? Is it something built into an IDE? Is it a separate program entirely? Is the connection between Java classes in the same project an API? Is it an API that lets me send data between a Java project and a MySQL database? At what point are two things different/ distant enough that they require an API? I have such a vague idea of what an API is that it could be nearly anything at this point, and explanations online haven't been much help in clarifying this.
I feel dumb asking something this important after all this time, but I have to acknowledge that it was this same pride that got me into this situation in the first place, so I reap what I sow.