2min chapter

Software Engineering Radio - the podcast for professional software developers cover image

Episode 418: Functional Programming in Enterprise Applications

Software Engineering Radio - the podcast for professional software developers

CHAPTER

Object Validation

Instead of having a vehicle at te type, for example, instead you break out those concepts into their own objects. And so as long as you can successfully create one, you pass it into the constructor for the vehicle up date entity,. You know that they 're correct, because they were already validated before you passed them in. Yes, exactly. One of the benefits of functional programis that when you keep your objects immutable, your value objects immutable, you only need to validate those objects once when you create them. After that you can be sure that those objects remain in the consistent, in the correct state, so you don't need to validate them afterwards.

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