RSSAmplifier

Blog

Alexandre's Blog

Articles about Ruby, Rails and programming in general.

alexbarret.comRSS feed ↗18 posts

Latest posts

What's new Alex?

A quick update about the blog and where I'm at

Perfecting Your Rails Form: Nested Attributes

In this second part of the series, let's explore nested attributes how they work and why they are so complex.

Perfecting Your Rails Form: Atribute Accessors

In this first part of a series diving into Rails forms, let's explore Rails conventions used to bridge object accessors with forms.

RSpec Testing Levels

Testing journey when using RSpec.

What is business logic?

Writing code that understands business needs

Empathetic coding

Code like a leader, not a micromanager

To Push or Not to Push the Crosswalk Button?

A story about responsibility, mental load, design, empathetic coding and traffic lights.

Identify i18n translation keys

A simple module to help us identify what translation keys are on any page.

On writing better service objects

Let's write Ruby like we write Rails applications and see how we can improve our use of service objects in the process.

Testing Rails Scopes

A method to test ActiveRecord model scopes properly.

Please show me a Gemfile

One simple file to learn all about a Ruby application.

Service object alternatives: Serializers

How to improve a specific type of service object and, who knows, get rid of it completely.

Skipping existing ActiveRecord validations

How to skip existing rails validations with validations contexts.

Retest - Docker & feature Specs

This article describes the Docker setup used in the end-to-end (2E2) testing of the rubygem retest.

Pragmatic refactoring

99 Bottles of OOP book review and introducing retest, a gem to help you refactor code on the fly.

Testing ActiveRecord concerns

How to test Rails concerns for ActiveRecord models with temporary database tables.

Service object alternatives: ActiveModel

How to use ActiveModel::Model to substitute service objects encountered in Rails codebases.

Reflect on past commits

Can you understand your old code? A quick way to reflect and give feedback to your past self.