> Can you clarify this? I don't quite understand, but it looks intriguing.

Don't do this:

   unless good_thing
     bad_path
   else
     good_path
   end

Do this:

   if good_thing
     good_path
   else
     bad_path
   end

The condition should almost always use an 'if', should always state its intent 
positively, and should always put the happy path above the sad path.

Similarly, don't:

   return unless good_thing

Do:

   good_thing or return



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to