RUBY

Creating your own RSpec Matchers.

RSpec is a behavior-driven development (BDD) framework for the Ruby programming language. It assists with setting expectations for how exactly one expects ones code to behave. Tests (or specs) are first written and run leading to failures. Code is then written to pass those expectations earlier set. RSpec by default provides a handful of matchers [...]






RUBY

How to Delegate Like a Boss

Great bosses understand the art of delegation. They know what needs to be done and who the best person for the job is. They create an environment where everyone thrives and are happy with their job. Delegation can also be applied when building software. In fact, we can use delegation to adhere to 2 of the fundamental SOLID principles of object [...]


RUBY

Better Routing – Part 4

This is the fourth part of Building an MVC Framework with Ruby. The topics we’ll cover are: Part 1 – Rack Deep Dive Part 2 – Set up a Basic Framework Part 3 – Autoloading and Utility Methods Part 4 – Better Routing Part 5 – Render, Redirect & Before_Action Methods in Controllers Part 6 – Extract [...]




RUBY

Rack Deep Dive – Part 1

About 7 months ago, I started teaching ruby and rails at Andela. One of the biggest challenge in teaching rails is explaining all of the “magic” that Rails uses to do its job . The most effective way to really understand how things work in rails is to rebuild it from scratch. Below is a quote by Chad Fowler. The magic thing about Rails [...]


RUBY

Creating your own RSpec Matchers.


RUBY

Ruby on Steroids(DSLs): The Powerful Spell Called DSL


RUBY

Ruby on Steroids: The Magic of MetaProgramming – Method Spells


RUBY

Ruby on Steroids: The Magic of MetaProgramming – Fellowship of Spells


RUBY

How to Delegate Like a Boss