Please log in to watch this conference skillscast.
Scala syntax is succinct, clean and easy to read, however some of the library signatures that support this are more complicated than one might expect. Type-classes use sophisticated signatures to enable clean client code. This talk is aimed at novice or intermediate Scala developers wanting to learn more about this powerful technique. We will explore what they are and how they can simplify code. We introduce the concept by examining some of the Scala collections’ library method signatures. In particular we will be looking at Ordering[T] and CanBuildFrom[-From, -Elem, +To].
Then we will explore how to solve the common problem of custom data serialisation. Initially we will present some commonly adopted approaches including the Adapter Pattern, showing their pitfalls. Then, we will show how type-classes simplify the design and result in better extensibility and and API usability.
Finally we will discover how users don’t need to understand type-classes to make use of these libraries.
YOU MAY ALSO LIKE:
- LDNUG September 2017 - #ProgNET Special with Richard Campbell (in London on 12th September 2017)
- Progressive .NET 2017 (in London on 13th - 15th September 2017)
- London Unreal Engine Meetup (in London on 20th September 2017)
- Test Driven Development (TDD) Workshop with Damjan Vujnovic (in London on 7th - 8th December 2017)
All you don't need to know about typeclasses
Julien is a Software Engineer at Workday who has fallen in love with Scala back in 2010. Like many other computer engineers who have started their career around the beginning of the new millennium, he comes from a Java background but has quickly embraced the modular nature of Scala and he now tends to consider himself an FP advocate.