ls = LineStream.new(true)
    bl = ls.retrieve
    line_msg = ls.messagize(bl, false) # long format
...

Ruby Checking validity of messag...

by keruilin.myopenid.com, June 25, 2010 11:25, 3 refactorings, tagged with ruby, refactor, twitter

I have an ActivityStrea...

2669fbd62908cf7787bd6ac81bad624c Talk
has_many :fight_wins, :class_name => 'Fight', :finder_sql =>
      '#{sanitize_sql_array(
          "SELECT f.* 
...

Ruby Refactor sanitize_sql_array

by keruilin.myopenid.com, June 20, 2010 01:31, 2 refactorings, tagged with rails, sanitize

I can't get this to work pr...

2669fbd62908cf7787bd6ac81bad624c Talk

Ruby On how to refactor tricky logi...

by keruilin.myopenid.com, June 08, 2010 04:19

Joshu, yours is closest I'v...

2669fbd62908cf7787bd6ac81bad624c Talk
def check_win_streak(streak)
    badge = 10
    while badge < BADGE::MAX_STREAK_BADGE_SIZE do # MAX_STREAK_BADGE_SIZE = 30
...

Ruby how to refactor tricky logi...

by keruilin.myopenid.com, June 06, 2010 20:32, 6 refactorings, tagged with rails, ruby, logic

The rule at work here is th...

2669fbd62908cf7787bd6ac81bad624c Talk