Rubyists: if blah.nil? is bad. Also if !blah should be unless blah.
This is like fingernails on a chalkboard to me.
#GetOffMyLawn
-
-
-
Replying to @peidran
it isn't idiomatic. Both those cases have unnecessary method calls which reduces readability and maybe performance.
2 replies 0 retweets 0 likes -
Replying to @the_thagomizer
what’s the most readable way to find out something is nil?
2 replies 0 retweets 0 likes -
Replying to @peidran
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.
1 reply 0 retweets 0 likes
Replying to @the_thagomizer
it’s more about clear thinking and telling the reader a clear story; showing what I expect
5:26 PM - 10 Jun 2016
from Fremont, Seattle
0 replies
0 retweets
0 likes
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.