Ruby Blocks Simplified

One of the most unique and often misunderstood features of Ruby is blocks. Blocks are Ruby’s version of closures and can be used to make code more reusable and less verbose. But keywords such as yield can be hard to grok at first and make this functionality a bit…

Read this article

A Visual Guide to Using :includes in Rails

If you're new to developing Rails applications, you've probably come across the term N + 1 queries. You probably also know that this is something you want to avoid. As an engineer who joined Gusto straight out of undergrad with no Rails or full-time industry experience, I was initially overwhelmed by…

Read this article