@steveklabnik who'd've guessed so many other people love aggregating related fields into a single object #woah #mindblown #seriousshitthere
-
-
- End of conversation
New conversation -
-
-
@steveklabnik There are so many Struct anti-patterns too. I loath "class Human < Struct.new(:toes, :fingers)" -
@evanphx oh yeah? why? - Show replies
New conversation -
-
-
@Jonplussed thanks!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik I think OStruct is massively underused. Lots of gems out there that have their own implementation of it for config objects ... -
@clemensk yep. or Hashie - Show replies
New conversation -
-
-
@steveklabnik … when they could just use OStruct and be done with it. -
@clemensk@steveklabnik That's because ostruct can be painfully annoying.
End of conversation
New conversation -
-
-
-
@steveklabnik@cfcosta_@JEG2 Using attr_reader is better than a def (what you must mean by "full method")
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.