How to remove Docker files

I have been using docker for a while in a project and thank god it exists. There is no need in installing many project dependencies. In this case this is a Ruby on Rails 3 project, yes very old. Everything was fine until my root partition “/” was out of space! I thought to myself […]

Read More How to remove Docker files

Ruby cover? instead of include?

Last week I learned that we should use cover? instead of include?. When you ask a range if it includes something, ruby is going to instantiate every object within that range and then check if the object you pass into include? exists in there. If you ask cover? it’s just going to figure out and […]

Read More Ruby cover? instead of include?

var and let the difference in JavaScript

Javascrit has something called Hoisting. This is when all variables and functions are loaded before the program runs. function loadProfiles(userNames){ // some code… var loadingMessage = “Hold a sec… Profiles loading!”; // some code… } var loadingMessage = “Loading your profile!”; What will happen here is that the first declaration of loadingMessage will be loaded […]

Read More var and let the difference in JavaScript