Last Updated: February 25, 2016
·
581
· tony612

Don’t try to use ||= to initialize things to booleans

Every ruby programmer loves to use @x ||= '' instead of @x = '' unless @x. But if @x is false, it'll set to '', it's terrible.