's Avatar

@alexis.bernard.io

42
Followers
16
Following
49
Posts
18.04.2025
Joined
Posts Following

Latest posts by @alexis.bernard.io

Is it recorded?

20.02.2026 06:12 👍 0 🔁 0 💬 1 📌 0

Quick PSA:
If you're an event organizer who wants the Ruby Passport at your event, get in touch with me at least one month in advance.
These things take a while to get made and shipped your way.

✌️

15.02.2026 23:23 👍 4 🔁 4 💬 0 📌 0
Post image Post image Post image

What a promising day of ski !

17.02.2026 07:11 👍 2 🔁 0 💬 0 📌 0

Can't wait for the next @genevarb.bsky.social

13.02.2026 17:03 👍 1 🔁 0 💬 0 📌 0

I asked to a LLM to write my prompt. The circle is complete.

13.02.2026 17:00 👍 0 🔁 0 💬 0 📌 0
Preview
How to determine the optimal concurrency level for a Rails app on the first try, Wed, Feb 11, 2026, 7:00 PM | Meetup ***👉 Notice to attendees*** *The event will be held **in a different room** than usual. We will meet in room **011** of the **main building** of the UOG, on the **1rst fl

This Wednesday: discover how to calculate your ideal concurrency level before running a single benchmark with Alexis Bernard from RoRvsWild — no guesswork, just smart statistics. 🚀
meetu.ps/e/PPF4y/KFPP...

09.02.2026 20:07 👍 0 🔁 1 💬 0 📌 1

I had a road trip in Spain few years ago and I remember crossing beautiful national parks between Toledo and Sevilla.

02.02.2026 15:06 👍 2 🔁 0 💬 0 📌 0

One small app only.

21.01.2026 05:32 👍 1 🔁 0 💬 0 📌 0

`git diff` forever :) I'm too much used to type it so many times before each `git commit` for years. Every time I tried a Git app, I go back to the CLI. Habits are here to last.

13.01.2026 14:44 👍 0 🔁 0 💬 0 📌 0

If you update or delete often rows watching bloat tables and indexes is important. This article is a great explanation and I also recommend using the gem rails-pg-extras to watch bloat ratios: github.com/pawurb/rails...

23.12.2025 09:55 👍 1 🔁 1 💬 0 📌 0
Screenshot of a terminal demonstrating object allocation speedup. Ruby 4.0 is about 2x faster

Screenshot of a terminal demonstrating object allocation speedup. Ruby 4.0 is about 2x faster

One thing I'm really excited about in Ruby 4.0 is that object allocation is going to get a nice speed boost

13.12.2025 20:09 👍 89 🔁 10 💬 3 📌 0

Yesterday was a good reminder that centralized systems are weak, but decentralized systems are robust. The Internet is robust because it is decentralized. No one can take it down.

19.11.2025 16:09 👍 0 🔁 0 💬 0 📌 0
Post image

Tonight I will be presenting at Geneva.rb on how to protect a web application against bots and brute force attacks without annoying humans and **without relying on a third-party service**.

19.11.2025 16:09 👍 0 🔁 0 💬 1 📌 0
Preview
Railhöck at Swisscom, Wed, Nov 12, 2025, 6:30 PM | Meetup Hey everyone, this year's last Railshöck is hosted at Swisscom's. Three speakers committed to share their perspective on stage: * **Rage Against the Malicious** by *Alexis

The subject is broad enough to be of interest to all web developers, not just Ruby developers. I hope to see you there!

Zurich: www.meetup.com/rubyonrails-...

Geneva: www.meetup.com/geneva-rb/ev...

07.11.2025 08:31 👍 0 🔁 0 💬 0 📌 0
Rage Against The Malicious: The battle of spam bots

Rage Against The Malicious: The battle of spam bots

Next Wednesday I will give a presentation at Zurich.rb, and then on the 19th November at Geneva.rb:

How to protect web applications against spam bots and brute force attacks without annoying humans, and why I think captchas are not the best solution.

07.11.2025 08:31 👍 5 🔁 2 💬 2 📌 1

I love namespace, it's great to group related things.

23.10.2025 17:48 👍 1 🔁 0 💬 1 📌 0

As always it's a tradeoff, but when I'm unsure between add column or create table, I always go for the new model.

23.10.2025 16:38 👍 1 🔁 0 💬 0 📌 0

Migrating a column is painful and particularly if you can't afford interruption since the application must handle both cases at the same time.

I don't remember to have regretted to create an extra model, however I already regretted many times adding an extra column instead of a table.

23.10.2025 16:38 👍 1 🔁 0 💬 2 📌 0
Video thumbnail

AI can write tests, but it doesn't understand what truly matters to you, your product, or your codebase. Without guidance, it follows patterns, and the output feels sometimes good, sometimes bad.

That's why I'm launching a new workshop: Reliable Test Case Generation with AI.

23.10.2025 08:22 👍 2 🔁 1 💬 1 📌 0

Thus, there is an interesting indicator: number of columns / number of tables. I'm sure that code bases with a lower ratio are healthier.

23.10.2025 15:27 👍 0 🔁 0 💬 0 📌 0

It's a lot better because it enables to store more data (IP address, timestamps, ...), and gives a lot of statistics such as how many reset password attempts during the last hour for a particular user?

23.10.2025 15:27 👍 0 🔁 0 💬 1 📌 0

The wrong way is to store confirmation_token, reset_password_token and session_token in the users table. In fact, that should be 3 distinct models: User::Confirmation, User::ResetPassword and User::Session.

23.10.2025 15:27 👍 1 🔁 0 💬 2 📌 0

If your are unsure about adding a new column to a table or creating a new model, always create a model. Your code base will thank you. Let's have a look to the User model.

23.10.2025 15:27 👍 3 🔁 1 💬 2 📌 0
Post image

TIL: In SQL the RETURNING instruction accepts any expression, not only a column name. That seems so obvious, but I took all that time to notice it 😅

17.10.2025 08:43 👍 0 🔁 0 💬 0 📌 0
Screenshot of Workshop page

Screenshot of Workshop page

6 spots filled, 9 remaining for the Good Enough Workshop this Friday at 15:00 UTC

Here are all the details about the workshop. In case you have questions reply here or via email -> hello@goodenoughtesting.com

08.10.2025 15:07 👍 3 🔁 1 💬 1 📌 0
Dear Rubyists: Shopify Isn’t Your Enemy I’ve been meaning to write a post about my perspective on Open Source and corporate entities. I already got the rough outline of it; however, I’m suffering from writer’s block, but more importantly, t...

I tried to explain why I don't believe the recent accusations toward my former teammates, as well as how the Ruby and Rails Infra team at Shopify operates and why it can be trusted.

byroot.github.io/opensource/r...

09.10.2025 14:15 👍 93 🔁 35 💬 11 📌 6

Mine is starting to peel too.

07.10.2025 20:42 👍 0 🔁 0 💬 0 📌 0

Always take both 😀

07.10.2025 10:47 👍 2 🔁 0 💬 1 📌 0
Post image

I am very happy to have become dual citizen 💎 since last @euruko.org. Thanks @adrianthedev.com and @avohq.io 😀

07.10.2025 07:24 👍 17 🔁 2 💬 2 📌 1

And Switzerland is in Schengen but not in EU 🙃

05.10.2025 16:12 👍 1 🔁 0 💬 0 📌 0