4min chapter

Changelog Master Feed cover image

The principles of data-oriented programming (Changelog Interviews #522)

Changelog Master Feed

CHAPTER

How to Express Programmatically Data Expected Data Shape

In JSONschema, you have a map that describes what you expect the expected field in your map. There are functions for validating and say, okay, here is a piece of data that I got from the user. And if it's not valid, tell me why. With no code, just by writing the schema, you can automatically with middle well generate an error response when something goes wrong. You can even pass function as predicate or numbers in a range or stuff like that. It's richer than static typing because you can express any condition and it's a perfect match with a swagger - there is no downside.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode