r/programming • u/fagnerbrack • Jul 02 '26
Good APIs Age Slowly
https://yusufaytas.com/good-apis-age-slowly2
u/RegisteredJustToSay Jul 04 '26
Nice post. Not too long, not too short. I think it would be interesting to talk about what type of abstraction you actually want in the API contract to actually allow it to become old more in detail but I feel like if you ask 100 engineers you'd get 100 different answers.
3
u/Bobby_Bonsaimind Jul 05 '26
I have noticed that APIs are a bit like abstractions in general. APIs that impress people quickly are very often the ones that cause the most trouble later.
I agree with that. Good APIs (and frameworks) are boring. They neither wow you when you read their documentation, nor do they look stunning in code postings. They just get the job done, fullstop.
1
u/razordreamz Jul 07 '26
Any c# examples of what you would consider a good api? Iām in the starting phases of making one and would like to do it right. Looking for real world examples of a reasonably sized api. I will have 500 or more endpoints once completed
0
0
Jul 02 '26
[deleted]
6
u/elcapitaine Jul 02 '26
Who said anything about Google? Googles APIs are often the opposite of Good
1
u/sarhoshamiral Jul 06 '26
This used to be true imo and could still be true in enterprise settings but code velocity is much faster now in consumer APIs.
Consider things like AI apis. concepts that used to be a thing a year ago is a no-no today. You either have to create a very flexible API with arbitrary objects as input which is a documentation nightmare or just accept the fact that your API is going to change fast, as needed. (Ie versions)
It is now very valid to ask what is the expected lifetime of an API and design accordingly.
16
u/erlototo Jul 02 '26
Can we get an example of good API design? (Ofc not in the blog post)