Best Practices for Designing a Pragmatic RESTful API

If you’re building your first, or even fiftieth, REST API, this is a great resource for best practices:

Your data model has started to stabilize and you’re in a position to create a public API for your web app. You realize it’s hard to make significant changes to your API once it’s released and want to get as much right as possible up front. Now, the internet has no shortage on opinions on API design. But, since there’s no one widely adopted standard that works in all cases, you’re left with a bunch of choices: What formats should you accept? How should you authenticate? Should your API be versioned?

http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api

Composition vs Inheritance

Interesting article a coworker posted taking an objective look at composition versus the “I” word.

In the Beginning……there was no inheritance and no composition, only code. And the code was unwieldy, repetitive, blocky, unhappy, verbose, and tired. Copy and Paste were the primary mechanisms of code reuse. Procedures and functions were rare, newfangled gadgets viewed with suspicion. Calling a procedure was expensive! Separating pieces of code from the main logic caused confusion! It was a Dark Time.

Composition vs. Inheritance: How to Choose?