Illustration by Bailey McGinn

Regaining control over Doctolib.com frontend

Romain Pellerin
Jan 10 · 8 min read

Identifying pain points

What is legacy code at Doctolib in 2018?

RxJS

RxJS ranks last among the “other” JavaScript libraries in 2018 [Source]

Recompose/Recompact

jQuery and CoffeeScript

React unsafe life-cycle methods

Tackling and killing legacy

3 out of the many graphs we use to monitor recompact usage
How we count the number of lines of RxJS imports, React unsafe methods and recompact
Everything that is considered legacy is shown on this graph

Preventing people from using it

A piece of code executed on our CI pipeline to make sure no deprecated method were used

Meeting objectives

Long-term vision

This dashboards tracks our bundles sizes over time
Checks on a Github Pull Request

Doctolib

Pour un système de santé plus humain, efficace et connecté

Thanks to Connal Murphy and Antoine Kuhn.

Romain Pellerin

Written by

Software engineer at Doctolib.fr

Doctolib

Doctolib

Pour un système de santé plus humain, efficace et connecté