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.

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.

Solid Cache
Play
10:31 CC

Solid Cache

#424 Oct 15, 2023 pro
Solid Cache is a database-backed Active Support cache store implementation. Using SQL databases backed by SSDs we can have caches that are much larger and cheaper than traditional memory only Redis or Memcached backed caches. In this episode, we'll explore adding Solid Cache into our application and some things to be aware of.

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.

Zipping Files
Play
27:21 CC

Zipping Files

#385 Jan 22, 2023 pro
In this episode, we have a look at three different methods of zipping Active Storage files and sending the zipped file to the end user. Each approach has its own benefits and the best approach will depend on your use case.