Too small for a gem but again, leftpad
Since her passing, I have maintained that she took all the good secrets to the grave. This is a new one, and it's enough to blog about.
A definitive guide to designing, architecting, and writing a gem for consuming a JSON-based REST API in Ruby.
For performance, for a better life.
Defining what code architecture is and changing the way we think about our code.
Rethinking how we design our monoliths.
So you wrote an app and you think it's slow. What can you do? A lot.
Nifty hack that's not terribly awful?
Turn your database schema into a RESTful API in just three commands (including
Tidy up your controllers and introduce descriptive one-liners by wrapping filters with clear method names.
A quick and practical guide to seeing blocks being used.
It's super duper cool.
require_dependency to make your code more organized.
Tips and tricks when querying your database and serializing objects in a performant and maintainable manner.
size doesn't hit the database if things are
self makes this clever API slick.
Writing an elegant and DRY API to handle batch actions in Ruby on Rails.
ActiveModel::Attributes to easily create a familiar API for purging
Creating custom exceptions specific to your app's needs is a powerful way to convey intent. What do they look like and where should you put them?
Adding headers for specific HTTP statuses in Ruby on Rails easily with
ActiveModel::Attributes in your models to get the schema-back attributes you love without the schema requirement.
Struct to bundle attributes together using accessor methods without having to write an explicit class.