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 except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

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, no programming questions and please don't post ads.


 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberMaximilien14-Mar-13 11:21 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberGjelt14-Mar-13 12:20 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pinmember_Josh_14-Mar-13 13:03 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmentorNicholas Butler14-Mar-13 11:27 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays PinmemberMarco Bertschi14-Mar-13 11:41 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pinmemberlewax0014-Mar-13 11:44 
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 
AnswerRe: Completely new to this site, and not sure how to ask question directly to others. Can you help me? PinmemberMarco Bertschi14-Mar-13 9:20 
AnswerRe: Completely new to this site, and not sure how to ask question directly to others. Can you help me? PinprotectorAspDotNetDev14-Mar-13 9:21 
GeneralRe: Completely new to this site, and not sure how to ask question directly to others. Can you help me? PinmemberPaga Cession14-Mar-13 9:43 
GeneralRe: Completely new to this site, and not sure how to ask question directly to others. Can you help me? PinmemberMarco Bertschi14-Mar-13 10:33 
NewsBoffins Beget Boson Breakthrough PinprotectorAspDotNetDev14-Mar-13 8:36 
GeneralRe: Boffins Beget Boson Breakthrough PinmemberThe Bhai14-Mar-13 8:38 
GeneralRe: Boffins Beget Boson Breakthrough Pinmembermark merrens14-Mar-13 8:48 
GeneralRe: Boffins Beget Boson Breakthrough Pinmemberwizardzz14-Mar-13 9:13 
GeneralRe: Boffins Beget Boson Breakthrough PinmemberMatthew Faithfull14-Mar-13 9:39 
GeneralRe: Boffins Beget Boson Breakthrough PinprotectorAspDotNetDev14-Mar-13 9:55 
GeneralRe: Boffins Beget Boson Breakthrough PinmemberMark_Wallace14-Mar-13 21:30 
GeneralGoogle Reader Will Be Exterminated [modified] PinmemberJoeSox14-Mar-13 7:25 
GeneralRe: Google Reader Will Be Exterminated PinmemberRichard Deeming14-Mar-13 7:35 
GeneralRe: Google Reader Will Be Exterminated PinmemberJoeSox14-Mar-13 7:39 
GeneralRe: Google Reader Will Be Exterminated PinmemberKent Sharkey14-Mar-13 7:52 
GeneralRe: Google Reader Will Be Exterminated PinmemberJoeSox14-Mar-13 8:47 
GeneralRe: Google Reader Will Be Exterminated PinmemberJwalant Natvarlal Soneji15-Mar-13 3:15 
GeneralRe: Google Reader Will Be Exterminated PinmemberKevin McFarlane14-Mar-13 10:54 
GeneralRe: Google Reader Will Be Exterminated PinmemberRJOberg14-Mar-13 9:45 

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.150326.1 | Last Updated 26 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid