Limiting Text Input
Play
18:41 CC

Limiting Text Input

#350 May 22, 2022 pro
User experience is important and there are little things that we can do to help improve this experience. By giving real time feedback on text inputs to approaching limits on fields, the user can modify and update their text accordingly before they submit the form. In this episode, we look at database level, model validations and limiting text input on the client side.

Strict Locals
Play
9:10 CC

Strict Locals

#388 Feb 12, 2023 pro
Ruby on Rails 7.1 introduces Required Template Arguments w/ Default Values, or Strict Locals. This solves the issue of difficult to reason about dependencies & runtime compilations. In this episode, we look at how Strict Locals can improve the overall maintainability of our Rails partials.

Testing External Sites
Play
13:21 CC

Testing External Sites

#359 Jul 24, 2022 pro
Sometimes we find ourselves in a situation where we are handling the releases for an important application in our organization, but with each release, a regression/happy path testing must occur. We can use Ruby and Capybara to test these external sites.

Chart.js
Play
21:24 CC

Chart.js

#393 Mar 19, 2023 pro
Chart.js is a simple yet flexible JavaScript charting library for the modern web. In this episode, we look at creating a Stimulus controller around Chart.js. We'll also look at making the chart interactive by adding zoom and pan functionality.

Rate Limiting from Scratch
Play
22:00 CC

Rate Limiting from Scratch

#406 Jun 18, 2023 pro
Ever wonder how some companies implement rate limiting based on the plan that you've signed up for? In this episode, we'll use Docker Hub as a case study and implement this feature within our Rails application. We'll do this by creating a custom Rack Middleware to track and throttle the requests.