Click here to Skip to main content
11,482,402 members (75,054 online)

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 Pin
Gjelt14-Mar-13 12:22
memberGjelt14-Mar-13 12:22 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
Forogar14-Mar-13 13:15
memberForogar14-Mar-13 13:15 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
_Maxxx_14-Mar-13 15:48
member_Maxxx_14-Mar-13 15:48 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
Joe Woodbury14-Mar-13 16:27
memberJoe Woodbury14-Mar-13 16:27 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
dusty_dex14-Mar-13 18:54
memberdusty_dex14-Mar-13 18:54 
JokeRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
Peter_in_278015-Mar-13 0:13
memberPeter_in_278015-Mar-13 0:13 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
dusty_dex15-Mar-13 0:57
memberdusty_dex15-Mar-13 0:57 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
Marc Clifton15-Mar-13 2:44
protectorMarc 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 Pin
Brady Kelly14-Mar-13 19:34
memberBrady Kelly14-Mar-13 19:34 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
BillWoodruff14-Mar-13 19:38
memberBillWoodruff14-Mar-13 19:38 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
Marc Clifton15-Mar-13 2:35
protectorMarc Clifton15-Mar-13 2:35 
GeneralRe: It's interesting how much lambda, extension and anonymous methods I'm using nowadays Pin
c242315-Mar-13 1:56
memberc242315-Mar-13 1:56 
GeneralRandom Project [modified] Pin
Brisingr Aerowing14-Mar-13 9:21
memberBrisingr Aerowing14-Mar-13 9:21 
GeneralRe: Random Project Pin
Marco Bertschi14-Mar-13 9:24
memberMarco Bertschi14-Mar-13 9:24 
GeneralRe: Random Project Pin
Vasudevan Deepak Kumar14-Mar-13 9:39
memberVasudevan Deepak Kumar14-Mar-13 9:39 
GeneralRe: Random Project Pin
Marc Clifton14-Mar-13 9:42
protectorMarc Clifton14-Mar-13 9:42 
GeneralRe: Random Project Pin
Brisingr Aerowing14-Mar-13 13:57
memberBrisingr Aerowing14-Mar-13 13:57 
GeneralRe: Random Project Pin
wizardzz14-Mar-13 9:45
memberwizardzz14-Mar-13 9:45 
GeneralRe: Random Project Pin
Matthew Faithfull14-Mar-13 9:50
memberMatthew Faithfull14-Mar-13 9:50 
GeneralRe: Random Project Pin
Jörgen Andersson14-Mar-13 9:54
memberJörgen Andersson14-Mar-13 9:54 
GeneralRe: Random Project Pin
Ravi Bhavnani14-Mar-13 9:59
memberRavi Bhavnani14-Mar-13 9:59 
GeneralRe: Random Project Pin
gavindon14-Mar-13 10:17
membergavindon14-Mar-13 10:17 
QuestionCompletely new to this site, and not sure how to ask question directly to others. Can you help me? Pin
Paga Cession14-Mar-13 9:16
memberPaga 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? Pin
Pete O'Hanlon14-Mar-13 9:19
protectorPete 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? Pin
jschell14-Mar-13 9:19
memberjschell14-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
Web03 | 2.8.150520.1 | Last Updated 25 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid