Tutorials

Introducing form_props: The power of Rails forms now available for React!
Miss the convenience of Rails when working in React? Tired of building React forms ever so slightly different from project to project? Prefer working with HTML over customizing the Rails form builder? Prefer HATEOAS? Boy, do I have the tool for yo...

Write snippet code to rewrite your source code · Synvert
Different than other linter tools (e.g. rubocop) or codemod tools (e.g. jscodeshift), synvert allows you to write snippet code to rewrite your source code.It is a complete solution to automatically rewrite (refactor) your source code.It is a power...


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...