Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Erlend is a Consultant working for Arktekk in Oslo, Norway.
Talks, Stack day and hack day ideas
- Immmutable JSON
- diverse command line tools
The arrival of Java 8 has made it possible to make better APIs. I have made a new JSON library for Java 8, which encodes the RFC using functional programming style. In this talk I will walk you through how I did this, using concepts as Algebraic Data Types (ADTs) and other useful functional programming patterns like Isomorphisms and Functor and CoFunctors. I will describe a way of using fold as the basic building block for expressing your api, and as the most powerful tool in the ADT. Lastly I will explain how we can use these techniques to do decoding and encoding of JSON without using reflection in Java 8.