04 Mar '12, 11pm

Giles nails it on the head:

with Loren Segal. Realized why I was right when I revisited TomDoc and took a look at how it handles the public/private distinction. # Public: Duplicate some text an arbitrary number of times. # # text - The String to be duplicated. # count - The Integer number of times to duplicate the text. # # Examples # # multiplex('Tom', 4) # # => 'TomTomTomTom' # # Returns the duplicated String. def multiplex(text, count) text * count end I'm not out to put words into the mouth of TomDoc's author -- he might disagree -- but I believe TomDoc gets it exactly right, putting that distinction into comments. I firmly believe putting that distinction anywhere except comments is rude and disrespectful to your fellow developers. It goes in the comments because it's opinion . First, anyone who's done non-trivial stuff with Rails has seen "private" APIs turn effectively public, even if only for...

Full article: http://gilesbowkett.blogspot.com/2012/03/ruby-publicpriva...

Tweets

method_profiler: Find slow methods in your Ruby...

rubyflow.com 05 Mar '12, 3pm

method_profiler: Find slow methods in your Ruby code Posted by Perceptes on March 05, 2012 — 0 comments MethodProfiler col...

21 Ruby Tricks You Should Be Using In Your Own ...

rubyinside.com 28 Feb '12, 6am

Some of these are good tricks, some are blindingly obvious to decent programmers, some are unnecessary, and some are actua...

Learn Morse code to help disaster victims, radi...

straitstimes.com 04 Mar '12, 2pm

JOHOR BARU (THE STAR/ASIA NEWS NETWORK) - Amateur radio enthusiasts should learn Morse code so that they can respond to em...

writing readable ruby

rubyflow.com 03 Mar '12, 5pm

writing readable ruby Posted by alindeman on March 03, 2012 — 0 comments Over on the Highgroove blog , Brian posts some th...

ActiveWarehouse (Ruby ETL) v1.0.0.rc1 is out

rubyflow.com 03 Mar '12, 10pm

ActiveWarehouse (Ruby ETL) v1.0.0.rc1 is out Posted by thbar on March 03, 2012 — 0 comments If you need to extract data fr...

13 dead, 50 injured in Polish head-on train crash

13 dead, 50 injured in Polish head-on train crash

straitstimes.com 04 Mar '12, 1am

Rescuers work late on March 3, 2012 at the scene where two trains crashed head-on in Szczekociny, southern Poland, killing...

why’s (poignant) guide to ruby :: 4. Floating Little Leaves of Code:

why’s (poignant) guide to ruby :: 4. Floating L...

mislav.uniqpath.com 05 Mar '12, 10pm

I hate to intrude upon your instruction, but I’ve already walked all over it enough to warrant some further disregard. Can...

Class and Instance Variables In Ruby // RailsTi...

railstips.org 02 Mar '12, 10am

Update (6/13/2008): I posted a bit more on the topic with example uses in the wild . First, let me preface this article wi...

Ruby on REST 4: Using Representers in Rails: Th...

rubyflow.com 05 Mar '12, 7pm

Ruby on REST 4: Using Representers in Rails Posted by apotonick on March 05, 2012 — 0 comments The fourth post in the "Rub...