Introduction In this episode of “Doing terrible things in the name of science” we will look into how we can write C extensions for Ruby. This would be pretty harmless… so… we will look into sharing memory between two Ruby processes and two-way communication. Of course, this could be separate...
Introduction Why block can see local variables defined before him? Why can it change them? What kind of sorcery is this? I will try to answer that question in this post. We will see examples of blocks and hidden secret hero behind the magic – binding object. In our magical...
In this blog post, I will show you how to maintain and reuse complex SQL in a Ruby on Rails application. In case you are not sure if going beyond Active Record is worth it, please read part 1. Ruby on Rails is a fantastic framework, but there are no...
From what I experienced in various Ruby on Rails projects using relational databases, developers often tend to treat the database as a necessary evil. In many cases, especially small apps, it is not harmful, but I think it tends to enforce suboptimal solutions. If your case is the latter or...
Abstract There are plenty of authorization libraries for Ruby (or Rails). Many strive to implement an elegant DSL to express their rule system, attempting to become fully declarative (as opposed to imperative). While this approach has some merit, we’ll disregard it completely. Instead, we’ll see how using the simplest possible...
Leave your name and e-mail, and we'll write you back.
…or just email us at [email protected]
By submitting your name and email address you allow us to use it for business purposes. Don't worry, your data is safe with us, we'll use it only to contact you.