The Eric Normand Podcast cover image

Collections in domain models

The Eric Normand Podcast

00:00

Using Arrays to Model Multiple Choices

In our pizza case, we only want up to three ingredients. But arrays can hold many times more than that. And so now you have this new problem of somewhere in your code, you have to limit the number of ingredients that go into an array. There's a whole bunch of functions already written for dealing with arrays, and so why reinvent this? So those are the reasons you do it, but those are actually pretty easy to do.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app