From: Josh Cheek Date: 2012-07-25T03:36:05+09:00 Subject: Re: Lambda - how big is too big? --bcaec54a37ae7f24c704c597a2f6 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 24, 2012 at 1:08 PM, Nick R. wrote: > OK, so how big is too big for a lambda? > > In general, I hate lambdas. Seems to me like almost always, > you can come up with something more straghtforward, more debuggable, > more testable, more readable, etc. But... Please chime in with your > opinion. A few lines? Up to 10 lines? The bigger the better (can you > say "job security"?)? Bring it on! > > -- > Posted via http://www.ruby-forum.com/. > > I very rarely create lambdas explicitly, so I don't think this has ever come up for me (unless you're including blocks). In general, I'd probably use about the same metrica as I use for methods, which is to say a couple of lines, unless it makes sense to be longer. -Josh --bcaec54a37ae7f24c704c597a2f6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Jul 24, 2012 at 1:08 PM, Nick R. <lists@ruby-forum.com><= /span> wrote:
OK, so how big is too big for a lambda?

In general, I hate lambdas. =A0Seems to me like almost always,
you can come up with something more straghtforward, more debuggable,
more testable, more readable, etc. =A0But... =A0Please chime in with your opinion. =A0A few lines? =A0Up to 10 lines? =A0The bigger the better (can y= ou
say "job security"?)? =A0Bring it on!

--
Posted via http://= www.ruby-forum.com/.


I very rarely create lambdas expl= icitly, so I don't think this has ever come up for me (unless you'r= e including blocks). In general, I'd probably use about the same metric= a as I use for methods, which is to say a couple of lines, unless it makes = sense to be longer.

-Josh
--bcaec54a37ae7f24c704c597a2f6--