Current Attributes
Play
14:53 CC

Current Attributes

#357 Jul 10, 2022 pro
Abstract super class that provides a thread-isolated attributes singleton, which resets automatically before and after each request. This allows you to keep all the per-request attributes easily available to the whole system.

Discussing Race Conditions
Play
12:38 CC

Discussing Race Conditions

#348 May 8, 2022 pro
In this episode, we have a look at some causes of race conditions and go about some ways to troubleshoot and mitigate them.

Active Record Encryption
Play
11:11 CC

Active Record Encryption

#346 Apr 24, 2022 pro
Active Record supports application-level encryption. The encryption layer sits between the database and the application. The application will access unencrypted data, but the database will store it encrypted. In this episode, we look at implementing encryption for a model's attribute and Action Text.

Null Object Pattern
Play
16:36 CC

Null Object Pattern

#345 Apr 17, 2022 pro
The Null Object Pattern is an old but good pattern that can help reduce complexity in our applications. In this episode, we'll look at a few different examples.

Optimistic Locking
Play
9:15 CC

Optimistic Locking

#327 Dec 12, 2021 pro
Optimistic Locking is a feature to prevent collision when two users are editing the same record. In this episode, we look at adding this feature into a Rails 7 application that is using Turbo.