Dissecting foldl in terms of foldr

2018-01-22

The book ‘Real World Haskell’ provides an implementation of foldl in terms of foldr:

myFoldl:: (b -> a -> b) -> b -> [a] -> b
myFoldl f z xs = foldr step id xs z
   where step x g a = g(f a x)

They ask the reader (me) to try to understand the implementation …

Non-curated notes about Cycle.js

2016-09-19

In the past few days I have been reading about Reactive Programming. Mostly about how it’s done with cycle.js. As the title attempts to suggest, this post is by no means an account of well thought ideas, but my first ideas and notes while reading about it.

Cycle …

Generating unique static URLs in Odoo

2016-09-02

By default Odoo bundles static assets (JS and CSS) within a couple of files: All CSS files are bundled into a single big CSS file. The same happens for JS files.

The URLs of those bundles vary with any change within any of the included files. But those files are …

The bus implementation in Odoo and notification systems in the Web

2015-09-12

This post is about 2015’s crosstab communication in browsers, and how to use it Odoo to avoid it becoming unresponsive if the users open many tabs.