Hi. I’m building an app where users will poke, prod, listen to, photograph (etc etc) a malfunctioning device to try and work out what’s going on. They will do things like OpenTopCover, OpenBottomCover, TurnRedKnobUp, HitWithHammer…
you get it…
The most simple thing to do seems to be have all of those actions be messages and deal with them in the update, but there will be many messages (maybe > 50). Looking at Richard F. and Evan’s YouTube videos, this seems like not something to be frightened of. All the action is in one place (Update), in a big case statement. Obviously, I would make each message call a function and not clutter the particular item with too much code.
Maybe you will want to modularize stuff in the future, but then I guess thats not really a reduction in the number of Msg, just a reallocation from one big top-level case to a few top-level Msg that delegate to many nested Msg.
Thanks @malaire.
Yes, that was one of the talks that gave me the confidence to not break things up into a million parts. It’s going quite well at the moment with just a “one big file”, and I’ll have a go at using the strategies @rtfeldman discusses when my brain is full!
thanks again for the help