Author name: David B

Rails 7 : a preview

I’m not part of the Rails team, I’m just a daily Rails developer. So this list comes only from my imagination. Let’s dream. Hot reloading just works™ Hot reloading means “auto-refreshing the browser when the developer modifies a file”. It’s 2021, now all web frameworks (at least in the JavaScript space) have hot-reloading that just …

Rails 7 : a preview Read More »

Check emptiness in Ruby : nil? vs blank? vs empty? vs presence?

Posted March 30, 2021 – tagged ruby More often than not, you have to check if an object is empty or not, to avoid the famous *NullPointerException* – which is a *NoMethodError* in Ruby. “if” alone may not be enough if false or if nil won’t execute the corresponding condition, because false and nil are considered as falsy values. In other words, if …

Check emptiness in Ruby : nil? vs blank? vs empty? vs presence? Read More »

Scroll to Top