From: Ranieri Teixeira Date: 2008-03-11T10:14:20+09:00 Subject: Re: Which is better -- method option or multiple methods? ------=_Part_1496_19571817.1205197890453 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > How can the single method approach be faster when it has to do more, > namely option checking and branching? I want to say that when you use one monolitic method to run a whole algorithm, it runs faster than using separated methods, yes just because branching. But, I'm wrong because, as you wrote, multiple options also caus= e branching. > > > > Multiple arguments oprions are for a method that this type of coding is > > coherent. > > Sorry, I do not understand what this is supposed to mean. Can you > elaborate, please? > Here, you must use several options when it make sense, as in the call to an activerecor find method, like: find(:all, :order =3D> 'name ASC', :conditions =3D> ['service_usage >=3D ?'= , 50]) I hope this reply is more clear. --=20 Ranieri Barros Teixeira Ci=EAncia da Computa=E7=E3o - Faculdade de Computa=E7=E3o - Universidade Fe= deral do Par=E1 (UFPA) http://rubytags.blogspot.com http://rubyxchart.rubyforge.org ------=_Part_1496_19571817.1205197890453--