Recent Articles

or
thumbnail of the page

Proof of Concept: Go-like Implicit Interfaces with Ruby and Sorbet

The implicit interfaces in Golang are my favorite feature in the language. I think they make perfect sense to use with Object-Orientation as I’ve written about in a previous post. I love Ruby, I like the dynamic nature of it and how it relates to the Smalltalk, I was excited when I first heard about sorbet as it introduce the type checking optionally. However, I was worried that it will make the Object-Orientation in Ruby boring just like in C++ or Java.

By Mohammed A.
Apr 18, 2022 • 13 mins read
thumbnail of the page

Patching Vite HMR To Work With Tailwind JIT

During my work at Learnlife, we use React + Vite + Tailwind JIT in our frontend, because we love them! At some point in time, we lost the joy of the fast HMR which was our favorite feature of Vite. We thought it’s a problem with Vite and we tried to revert back to Create React App, but that was never the case, the problem was trickier than we thought. In this article, I will walk you through how we fixed the issue.

By Mohammed A.
Dec 09, 2021 • 15 mins read
thumbnail of the page

Introducing Factory Bakery

Fixtures in Rails are the default way of filling the test database with random data. There are other solutions like factory_bot that use a ruby API for generating the fake objects. However, I needed to go a step further. It should uses column definitions to generate the fake data automatically just like model-bakery for Django. I couldn’t find anything on Rails, so I made one! Meet factory_bakery!

By Mohammed A.
Apr 04, 2021 • 7 mins read