Dev articles
All the articles I have published about Dev, happy reading!
4 minutes
DevMake your code clearer by removing redundant variables
One thing I often notice when reviewing Pull Requests, whether on private projects or open source repositories, is the use of unnecessary variables .…
2 minutes
DevBuild Magic link authentication for Devise natively in Rails 7.1 thanks to generates_token_for
Today, I decided to implement a Magic Link authentication system for my SaaS app, Slog app. The app’s authentication is powered by Devise and Rails…
4 minutes
DevHow I use OpenAI to translate my Rails application into multiple languages
I recently decided to add multiple languages to my time tracking application, slog app.com, to expand its market reach. The application is a monolith…
1 minute
DevRspec: Natively control Time with Rails
You can natively control Time in your specs with Rails. You don't need additional gems like the really good Timecop. Rails has a built in mechanism to…
1 minute
DevHotwire: Lazy load content with a <turbo-frame>
I recently wrote a blog post on Per Angusta's blog to show you how use Hotwire to lazy load content in your application with no effort. Take a look 👉…
3 minutes
DevHotwire: Reactive search form without JavaScript
You don't need complicated yet fancy front end frameworks like React or Vue to create reactive index. Let's see how we can do it with Hotwire, a dead…
5 minutes
DevWhy I stopped using Docker for local development
I've been using Docker for almost 5 years now. I wrote blog posts on it and I enjoyed using it for a long time, it solved many of my problems and…
1 minute
DevIntroducing Stimulus components
I'm a huge fan of the Stimulus JavaScript framework. If you never heard about it, you should read The Origin of Stimulus. Stimulus has a very…
5 minutes
Dev13 tips to write better Rails code
Writing clean code is the key for maintainable and sustainable code. Here's some of my favorite tips I could give you after many years working on…
3 minutes
DevUsing Vue.JS in backend application with Scoped Slots
If you ever have implement Vue.JS or any others UI libraries like React in your backend application, you probably know that there are multiples ways…
3 minutes
DevRendering React Components With Custom Elements
A common approach to render a component in React is to call the ReactDOM.render method on a DOM element. If you want to use both React and your…
2 minutes
DevFree up space on your SSD as a developer
If you're a developer with a Mac, it's very likely you've experienced a lack of space on your SSD. Modern tools like Docker, Node, or Brew can be very…
3 minutes
DevSigning your Git commits with GPG
On Git, there's a way to prove that you are indeed the author of a commit, allowing others to verify that it comes from a trusted source. Today, we…
3 minutes
DevLaravel & Vue.js - Building a Todo list, Part 6: Some Refactoring
I've taken the time to refactor some parts of the code since the last article. No major changes, but updating dependencies forced me to make several…
8 minutes
DevLaravel & Vue.js - Building a Todo list, Part 7: Managing tasks with Vuex and Axios
We have reached the heart of the application: task management. This is the central part of the project and the most important for end users. I've gone…
3 minutes
DevRelative dates in PHP
Managing dates has never been an easy task, and the programming language doesn't change much about that challenge. There are libraries like Carbon…
2 minutes
DevLaravel: How to better organize your routes
By default, Laravel comes with four route files to manage the entry points of our application. These files handle routes for APIs, WebSockets, console…
5 minutes
DevProperly setting up your development environment
Today, I want to discuss a topic that is very important to me. Setting up your development environment and computer is a fundamental aspect of your…
3 minutes
DevLaravel & Vue.js - Building a Todo list, Part 5: Authentication with Vuex and Vue-router
Now that we have set up the development and production environments for the application, we can create our first interface and component for…
5 minutes
DevLaravel & Vue.js - Building a Todo list, Part 4: Setting up the frontend application with Webpack
This is one of the most important parts of the frontend: setting up the environment with Webpack. Before starting I didn't start from a blank project;…
3 minutes
DevLaravel & Vue.js - Building a Todo list, Part 3: Using API Resources
Since Laravel version 5.5, we can use API Resources. Before this addition, we had to use packages like Fractal, which is, I think, the most well…
5 minutes
DevLaravel & Vue.js - Building a Todo list, Part 2: Authentication with JWT
Before starting to develop the features of our application, we need to set up authentication. For this project, I am using JWTs. This article is not…
5 minutes
DevLaravel & Vue.js - Building a Todo list, Part 1: Introduction and objectives
I am going to start a series of articles to present a project that I have wanted to implement for some time: a Todo List!! Well, I admit that doesn't…
3 minutes
DevIssues with Cartesian products in MySQL
Recently, while working on a web development project, I needed to use the SUM aggregation function with multiple JOIN operations. I encountered…
Comment j'utilise Git ? Mes astuces et bonnes pratiques !
Depuis quelques temps, j'ai en tête de faire un article pour expliquer comment je fonctionne avec git, quelles sont les commandes que j'utilise et…
2 minutes
DevRuby On Rails: Token authentication
After articles concerning ways to install Rails on different platforms, today we're going to do something more concrete! Authentication tokens With…