Jaxwvmnsvwcl4rbqfepn
SkillsCast

Speculative Development: Using clojure.spec to write correct, beautifully documented APIs

1st December 2016 in London at CodeNode

There are 30 other SkillsCasts available from Clojure eXchange 2016

Please log in to watch this conference skillscast.

605921628 640

In this talk, you will explore how clojure.spec works under-the-hood, how to use it to specify your APIs, and how it can be extended to do arbitrary coercion, documentation generation, and declarative data transformations.

By interpreting what specs mean and extending clojure.spec, you can translate your clojure.spec descriptions into other formats or languages for translation or documentation purposes.

By specifying your domain models, you can go even further and replace deeply-nested data-wrangling functions with declarative spec-to-spec transformations that can be generated from two compatible specs.

Finally, you will discover the open source implementation of these ideas, which adds arbitrary coercion to clojure.spec, enables specs to be translated into other formats (such as json-schema and swagger), and enables compatible spec-to-spec data transformations.

YOU MAY ALSO LIKE:

Thanks to our sponsors

Speculative Development: Using clojure.spec to write correct, beautifully documented APIs

Andrew McVeigh

Andrew is a software developer at uSwitch, working mostly in Clojure. He's interested in experimenting with functional programming languages and writing interpreters for scheme-like languages.