Hacker News new | ask | show | jobs
by tonnydourado 1102 days ago
Not sure what you mean by multidimensional states?
1 comments

The car can be in drive, neutral, or reverse, the light can be red, green, yellow, or broken, the seatbelt can be off or on. That's 24 states.
Ah, ok. That's kind of what I meant by upfront design, though. Yeah, mapping this out is gonna suck, but it's better than having it hidden in a bunch of ifs.