28 May '14, 1pm

New @rubyrogues Episode 158: Confessions

I like this notion that when we write a class file in Ruby, this is what I do and I see this a lot, you start at the top of the class file with the big meta stuff like modules that you’re including, Active Record DSL methods like belongs_to, has_many, validate, that kind of stuff. And then you have your initializer, your constructor. And then you have class methods. And then you have your public API. And then you have your private API. And you just move from this really high-level at the top of the class. By the time you’re at the bottom of the class file you’re dealing with very tiny things. Now clearly, I’m describing classes that are not written to conform to Sandi Metz’s idea of 25 lines of code for your class file, right? But if you’ve got this really big class you have almost this gradient slope of scope from broad to narrow. And what you’re describing Avdi sounds a ...

Full article: http://rubyrogues.com/158-rr-confessions/

Tweets

New: Singapore Property Weekly Issue 158 now out

propwise.sg 02 Jun '14, 1pm

Singapore Property Blog | Investing in Singapore Real Estate, HDB, Condos, Houses » Singapore Property Weekly » Singapore ...

Does ovulating make you smell funny? The Beauty...

thebeautybrains.com 27 May '14, 11am

It’s a special all Beauty Science News episode, featuring Perry’s ovulation-detecting super power. Plus we play Beauty Sci...