Rubyists: if blah.nil? is bad. Also if !blah should be unless blah.
This is like fingernails on a chalkboard to me.
#GetOffMyLawn
-
-
unless blah assuming that false is an okay value too.
-
I think spending a little time in Hindley-Milner land means conflating nil and false gives me that chalkboard feeling
- 1 more reply
New conversation -
-
-
if you need to know if it is nil and not just if it is falsely nil? is okay. But I double check my design at that point.
-
it’s more about clear thinking and telling the reader a clear story; showing what I expect
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.