⚡️ Site update

Currently working on the website — things may look broken or change at any time New blog post: Ideas are cheap. But glass? Not so much. (Ruby Stained Glass Notes #02)
Remi Mercier Freelance Software Developer monogram
Remi Mercier software · words · craft_

Sometimes, I write.

I find joy in building things. Then, I find joy in writing about it. Want to know when the next post hits? Grab the RSS feed.

Debugging with pry-byebug: moving in the stack frame

Time to level up your debugging game with frames, adding breakpoints on the fly, and some handy shortcuts.

Read this essay →

Get started with ActiveRecord scoped associations

Active Record Associations are a great feature of Rails. But I never thought of using scopes with has_one or has_many associations until recently! So let me show you a neat little trick that'll make your code much much more expressive (and keep your N+1 queries in check).

Read this essay →

How to wrap your head around a new codebase

For the last eighteen months, I've spent my time trying to understand bits of code I'd never seen before. Eighteen months later, I still don't know every corner of the codebase, but what I do know, is how to get efficiently familiar with new parts of a codebase.

Read this essay →

How not to live stream your code

This week, I did my first live stream on Twitch and it didn't turn out so well (to say the least). Here's a recap of my rookie mistakes, what I liked about it anyway, and what I'm planning on doing.

Read this essay →

Asynchronous HTTP requests in Rails

Let's look at how we can update parts of our app's pages with asynchronous HTTP requests. This is a step-by-step how-to with some good ol' Javascript fetch() method, and Rails native server-side partial rendering.

Read this essay →

A hands-on tutorial to debugging your code with pry-byebug

Like most new developers, I started as a puts developer. Then, I discovered pry-byebug and debugging things got a lot easier. This is a beginner-level, hands-on, introduction to debbuging your code with pry-byebug. Behold the power of binding.pry!

Read this essay →

Going remote: a live documentation on transitioning out of the office

Last week, I started the process of transitioning from an on-site position to a full remote one. I'll publicly document what happens as it happens here. Interested in remote working? Join in!

Read this essay →

Don't sell yourself short

You've just graduated from university. Maybe you're in your first two years as a developer. You are, what the market calls, a junior developer. And you're a burden to companies. That's what you're being told. Well, this is bullshit.

Read this essay →

Working with tempfiles in Ruby

A while back, I needed to create XML files, send them to a distant server and delete them once the transfer completed. This is when I discovered Tempfiles and rejoiced in using Ruby.

Read this essay →

2019 - a year in review

Well, here we are. December has come and gone. Now is the time to look back on what happened last year: a lot of writing and becoming a Real Developer™.

Read this essay →

An Introduction to Ruby classes and objects

When you start learning Ruby, you often hear that everything is - or evaluates as - an object. Here's an introduction for developers who want to get the gist of objects and classes in Ruby.

Read this essay →

Keep your finger on the pulse with RSS

Social media turned our lively corners of the web into glum ones. Let's breath life back into them with fresh signals.

Read this essay →

The violence within

Our mainstream work culture cultivates systemic violence: bullying, constant competition, sexism, etc. You name it. What if talking about could empower and protect us?

Read this essay →

Testing railway-oriented business transactions with Rspec

Railway-oriented business transactions are a great way to unclutter your Rails controllers. But how should we test them? Let's get down to it.

Read this essay →

How to use railway-oriented business transactions to unclutter your Rails controllers

When your Rails app needs to handle multiple steps, your controllers' methods can become a mess. Let's see how to Marie-Kondo them with dry-transaction

Read this essay →

Debugging PGError: ERROR: column of relation already exists

How do you fix a corrupted database's schema? Here's a hands-on tutorial on restoring your local database.

Read this essay →

Meet your new friend: self

tl;dr: When you're new to coding, it's not always easy to know where the fuck you are in your code. Well, call the most unexpected friend to the rescue: self!

Read this essay →

Own your story

When you put yourself out there, you get attention. Some of it is enjoyable. Some of it, not so much. It's not easy to keep your story straight.

Read this essay →

WTF is time complexity? 🤔

People who learn web development through coding bootcamp aren't (usually) familiar with time complexity. They might have read the words, but that's it. I know I tried to look up the Wikipedia page only to fall asleep at the end of the first paragraph. When I finally woke up, I thought "Nevermind, I'll never have to deal with it anyway". And boy, was I wrong.

Read this essay →

#TIL: a daily recap of my first two months as a Ruby on Rails developer

From early April to early June, I attended Le Wagon Paris' fullstack coding bootcamp. Each day, I shared what I'd learned on Twitter. Wanna know what it feels like to dive into coding for 2 months for the first time?

Read this essay →