Ice-cream seller: distributing happiness

I like ice-creams. It’s not a surprise because I have a sweet teeth. .. people who know me they usually know.

I always think that ice-cream sellers are selling ice-creams… with happiness. Everyone is happy with an ice-cream! It’s hard to see a unhappy person eating an ice-cream. I’m sure that you can find someone, […]

Video tutorial or text

This is a human translation of the Catalan version.

At Mendeley we did a Web application to edit styles. It’s a complex topic, and we had to create some examples documenting how to use it.

We thought if we had to use text or some videos. I prefer text (HTML Web). I prefer it for […]

Somebody That I Used to Know: Acapella version

I really like this video:

Music visualization

At Mendeley, once a month, we have a hackday. I usually try to think something different to do, for example using our data or our Open-API in a different and new way. So far I’ve built one game, a screensaver, a file system… and also a music/sound generator!

[…]

Two hard things in computer science

Two hard things in computer science: cache invalidation, naming things, and off-by-one errors.

I don’t know who is the original author, but I really like it.

Should we unit test trivial code?

Should we unit test trivial code?

A dilemma that I’ve had long time ago: should I unit test a very trivial code, with a very trivial unit test? Answer: yes.

I remember that once I had a class which, in that moment, had only a getter and a setter. Something like:

[…]

Experience attending to an unconference

A couple of weeks ago I went, for first time, to an unconference.

An unconference, like you can read on the Wikipedia, is a conference (or meeting?) without a schedule. In a nutshell: there is a “delegate” (like an organiser) who will book the venue, book some food and drinks, and will start the unconference […]

The Zen of Python

Some years ago I mentioned the Zen of Python. But this time I’d like to expand a bit more.

To access The Zen of Python you could just run Python and execute “import this”:

[…]

Should I be happy or sad? (let’s be happy)

Sometimes happens: I optimize some process, it takes much less than before. Now it has been the backend of the Tweets Counter (it’s slow but because the graphic is generated in the browser, so the browser receives a .csv file with all the data and prepares it).

The backend was doing some unnecessary things. The […]

I don’t like: operations with dates (programming)

Every now and then I need to do some script or at work some C++ code that operates with dates.

It’s not difficult, but because I don’t do it often, and every time the problem is a bit different (now accessing a database, Python and dates) I keep forgetting the best way to do it.

[…]