A Quick Analysis of How Sinatra Works

Sinatra is a Ruby web framework. It’s like Rails little brother… Let’s explore how Sinatra works: What happens when you require Sinatra into your project? How does route matching work? How are requests & responses processed? So many questions, but so little time… No problem! I did the hard work for you & put together … Read more

The Hidden Costs of Metaprogramming

Metaprogramming sounds like a very fancy word, but is it any good? It can be useful, but many people don’t realize that using metaprogramming has some costs. Just so we are on the same page… What is metaprogramming exactly? I define metaprogramming as using any method that: Alters the structure of your code (like define_method) … Read more

Hash Tables Explained

One of my favorite data structures is the hash table because it’s simple & powerful. You probably have used it before since it’s an efficient way to store key-value pairs. There are some interesting computer science concepts behind the implementation of a hash table that are worth studying, and that’s exactly what we are going … Read more

Metaprogramming Secrets

You Mindmap is On the Way… Hey! You will find the mindmap you requested in your inbox in a few minutes… but you should check this out first. It’s a little eBook I wrote for you which will help you get the most out of your new mindmap. If you want to start writing more … Read more

A Quick Analysis of How Minitest Works

What is Minitest? Minitest is a Ruby testing library, it allows you to write tests for your code TDD style. It’s the default testing framework for Rails & DHH’s favorite. Some people prefer it for its simplicity & how little code it has compared to its main alternative (RSpec). As you can see in this … Read more