Your API Is Bad
Your API Is Bad
Free!
Minimum
$5.00
Suggested
Your API Is Bad

This book is 70% complete

Last updated on 2014-06-21

About the Book

Your API Is Bad (and You Should Feel Bad) is a collection of mistakes that people make in their APIs. With the ascendancy of APIs, this is really starting to hurt. This book is not designed to instruct you on writing a good API; only experience and well-reasoned thought about your specific API can do that. Instead, the book aims to steer you away from writing a bad API. It's a tour of poorly-considered decisions that exist in many popular APIs, the shortcomings of those decisions, and thoughts about better ways to do things.

The inspiration for this book came about as I was writing yet another client library for yet another service, and found (yet again) that the service returned no useful, machine-readable information in error messages. All the error messages told my code was "Your request was bad and you should feel bad."

This book is my response: "Your API is bad and you should feel bad."

Let's stop feeling bad about our APIs.

About the Author

Paddy Foran
Paddy Foran

When he started writing this book, Paddy was a Developer Experience Engineer for an online service provider, where he worked to make their API easy to use and their developer experience pleasant. In his role, he worked with APIs quite a bit, but also ended up implementing lots of client libraries in a plethora of languages. Now he's a software engineer, and he's still fascinated by APIs.

When he's not doing that, he's writing client libraries and APIs for his own little company, Second Bit, to power mobile applications used by thousands of people around the world. Because, y'know, that's fun.

His core talents are pretending to know what he's doing and being confused about why people take him seriously.

About the Contributors

Michael Mahemoff
Michael Mahemoff

Founder, Player FM

Michael graciously offered to write a foreword for this, lending his knowledge as a pioneer in the field of Developer Experience. A great developer experience starts with a great API, and Michael is an authority on both.

Causes Supported

Electronic Frontier Foundation

Defending your civil liberties in a digital world.
https://www.eff.org/

Based in San Francisco, EFF is a donor-supported membership organization working to protect fundamental rights regardless of technology.

From the Internet to the iPod, technologies are transforming our society and empowering us as speakers, citizens, creators, and consumers. When our freedoms in the networked world come under attack, the Electronic Frontier Foundation (EFF) is the first line of defense. EFF broke new ground when it was founded in 1990—well before the Internet was on most people's radar—and continues to confront cutting-edge issues defending free speech, privacy, innovation, and consumer rights today. From the beginning, EFF has championed the public interest in every critical battle affecting digital rights.

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub