We are now more than a year further of your original post. Do you still use the same structure? Or did you find another way to organize (after gaining more experience)?
I'm a software developer based in Newcastle Upon Tyne, England. I've got a wide range of experience in companies of varying sizes and cultures, and in roles of varying degrees of responsibility.
Hey, yeah I'm still doing this (i.e., this way: dev.to/nimmo/comment/6i4n ), and have been full-time in production for months now. It's really nice!
I have an overall model in Main which is a record, that has a state, and my states in Main tend to be things like ViewingPageX PageX.Model | ViewingPageY PageY.Model etc. etc., and then PageX.Model and PageY.Model would either just be a custom type that defined the states of their own pages, or they might also be a record if there's some info that needs to be available in every state (like, for example, an environment definition or something).
Thanks for your feedback. This certainly helps. I like well structured code and like to learn from people more experienced with elm. Tutorials only cover small stuff...
I'm a software developer based in Newcastle Upon Tyne, England. I've got a wide range of experience in companies of varying sizes and cultures, and in roles of varying degrees of responsibility.
I'm a software developer based in Newcastle Upon Tyne, England. I've got a wide range of experience in companies of varying sizes and cultures, and in roles of varying degrees of responsibility.
Hi Nimmo,
We are now more than a year further of your original post. Do you still use the same structure? Or did you find another way to organize (after gaining more experience)?
Strange...it says I posted this in dec 18 while we are dec 19
Hey, yeah I'm still doing this (i.e., this way: dev.to/nimmo/comment/6i4n ), and have been full-time in production for months now. It's really nice!
I have an overall model in Main which is a record, that has a
state
, and my states inMain
tend to be things likeViewingPageX PageX.Model | ViewingPageY PageY.Model
etc. etc., and thenPageX.Model
andPageY.Model
would either just be a custom type that defined the states of their own pages, or they might also be a record if there's some info that needs to be available in every state (like, for example, an environment definition or something).Does that help? :)
Thanks for your feedback. This certainly helps. I like well structured code and like to learn from people more experienced with elm. Tutorials only cover small stuff...
Also I think the
Dec 18
on the comment is because it is the 18th of December, not December 2018! :DOf course, stupid me...
Not at all! Incredibly easy mistake to have made, just happened to be literally the only day of the year that it would have happened. :D