Hacker News new | past | comments | ask | show | jobs | submit login

> Why do programmers always need a library between them and the API?

You do know that libraries present an API, right? Very few people program on Linux or other OSes without using libc or the OS/distribution equivalent, and for good reason. Those libraries provide a degree of compatibility across hardware systems and operating systems (and even the same OS but different versions).

Your question is about as sensible as asking "Why do programmers always need a programming language between them and the machine code?" Because it improves portability, reusability, reasonability, and on and on. Though, since you hate abstractions, maybe you do only program in machine code.




I kind of hate the fact that the term "API" has lost its generality in the minds of a huge number of practitioners, and people now assume it refers to a set of network (usually HTTP) request and response formats.

It's great that we have a succinct word to describe programmatic interfaces built on top of HTTP. It's not great that there's no longer a universally-understood word for the original more general meaning even though, as this thread demonstrates, the original meaning is still as relevant as ever.


I think context has to be taken into account

people here are referring to some financial service on the internet, whose API is invoked over http

An article about some library might be viewed differently, i.e "X's API is better than Z's"...etc




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: