Hacker News new | past | comments | ask | show | jobs | submit login

This is exactly the approach Elm takes. The recommended way to structure the application is so that the view is a pure function of the Model (application state). Moreover, the change to application state is also pure: there is a pure function that takes an event and an old model, and then returns the new model.

http://elm-lang.org/guide/architecture




It's taking me a lot longer than expected to get productive in Elm (because of personal issues (burnout/depression)), but I'm convinced that the speed limit is going to be very high at that altitude.

I think that working at such a high level will enable an unparalleled dynamic between designer and developer.

My dream job right now is to be able to sit down with a designer on one side, and a (client / domain expert / stakeholder) on the other, and iterate on an interface in a very tight feedback loop.

I feel like Elm has really inspired me in a positive way, and is helping me to recover. I'm already feeling pretty endeared to it's community, and want to give back as much as possible, as soon as possible.

If you haven't checked it out yet, I highly recommend it.


Redux does exactly that with react, highly recommended.

https://github.com/gaearon/redux


except with multiple little models (stores) instead of one big one.


Which is a fairly minuscule implementation detail. The top level state is essentially a map.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: