Please log in to watch this conference skillscast.
When the data validation component in your application is not well designed, the code can quickly become not expressive enough and probably difficult to maintain. Business rules don't help, adding more and more requirements to add in our validation, making it more and more complex to clearly represent and maintain. At the same time when the validation fails, it should be fairly straight forward to understand why the request was rejected, so that actions can be taken accordingly.
This talk introduces Cats, a Scala library based on category theory, and some of its most interesting components for data validation. In particular, Daniela will share some options to achieve efficient and expressive data validation. You will also discover that, compared to other options in the language, Cats is particularly suited for the task thanks to its easy-to-use data types and more approachable syntax.
Throughout the talk, you will see numerous examples on how data validation can be achieved in a clean and robust way, and how you can easily integrate it in your code, without any specific knowledge of category theory.
The Call for Papers is now open for Scala eXchange 2017! Submit your talk for the chance to join a stellar line-up of experts on stage. Find out more.
YOU MAY ALSO LIKE:
- Refactor All the Things! (SkillsCast recorded in December 2018)
- ScalaCon 2022: Opening Keynote Networking Party (in London on 4th October 2022)
- ScalaCon 2022 (Online Conference on 4th - 8th October 2022)
- TDD and other drugs (Online Meetup on 8th August 2022)
- LJC: I Started Testing In Production... Then I Went On Holiday (Online Meetup on 15th August 2022)
- A History of Enterprise Monads (SkillsCast recorded in May 2021)
- Connecting the dots - building and structuring a functional application in Scala (SkillsCast recorded in May 2021)
Easy and Efficient Data Validation with Cats - Beginner
Daniela Sfregola is a Software Engineer, currently working at Morgan Stanley. She is an active contributor to the Scala Community, as well the maintainer of a few open source projects and organizer of the London Scala User Group meetup. She is writing a book with Manning Publications, titled "Get Programming with Scala".