Skip to content

Comment on Designing Javascript APIs

Comments

Nice systematic approach:

Draw a grid, with the models/nouns/objects on the one axis and the verbs/actions on the other. Fill in a square if you can perform the given action on the given object...If you can fill in every square, consider that a complete “block”, a good candidate for an API design.

Thanks! There are a couple of more techniques we used. Will follow up with a separate post sometime later this month. Also would be interesting to see what approaches simonsarris uses.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.