Photo by Davide Baraldi on Unsplash

One of my recent projects was to try to identify unused pieces of code and remove them safely. This can be quite a difficult task in Ruby, as there is little way to be certain what calls what.

A solution to this problem of identifying such code is to record all calls for a relatively long period on your production server, and then see what hasn’t been called. …


Photo by Wolfram Burner on Flickr

One of the focus of our engineering team recently was to extract features from our main Rails monolith to different smaller micro-services. One of these tasks was to take care of the UI that is used to create a “Job Post”. This new Single Page App micro-service was developed using React and TypeScript. Since we needed it to support multiple languages (at least Japanese and English for now), I would like to share here the process of translating that UI with the lingui-js library (2.8.3).

Choosing the right framework

Before going into the details I would like to go through some of the motivations…


correct use of prefixes to improve performance

When developing a Rails application, performance might not always be our main focus, and things might degrade little by little until we decide to say: “That’s enough, let’s do something about it”. At that point, we might have hundreds of models/views/partials/controllers etc… and as much places where we can seek improvements. Here we will focus on a specific case of partials rendering.

As mentioned in the official doc, partials are a good tool to make views more readable and reduce duplication. But this comes at the (usually small) cost of rendering that partial separately.

The problem

Let’s assume we have one of…

Camille Drapier

Software Engineer @Wantedly

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store