Blog posts I have written.

February 22, 2024

Introducing Pry-Byetypo

If you’re anything like me, it’s likely that you have sausage-like fingers.🌭 As a result, you might find yourself making typos on your REPL daily. This is why I am thrilled to introduce Pry-Byetypo. It is a small Pry plugin who captures exceptions that may arise from typos and deduces the correct command based on your database information and session history.

December 13, 2022

How to optimize factory creation.

At Potloc we have a test stack which is pretty standard in the Rails ecosystem. We run tests with RSpec, we use FactoryBot for setting up our test data, Capybara for user interactions, Github Actions as a CI etc..These great tools allow us to code at a fast pace with good test coverage. But this pace comes at a cost. The more the team grows, the bigger the codebase gets and the more tests get written.

January 13, 2022

Streamline a service desk with JIRA automation

At Potloc our service desk is dedicated for the operation teams where they can open a ticket for a bug or a service request. The more our web application grows, the more maintenance it requires. As a result we’ve seen a growing number of tickets pertaining to the same project.

September 21, 2021

How to use Sentry for profiling a test suite.

At Potloc one of our core values is learning, that’s why each quarter the development team has a dedicated time to explore new things. This aptly named Dev Happiness Week allows us to tackle either a new pattern, open source project, write a blog post and so on. One of my initial projects was to monitor our test suite. The more our test suite was growing quickly the more seconds were added to our CI. But without any monitoring on how long each test takes to run it was complicated to identify and speed up the slowest ones…

May 13, 2020

Rails + RabbitMQ + ActionCable. How to build realtime microservice. (Part 3)

In the third part we are going to see how to display datas in realtime in our Producer by using websocket and ActionCable. This article is the last one of three.

May 10, 2020

Rails + RabbitMQ + ActionCable. How to build realtime microservice. (Part 2)

This is the second part, here we are going to build a Consumer to receive the data send by our Producer. You can find the first part here. In this part we are going to create our Dashboard app and our queue (named dashboard.restaurant).

May 05, 2020

Rails + RabbitMQ + ActionCable. How to build realtime microservice. (Part 1)

For few month I am building a crawler to collect restaurant informations and their dishes. The aims is to have as much restaurants as possible in my DB. Have a huge quantity of data is cool but display them is better. So I decided to build an other app dedicated to display data in real time, and only that. In the context of this article we will name this app Dashboard. The initial spec is to display charts and datas up to date (means don’t refresh data only once a week/day/hours. We want data updated in real time)

April 03, 2020

Comment pousser du code en faisant preuve d’empathie ?

Il est souvent tentant en tant que développeur de mettre en place des process, des outils, des raccourcis et des bonnes pratiques pour se simplifier la vie. Cependant, même avec les meilleures intentions du monde, il arrive que l’on oublie d’en faire autant pour nos pairs. Ci-dessous vous trouverez trois pistes pour faire de vous le prochain « teammate of the month »

January 23, 2020

What I learned by writing gems.

I have been publishing 3 gems for 2 years, of course I didn’t change the game with them. No much stars, no much users..and not really sure to save time/life of many developers. But embrace gems development and more widely the open-source is oddly satisfying, each gem taught me something. Below my thoughts that I wanted to share with you.

December 24, 2019

3 simple tips/stuff to use migrations in a better way.

rails generate migration AddSomethingToSomething, rails db:sth etc.. Are you bored to only use these commands ? I have always been frustrated to use migrations daily without trying to make the most of them. In this way I would like share 3 small tips/stuff I found interesting.

July 10, 2019

How easy it is to authenticate users with Firebase and React Native ?

Authentication has always been a tricky stuff. Even nowadays with the bunch of libraries, gems or whatever else that can help a developer to build a strong and safe authentication. As a RoR developer I regularly use the popular gem Devise. When I’ve started to develop an app with React Native I wanted to find out an easy/safe solution to achieve it, and my eyes froze to Firebase. A serverless tools which is easy to implement, so let’s go deeper by pluging a React Native app authentication with Firebase with a simple Login In form

May 10, 2019

3 usefuls things I learned by reading the Ruby documentation.

There is few days ago I decided to quickly go throughout the official Ruby Documentation. It sounds an evidence but take time to dive in is a bit tedious. So I will give you 3 things I learned by simply reading the doc.

February 04, 2019

Take back control of your application thanks to ActiveSupport::Notifications

Well, It’s monday at work, you just grabbed your cup of coffee, checking your email, chilling on your favorite Reddit’s sub..suddainly your Product Owner come and she’s wondering why your website is so slow. Damn, you reorder you priorities and you ‘re wondering how to know what request are painly slow.

January 28, 2019

3 astuces pour réduire la duplication dans mes tests avec Rspec

En tant que développeur, j’estime que les tests sont indissociables de la maintenabilité d’une application. Mais le revers de la médaille, c’est qu’à force de vouloir tester je me retrouve face à une inutile duplication.

January 26, 2019

3 tips to reduce duplication in my specs with Rspec

As web developer I am convinced that test are inseparable to define a well build app. But if you want to have a good test coverage you should struggle with duplication. Below, I will introduce you 3 tips I like to use in my Rails app to keep my spec cleaner as possible.

August 28, 2018

Build a front Ember app with Rails 5 API backend

For a while I wanted to build a front-end app with Rails backend. I was looking for the right JS framework and the right way to implement. So after some research my choice fell on EmberJS. If you are looking for why, feel free to follow this link. This Medium is dedicated to you if your are like me, with some interesting knowledges in rails, but a bit lost throw the multitude of JS framework.

May 02, 2017

Build a basic API with Grape API & Grape-Entity Part 3

This is our last part and so far you can be proud of what you build. We have build two routes in our API. We can return a list of books and also get a specific book from an id. We introduced entities which allows us to choose which datas we want to display. It’s pretty good but not enough yet. So in this final part we will see how to add nested resources and how to add entities.

April 28, 2017

Build a basic API with Grape API & Grape-Entity Part 2

In Part 1 we started to build a small API to manage book stock. Currently we have two models, book and flow. We created our first API method which allows us to return a list of books. Kind of index.

April 26, 2017

Build a basic API with Grape API & Grape-Entity Part 1

This is the first part of three in order to achieve to build a small API with Ruby On Rails , Grape API and Grape-Entity. This medium is dedicated to you if you are not still familiar with API. So, the main goal is to build a small API to manage a Book Store. We would like to get all the book, a specific book and his flows and also add a new flow to a specific book.