News for hackers. Stuff that matters.
Re:A DSL in 5 Languages: Ruby, Python, PHP, C#, Java by roryokane on Tuesday August 03, 2010 @01:31PM (#1571948)
In the Ruby code, you include

  search.status.in(
    Braintree::Transaction::Status::Authorized,
    Braintree::Transaction::Status::Settled
  )
, but wouldn’t it be better to allow just

  search.status.in(:authorized, :settled)
? (And I agree with judofyr’s comment that “search.” shouldn’t be necessary on every line.)

There are no comments on this comment yet.