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

How To Spy on Your Ruby Methods

Ruby has a built-in tracing system which you can access using the TracePoint class. Some of the things you can trace are method calls, new threads & exceptions. Why would you want to use this? Well, it could be useful if you want to trace the execution of a certain method. You will be able … Read more

9 New Features in Ruby 2.4

It has become a tradition to release new Ruby versions on Christmas. And in this post I want to cover some of the most interesting changes in Ruby 2.4 so you can keep up with the news 🙂 Float#round with keyword If you are using floats in your app I hope you use floor or … Read more

How to Write a Port Scanner in Ruby

Why would you want to write a port scanner? Writing a port scanner is a great way to learn the basics of the TCP protocol, which is the transport layer used by most internet protocols (including HTTP & SSH). It’s also a good exercise to learn more about how Ruby network programming works. Let’s gets … Read more