Tonight I did two rants in person (towards @jasonrclark & @olivierlacan) that I otherwise would have done on twitter.
-
-
Replying to @sarahmei
I don't understand the .& operator. It seems to be compensating for an ActiveRecord deficiency ('find' methods sometimes return nil).
8 replies 0 retweets 1 like -
Replying to @sarahmei
ActiveRecord find methods return sometimes a single model object, sometimes an array of model objects, and sometimes nil.
3 replies 0 retweets 2 likes -
Replying to @sarahmei
Using the .& operator means you can guard against nil. 'current_user && current_user.name' is equivalent to 'current_user.&name'
2 replies 2 retweets 5 likes -
Replying to @sarahmei
I would rather ActiveRecord find methods returned objects with a consistent interface.
1 reply 0 retweets 6 likes -
Replying to @sarahmei
I want ActiveRecord find methods to return an empty array, an array with a single element, or an array with multiple elements.
7 replies 1 retweet 6 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.