HACKER Q&A
📣 nerdyadventurer

Any good guide which include best practices for library developers?


I am interested in use cases such as

- server-side libraries ex: sentry serverside clients

- front-end libraries ex: react-query

I am interested in aspects like API design, architectural decisions, dev tooling and etc.


  👤 dyingkneepad Accepted Answer ✓

👤 gte525u
Josh Bloch did a good google tech talk on general aspects of API design.

https://www.youtube.com/watch?v=heh4OeB9A-c


👤 codegeek
One thing I can say which is probably a low hanging fruit. Error handling. Return errors in such a way that the application using the library can actually do something with it.

👤 rjmill
For documentation, this site has a good framework for organizing library docs: https://diataxis.fr/