3 ms·
I've just started implementing a website which would look like an ideal fit for a non-SPA (online library), but since I am using my own spare time on it, there'
by k_bx 8y ago
I've just started implementing a website which would look like an ideal fit for a non-SPA (online library), but since I am using my own spare time on it, there's no way I will go back to the old non-SPA development.
Most of the problems are solved by using Haskell+Elm+Generating the API types (sharing the code for their encoding/decoding). Testing the backend is way easier through API, and testing UI is better done with hands/eyes.
- oever 8y agoThe routing and type safety from url to database that Yesod (Haskell) offers makes it simple to make MPA than an SPA. You can still add an API to test the backend. https://www.yesodweb.com/ https://www.yesodweb.com/
- k_bx 8y agoYesod is great, and would cover most of my app, but then you get things like "search field which filters as you type" and other UI elements (even as small as "like" button) and you get into a territory where you stop having a good time.