Michael Long
Jul 31, 2023

--

State management like this looks very pretty in a playground, but actual orders and order states occur over a period of time, which means that orders are, by necessity, persisted and reloaded to/from an external store.

Further, transitions from a state to another would never be simple vars, but mutating functions that need additional information like ship date, tracking number, and so on.

Just not sure how this would scale up in a production environment.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet