eat some code

Dealing with broken APIs Interaction Consortium

Various strategies to work with broken APIs

Nowadays, most websites integrate with a handful of APIs (Application Programming Interface). A typical website shows events from Eventbrite, shows the latest tweets from Twitter, automatically adds people into Mailchimp, accepts payments by credit card or via Paypal, etc. Unfortunately, …
November 2020

Google-cloud & Heroku

Using Google-cloud in Heroku with Django

I have just setup a Django website on Heroku. That was fairly easy. One of the "gotcha" was the Google-cloud authentication. Getting access to Google translate took a bit more work than other APIs. Here is how I've done it.
September 2020

Setup Django on Mac in 2020

Setup Django on MacOS Catalina with Python 2 & 3 support

There are many ways to setup Django on MacOS. Here is how to get started while keeping the flexibility to have projects in different versions of Django and different versions of Python too.
June 2020

Testing single-page applications Interaction Consortium

How to test a dynamic website with Cypress?

Cypress makes writing end-to-end tests really easy. In Cypress, the tests contain user actions (click here, type that text, press enter, etc.) and some visual assertions (this text shows up, that form is opened or closed, that button is disabled, …
May 2020

How to prevent bugs in a SPA? Interaction Consortium

Single-page applications are prone to bugs.

Single-page applications are more error-prone for various reasons. User flows are more complicated; this is because we do not load a new page at every single user-action. The application has more components “talking” to each other. There must be at …
May 2020

Decision making trap & bad technology

Costly decision choices

When developing a website for an organisation, you're usually directly exposed to its IT infrastructure and to its internal organisation / politics. In most cases, it's all fairly coherent; sometimes, it makes no sense at all. In some cases, a …
January 2019

Elm & Django #2

Building a basic search

Elm is a great tool to build simple widgets like a search bar. The use case is simple, as the user types, we want to dynamically show a filtered list of results.
October 2018

Handling repetitive tests in Django

By using data-driven tests

When writing tests (unit and/or functional), one of the goal is to cover all edge-cases. DDT is a great way to write such tests; here is how to do so in Python and Django.
June 2018

When to use pop-ups

Should you use unsolicited pop-ups?

Unsolicited pop-ups are despised by most users but remain commonly used. Why is that? Should you add them to your website?
January 2018

Elm & Django #1

Embed Elm code in Django

Here is a simple solution to run Elm code within a Django template. This could be used to handle the full frontend or just to embed a "widget" - like a search bar - via Elm.
January 2018

eatsomecode new design

Better, lighter, faster

The year 2017 has been really busy; I haven't blogged since January. I had been planning to change design for months and the winter break is the perfect opportunity to do so. Basically, it's a simpler design which will …
December 2017


Learn hiragana and katakana online

The first step in learning Japanese (unfortunately) is to learn the "kanas". The kanas are two syllabaries: hiragana and katakana. To memorise them, you can copy them countless times or you can play a simple game regularly. You can do …
January 2017