The blog of Rémi Mercier, Ruby on Rails Developer.| Rémi Mercier - Software Developer
For years, people around me have been telling me to learn new programming languages—that I shouldn’t corner myself with Ruby (and Rails). And for years, I couldn’t muster the mental energy to do it.| Rémi Mercier - Software Developer
A while ago, I needed to add some view-related instance methods to a model. Decorators are my go-to pattern to handle this kind of logic. So, I built a minimal decorator from scratch, added a bunch of extra behaviors, only to end up abstracting all of that away. Follow along!| Rémi Mercier - Software Developer
One of RSpec's strengths is the legibility of its behavior-based DSL. The other side of this coin is that the proliferation of small example blocks introduces a performance overhead.| Rémi Mercier - Software Developer
The blog of Rémi Mercier, Ruby on Rails Developer.| Rémi Mercier - Software Developer
When working on features, I strive to preserve my flow, which means, that after a few hours, I'll have a bunch of untracked files waiting for me in git. I use `git add --patch` to effectively bundling my work into separate commits.| Rémi Mercier - Software Developer
Today, I want to share a different type of post. Nothing polished. Just me goofing around with PostgreSQL's full-text search capabilities.| Rémi Mercier
Interacting with third-party APIs is common practice in applications. This is where the structural design pattern called facade comes into play.| Rémi Mercier
Where I share a badly designed piece of code, think about what process I can use to reveal its flaws, and how to make it better.| Rémi Mercier
Add extra documentation to your columns attributes with this one simple trick.| Rémi Mercier - Ruby on Rails Developer
Delegated types are a modelization pattern introduced in Rails in 2020. And developers have mostly been scratching their head for a few years trying to use them in their applications. Today, I want to share a real-world use case. I'll walk you through my pre-existing domain architecture, my initial requirements, my mistakes, how I eventually used delegated types, what I learned and my open questions.| Rémi Mercier
Why would you spend your cognitive capacity on useless choices?| Rémi Mercier