A collection of useful resources relating to a talk I gave at Front-end London on 25th May 2017.
Building Consumable JavaScript APIs @ Pusher Sessions
Thanks to Pusher for filming the talk and putting it up on Pusher Sessions.
Building Consumable JavaScript APIs
The blog post on which the talk was based.
A collection of gists demonstrating various benefits that factory functions can provide as a primary API entry point.
A collection of gists demonstrating how we can use configuration objects to validate consumer-provided input, and provide consumers with helpful error messages.
A collection of gists demonstrating how we can use facades to export lean public APIs, without sacrificing established OOP coding patterns within our implementations.
A fully-functional datepicker UI widget utilising factories, configuration, and facades.
- Object.seal()
- Object.assign()
- Object.defineProperties()
- Classes
- Getters
- Setters
- Private Members in JavaScript (Crockford 2001)
© 2017 Patrick Kunka