But I like #zero?, and have found situations where x == 0 was not "working" and x.zero? was. Don't ask me what it was though β I can barely remember yesterday β but maybe someone can explain that.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Wow, that
unless
throws me off waaay more than it should.How do you feel about this:
If I write
My linter will ask me to change it to
Actually, it your be more idiomatic to write:
I do love Ruby for those things. I can write business code in a way that is perfectly understandable the first time I read it.
Yeah, this was a bad example
But I like
#zero?
, and have found situations wherex == 0
was not "working" andx.zero?
was. Don't ask me what it was though β I can barely remember yesterday β but maybe someone can explain that.