Redis - An Introduction

What is Redis?

Redis is an in-memory key-value data store that you can integrate with your application to store volatile data. It’s volatile because once you quit Redis, all the data you’ve stored is lost.

It works by storing some value in a key. You can later on request “Give me the value for key ‘some_key’”.

It supports a wide range of data types such as strings, hashes, lists, sets, bitmaps, etc…

More …

A quick introduction to Timecop

How do you test code that depends on the time, or on a specific date? Without having a library that allows you to specifically freeze time at a specific point of your choosing, or to let you travel back and forth between dates, this would a rather difficult task. Luckily, we have the Timecop library to do this work for us.

More …

Building a DSL in Ruby - Part 2

In the previous blog post, we implemented the first version of an example of a DSL library in ruby, a simple FactoryBot clone. In this second part, we’ll extend and improve the library so that we can also build associations between objects.

More …

Want to learn? Write it down

Over the course of my programming adventures, one of the best sources of knowledge, in my case, is videos and written tutorials. I don’t think I can get the same level of information retained by reading technical books (although I do want to improve in this aspect).

More …

Building a DSL in Ruby - Part 1

Have you ever wondered how libraries like FactoryGirl (or should I say FactoryBot?) work? Or Rails routing? It all seems a bit like magic sometimes doesn’t it? Let me debunk all of that for you! These libraries are not using any tricks under hood, it’s just plain old ruby, except they’re using a few advanced aspects of the language that you might not have known about. To demonstrate that, we’ll write a simple and functional clone of FactoryGirl, Construction Girl (I couldn’t think of a other better name).

More …