SOLID - Open/Closed Principle
Play
5:09 CC

SOLID - Open/Closed Principle

#199 Jul 21, 2019 pro
Open/Closed principle states "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification"; that is, such an entity can allow its behaviour to be extended without modifying its code.

Safely Running Shell Commands
Play
8:26 CC

Safely Running Shell Commands

#151 Sep 16, 2018 pro
We may come across a need to run shell commands and Ruby has some built in methods which appear safe, but can introduce major security risks.

Partial Inserts
Play
5:37 CC

Partial Inserts

#360 Jul 31, 2022 pro
Parsing through the Ruby on Rails CHANGELOG can reveal some interesting features and changes in the framework. In this episode, we look at one of those changes around inserting records into our database.

Mapbox Geolocation
Play
30:16 CC

Mapbox Geolocation

#372 Oct 23, 2022 pro
Using Hotwire and the Mapbox API, we can track the location of a user and playback their recorded GPS coordinates.

Campfire Bots
Play
31:41 CC

Campfire Bots

#444 Feb 25, 2024 pro
In this episode, we explore the practical use of Campfire Bots for webhook applications. We'll start by setting up an AI Image Generator bot that interacts with our Ruby on Rails application, and then connect it to a self-hosted Large Language Model (LLM). Our initial goal is to get the system working. After that, we'll focus on refactoring the code to improve its safety and maintainability.