Tutorials



Profile picture (or any file) uploading with Grape + Trailblazer + CarrierWare
Assume that you have a Grape API (in fact it can be a Rails API or anything else, not the point) with something like Angular.JS for the frontend. As a modern Ruby developer you already using (or want to) Trailblazer for business logic encapsulatio...




7 Design Patterns to Refactor MVC Components in Rails
In our previous post, The Basics of MVC in Rails, we discussed theoretical aspects of the MVC design pattern. We defined what MVC stands for, identified what each MVC component is responsible for, addressed what happens when a component contains r...


How do Native Extensions Manage Memory? Part 1: Ruby (MRI)
One of the most interesting design challenges in a programming language interpreter or VM is what kind of memory management API to offer to native extensions.
This issue is more or less invisible unless you’re writing a native extension. When you...