Journal entry for


Bugs in my “Imperative FRP” TodoMVC: when an item is deleted it should stop contributing to the “completed count”. This wouldn’t have been a problem with Reflex’ Adjustable behavior? This just goes to show that not doing these apps in a declarative style or at least with a list data type is really hard. Typically the list data type method doesn’t have incremental bookkeeping of total/completed TODO items though.

I’m in the process of cleaning up my TodoMVC version. It’s currently around a 110 lines of domain specific code. https://github.com/widok/todomvc/blob/master/src/main/scala/org/widok/todomvc/Application.scala is about a 100 lines of domain specific code, so hopefully I can get under that.

I am missing the persistence (“LocalStorage”) part of TodoMVC, but doing that in a very higher-order FRP style is something I need to explore still. The Widok version doesn’t seem to handle that either AFAICT.