Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberGjelt14-Mar-13 12:22 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberForogar14-Mar-13 13:15 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pinmember_Maxxx_14-Mar-13 15:48 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberJoe Woodbury14-Mar-13 16:27 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pinmemberdusty_dex14-Mar-13 18:54 
JokeRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberPeter_in_278015-Mar-13 0:13 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pinmemberdusty_dex15-Mar-13 0:57 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinprotectorMarc Clifton15-Mar-13 2:44 
_Maxxx_ wrote:
but if I'm trying to debug that line of code, I have to stop and think FAR harder than I do with the long-winded example.

 
I might argue that the point is, that line of code would never need to be debugged, because it will always do exactly what it says it will do. If it fails, then there's a problem with the functions that it is calling, rather than at this level.
 
That said, the other thing I notice when writing code in this form is that my functions / methods are much smaller - as with coding in F#, I notice that I break things down into much smaller units that are easier to test and can therefore be combined to create a richer expression of higher level behaviors.
 
But I'm also surprised by the overall negative reaction to lambdas and anonymous methods that this post generated - this was very illuminating and, as Bill Woodruff suggested, might be worth an article or two.
 
Marc

GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberBrady Kelly14-Mar-13 19:34 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberBillWoodruff14-Mar-13 19:38 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinprotectorMarc Clifton15-Mar-13 2:35 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pinmemberc242315-Mar-13 1:56 
GeneralRandom Project [modified] PinmemberBrisingr Aerowing14-Mar-13 9:21 
GeneralRe: Random Project PinmemberMarco Bertschi14-Mar-13 9:24 
GeneralRe: Random Project PinmemberVasudevan Deepak Kumar14-Mar-13 9:39 
GeneralRe: Random Project PinprotectorMarc Clifton14-Mar-13 9:42 
GeneralRe: Random Project PinmemberBrisingr Aerowing14-Mar-13 13:57 
GeneralRe: Random Project Pinmemberwizardzz14-Mar-13 9:45 
GeneralRe: Random Project PinmemberMatthew Faithfull14-Mar-13 9:50 
GeneralRe: Random Project PinmemberJörgen Andersson14-Mar-13 9:54 
GeneralRe: Random Project PinmemberRavi Bhavnani14-Mar-13 9:59 
GeneralRe: Random Project Pinmembergavindon14-Mar-13 10:17 
QuestionCompletely new to this site, and not sure how to ask question directly to others. Can you help me? PinmemberPaga Cession14-Mar-13 9:16 
AnswerRe: Completely new to this site, and not sure how to ask question directly to others. Can you help me? PinprotectorPete O'Hanlon14-Mar-13 9:19 
AnswerRe: Completely new to this site, and not sure how to ask question directly to others. Can you help me? Pinmemberjschell14-Mar-13 9:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid