Saturday, May 26, 2018
Friday, March 23, 2018
Other Elm Stylish Elephants experiments
Sunday, March 4, 2018
Elm stylish-elephants package upgrade experience
I have been using an experimental Elm language package called stylish-elephants in side projects.
The package author is moving closer to a release that will be the next version of Style-Elements, so I upgraded to the latest version in my side projects in no time at all and with little effort.
I changed the dependency, ran the compiler which identified all of the areas where the upgrade affected my project code. Then, it was a simple as looking at the change log and the searching the new package docs for the new features and deleting and replacing code.
The updated projects are:
- jbrgfx.github.io
- elm-filtered-list
- github-stylish-elephants-search
- responsive-filtered-list
- responsive-stylish-elephants
All my stylish-elephants experiments are indexed on a Github project homepage
The combination of a developer friendly compiler and documentation of each type signature that a package provides, makes Elm refactoring so easy it is almost fun.
Friday, February 23, 2018
Adaptation of the Elm Tutorial to use postgREST
I have used postgRest to enable data requests from an Elm SPA application to a postgreSQL backend.
PostgRest is a warp web server application written in Haskell that exposes an API to postgreSQL. Elm fetches postgreSQL data via an endpoint using the HTTP module and, as long as postgRest has been configured to recognize the application and the postgRest application has been granted the necessary postgreSQL privileges, the data is retrieved from postgreSQL by postgRest and served to Elm.
This simple model might be all one needs in some use cases.