Live data from Hacker News

Secrets to Great API Design (2019)

nylas.com

11–20 of 24 posts

Re: Secrets to Great API Design (2019)

#11

Earlier quoted context omitted.

Any good resources on API design?

Surprisingly enough (to some, including me), Microsoft's REST API design guidelines are both thorough and there's very little I'd object to.

https://docs.microsoft.com/en-us/azure/architecture/best-pra...

Re: Secrets to Great API Design (2019)

#13

Earlier quoted context omitted.

I'm surprised anyone finds this surprising. Like them or not, Microsoft makes tight documentation for developers.

I found it surprising because I interacted with their REST APIs first. They are very good about docs. The ones I use most frequently (TS) are no exception, though they have some gaps. But the actual REST APIs I integrated very clearly predate a lot of their guidelines or struggle to follow them.

That's true of everything I've worked on. Little details keep sullying my perfect design for reasons end users aren't aware of.

Re: Secrets to Great API Design (2019)

#14

Earlier quoted context omitted.

I'm surprised anyone finds this surprising. Like them or not, Microsoft makes tight documentation for developers.

I found it surprising because I interacted with their REST APIs first. They are very good about docs. The ones I use most frequently (TS) are no exception, though they have some gaps. But the actual REST APIs I integrated very clearly predate a lot of their guidelines or struggle to follow them.

maybe they are able to create good docs, and good guidelines, because they burned themselves in the past creating godawful ones?

Re: Secrets to Great API Design (2019)

#15
post #14

Earlier quoted context omitted.

I found it surprising because I interacted with their REST APIs first. They are very good about docs. The ones I use most frequently (TS) are no exception, though they have some gaps. But the actual REST APIs I integrated very clearly predate a lot of their guidelines or struggle to follow them.

maybe they are able to create good docs, and good guidelines, because they burned themselves in the past creating godawful ones?

I don't remember any bad MS docs and I've been using them on and off since the 1990.

Re: Secrets to Great API Design (2019)

#16
post #15
post #14

Earlier quoted context omitted.

maybe they are able to create good docs, and good guidelines, because they burned themselves in the past creating godawful ones?

I don't remember any bad MS docs and I've been using them on and off since the 1990.

A Microsoft are very good at telling you (usually) what's there but they don't like telling you what's missing or what's inconvenient to use. Or indeed, what they have downright deliberately broken.

The documentation quality for MSSQL was very good in 2000, and noticeably has deteriorated since then to the point that I (who carefully read the docs) actually released some broken code related to the MSSQL geographical data types (edit: this was in MSSQ 2012). Fortunately cleaning that mess up in the morning while clients were phoning us wasn't too bad, but it could have been.

I also notice that they've made the offline help both hard to get to (you have to install it manually now as a separate process) and inconvenient to use in various small ways. I am certain this is an attempt to push you to use the online help instead. As a professional dev I find this objectionable.

Example: learning C# and their examples didn't ework. Someone else on HN replied and said the same. Turns out they had moved the LINQ functional stuff into a separate module you had to import. Once imported, everything was fine but their examples were broken and there was no way to know what to do - a very simple solution was to get the compiler to recognise that certain stuff was missing when you try to use it and just tell the user. But no, they left you to flounder instead.

Another example: I lost ~1 day trying to start a C# GUI project that just would not show data binding components. Turns out that it had to be a particular project type (not .NET core IIRC) but that was not made clear.

Re: Secrets to Great API Design (2019)

#17
great article!

TLDR;

1. Shorten Time to Value

2. Treat Your Docs Like the Home Page of Your Website

3. Make Abstractions Consistent

4. Future-Proof Your API

## Documentation

Sharing documentation via tools like postman or insomnia is a real game changer IMO

Re: Secrets to Great API Design (2019)

#18

The article brings up interesting points, but reads like I'm blasting through a red bull ad. (Zing Zang Zoom!) API development is super important, and KIS principles should apply, but i felt this post was more marketing and less functional advice.

Literally all API design articles are marketing. There’s almost zero, aside from foundations that came from academia, early industrial or military specs, or very shallow blog posts that are almost useless when you actually build something beyond a prototype.

Re: Secrets to Great API Design (2019)

#19

> It may be better to add GraphQL APIs. Don't add GraphQL without understanding what you're getting into. I wouldn't use it in the same 'latest frictionless' context that the article mentions.

You should never add something coming from Facebook without quite some hesitation. Their mantra "move fast and break things" broke more things than they could have imagined. GraphQL isn't great, it isn't even average. It's actually pretty terrible. It's just another query language and actually you don't need it. Steer clear from it.
Post reply on HN