DEV Community

Mike Rogers ✈️
Mike Rogers ✈️

Posted on


ActiveRecord::Events - Awesome Gems

I really like using timestamps over booleans, they add so much more free information compared to a standard boolean, plus they nicely avoid the issue of "What if a boolean field is nil?".

The ActiveRecord::Events gem really compliments using a timestamp as a boolean, as it adds the conventional methods & scopes.

In the video, I cover how to install it & give some example usage.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.