Frontend data validation for a clean architecture
A hands-on workshop for developers and architects
Wednesday 3rd May 2023, 6:30 - 8:30 pm.
Speaker: Nicole Rauch
Venue: Skyscanner Limited, Quartermile One, 15 Lauriston Place, Edinburgh, EH3 9EN
Refreshments and networking from 6:00 pm. Refreshments kindly provided by Skyscanner.
This event is free of charge and open to all, though registration is required.
To avoid these errors, "defensive" programming is often applied. This means that the code is full of null-pointer checks and the like, which reduces readability and maintainability. To improve this situation, we should check the data as soon as it arrives at the frontend, and we should reject it if it doesn't match our expectations. This leads to a clean and slim architecture for the whole frontend.
This workshop introduces the philosophy of frontend validation and gives you a step-by-step, hands-on experience of using a popular validation library called ZOD. You will learn how it helps you work with valid data in the frontend, including the automatic generation of TypeScript types.
Prerequisites and practicalities
Bring a laptop with a recent version of Docker, and an IDE (recommended are IntelliJ/WebStorm or VSCode).
A docker image will be provided that contains everything that's required - from Nicole's server (https://www.nicole-rauch.de/files/validation.tar.gz) from May 1st OR on a USB stick on the day.
About the speaker