Tutorials


Work around Rails schema noise with one weird trick?
In this project, db/schema.rb has almost 4000 lines, and over 800 get automatically changed any time I run a migration. It’s a little annoying.Not every change is exactly like the above example with precision. There are a few other small issues, b...



Using Lambdas and Callables for Deferred Evaluation, Control Flow, and New Language Patterns | Fullstack Ruby
Ruby blocks are simply amazing, and I’ve written about some of the cool things you can do with them.But something which confused me early on as I learned Ruby and started using gems and frameworks was when to write a block vs. when to write an exp...

Maximizing Code Quality with Rails Pre-Commit and Pre-Push Hooks | Shakacode
Maintaining code quality is paramount in software development. As projects grow in complexity and scale, ensuring consistency, cleanliness, and adherence to best practices becomes increasingly challenging. This is where pre-commit and pre-push hoo...


Introducing Ruzzy, a coverage-guided Ruby fuzzer | Trail of Bits Blog
Trail of Bits is excited to introduce Ruzzy, a coverage-guided fuzzer for pure Ruby code and Ruby C extensions. Fuzzing helps find bugs in software that processes untrusted input. In pure Ruby, these bugs may result in unexpected exceptions that c...

Rails 8 Adds Rate Limiting to Action Controller via Kredis Limiter Type | Saeloun Blog
Rate limiting is a technique used to control the rate of incoming requests or traffic to a server, API, or service. It helps in limiting the rate at which requests are processed which ensures system security and performance.By restricting the rate...