Tuesday, January 24, 2017

Search Testing with React and Redux

I have been working on a Vanilla JS filter that you can find at http://www.rakuten.co.uk/?filter

I am considering about moving to React/Redux so I have made a quick test for the same functionality. I like the idea of one centralised status store. If interested you can find the test at https://github.com/lucamug/search-testing-react-redux

To install the test just clone the repo then run

$ git clone https://github.com/lucamug/search-testing-react-redux.git
$ cd search-testing-react-redux/
$ npm install
$ npm start

Then point the browser to http://localhost:3000/

The test is based on http://jpsierens.com/tutorial-react-redux-webpack/

Sunday, January 15, 2017

Functional Programming - Couple of Videos

Among several videos that I have been watching about functional programming, I found these two quite interesting and entertaining:


Tuesday, January 3, 2017

DEC64 - Douglas Crockford's Decimal Notation

Today, watching an old Douglas Crockford's video I was interested in his proposal of a new way of defining a new number type called DEC64.

Even though I have not enough understand of low level of storing numbers (I guess I studied this stuff at school) I tend to agree to Douglas's idea that application languages should have one numeric type and the type should not behave like:

0.1 + 0.2 === 0.3 // return false

Someone believe that Douglas proposal is not good enough. I believe that one on the goal of the proposal was also to start a discussion about this topic.

I wonder if after two years anybody has implemented this system somewhere.


Monday, January 2, 2017

Bilingual or multilingual blog on Google Blogger

Script to add a language button to set up a bilingual or multilingual blog on Google Blogger.

This way of adding other languages to google bolgger is inspired by http://www.broculos.net/2013/05/how-to-create-multilingual-blog-in.html

You can find a real blog example at http://www.girelloni.com/

Here the script: https://github.com/lucamug/bilingual-google-blogger