Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Elm Architecture to tidy up Client.js Code a bit? #33

Open
nelsonic opened this issue May 4, 2017 · 2 comments
Open

Apply Elm Architecture to tidy up Client.js Code a bit? #33

nelsonic opened this issue May 4, 2017 · 2 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented May 4, 2017

while I am deliberately not using any frameworks/libraries in client.js to make it as approachable (beginner-friendly) as possible I think the structure/organisation of the code could benefit tremendously from the Elm Architecture so it's clear what each piece of the code does and the "flow" of data through the app.

For reference, the client.js at the time I am opening this issue looks like this:
https://github.com/nelsonic/time-mvp/blob/994ccf496a3a602fc9e30d0f51690c2792d1b911/lib/client.js
It works but is rapidly approaching "spaghetti". (and not the tasty kind!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant