Ruby
Ruby on Steroids(DSLs): The Powerful Spell Called DSL
Software engineering is all about trade-offs. There rarely is a “best” or “correct” solution to programming problems. The typical general-purpose programming language is good at solving a huge range of problems. Unfortunately, there is a price to be paid for being general purpose. A language that tries to do everything can’t afford [...]
Ruby on Steroids: The Magic of MetaProgramming – Method Spells
In part 1 of this journey, you were introduced to anatomy of magic(metaprogramming) and you saw some of the spells you can cast with the magic of metaprogramming. In this post, I will be showing you spells you can cast when dealing with methods. Method Spells The spells we will be discussing on this journey are spells we will need when working [...]
Ruby on Steroids: The Magic of MetaProgramming – Fellowship of Spells
In part 1 of this journey, you were introduced to anatomy of magic(metaprogramming) and you saw some of the spells you can cast with the magic of metaprogramming. In this post, I will be showing you other forms of spells you can cast. Fellowship of Spells For us to become better magicians, we need to learn more spells. Let’s see how [...]
Ruby on Steroids: The Magic of MetaProgramming – An Unexpected Journey
We have all been hearing about metaprogramming. Metaprogramming is one of those words that seems to exist purely to scare people. Are we talking about programming beyond programming? Xtreme Programming in the Dojo? Programming made for ruby ninjas use, and that it simply isn’t for common mortals? Programming in the next dimension?. But [...]
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 [...]
Autoloading and Utility Methods – Part 3
This is the third 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 Method Part 4 – Better Routing Part 5 – Render, Redirect & Before_Action Methods in Controllers Part 6 – Extract Complexities [...]
Set up a Basic MVC Framework – Part 2
This is the second 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 [...]
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 [...]