Click here to Skip to main content
15,891,629 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WSO FSOW OTD 2015-08-12 Pin
Mark Parity11-Aug-15 22:24
Mark Parity11-Aug-15 22:24 
GeneralRe: WSO FSOW OTD 2015-08-12 Pin
_Maxxx_11-Aug-15 23:58
professional_Maxxx_11-Aug-15 23:58 
GeneralRe: WSO FSOW OTD 2015-08-12 Pin
Mark Parity12-Aug-15 0:14
Mark Parity12-Aug-15 0:14 
GeneralRe: WSO FSOW OTD 2015-08-12 Pin
_Maxxx_12-Aug-15 0:30
professional_Maxxx_12-Aug-15 0:30 
GeneralRe: WSO FSOW OTD 2015-08-12 Pin
Rage11-Aug-15 22:25
professionalRage11-Aug-15 22:25 
GeneralRe: WSO FSOW OTD 2015-08-12 - With added cluiness Pin
OriginalGriff12-Aug-15 0:26
mveOriginalGriff12-Aug-15 0:26 
GeneralRe: WSO FSOW OTD 2015-08-12 - With added cluiness Pin
_Maxxx_12-Aug-15 0:31
professional_Maxxx_12-Aug-15 0:31 
RantThe Laziness of LINQ PinPopular
Chris Maunder11-Aug-15 15:55
cofounderChris Maunder11-Aug-15 15:55 
We've spent 20 years trying to teach developers not to use variables like i,j and k. So why is it that every time I see some LINQ code it's like this:
C#
return source.Select(t => new 
                          {
                              Index = rand.Next(),
                              Value = t 
                          })
             .OrderBy(p => p.Index)
             .Select(p => p.Value);
Is it really that painful to do
C#
return source.Select(item => new 
                          {
                              Index = randomiser.Next(),
                              Value = item
                          })
             .OrderBy(sortItem => sortItem.Index)
             .Select(sortItem => sortItem.Value);
Or am I just too old and grumpy for my own good.
cheers

Chris Maunder

GeneralRe: The Laziness of LINQ Pin
PIEBALDconsult11-Aug-15 16:04
mvePIEBALDconsult11-Aug-15 16:04 
GeneralRe: The Laziness of LINQ Pin
_Maxxx_11-Aug-15 21:06
professional_Maxxx_11-Aug-15 21:06 
GeneralRe: The Laziness of LINQ Pin
James Curran13-Aug-15 3:12
James Curran13-Aug-15 3:12 
GeneralRe: The Laziness of LINQ Pin
_Maxxx_13-Aug-15 10:38
professional_Maxxx_13-Aug-15 10:38 
GeneralRe: The Laziness of LINQ Pin
Weylyn Cadwell12-Aug-15 3:28
Weylyn Cadwell12-Aug-15 3:28 
GeneralRe: The Laziness of LINQ Pin
Rowdy Raider13-Aug-15 5:01
Rowdy Raider13-Aug-15 5:01 
GeneralRe: The Laziness of LINQ Pin
Super Lloyd11-Aug-15 16:11
Super Lloyd11-Aug-15 16:11 
GeneralRe: The Laziness of LINQ Pin
Camilo Reyes11-Aug-15 16:37
professionalCamilo Reyes11-Aug-15 16:37 
GeneralRe: The Laziness of LINQ Pin
codejager13-Aug-15 23:07
codejager13-Aug-15 23:07 
GeneralRe: The Laziness of LINQ Pin
Steve Wellens11-Aug-15 18:10
Steve Wellens11-Aug-15 18:10 
GeneralRe: The Laziness of LINQ PinPopular
ImHere2Learn11-Aug-15 18:41
professionalImHere2Learn11-Aug-15 18:41 
GeneralRe: The Laziness of LINQ Pin
Dominic Burford11-Aug-15 21:32
professionalDominic Burford11-Aug-15 21:32 
GeneralRe: The Laziness of LINQ Pin
OriginalGriff11-Aug-15 22:09
mveOriginalGriff11-Aug-15 22:09 
GeneralRe: The Laziness of LINQ Pin
Rowdy Raider13-Aug-15 4:54
Rowdy Raider13-Aug-15 4:54 
GeneralRe: The Laziness of LINQ Pin
codejager13-Aug-15 23:05
codejager13-Aug-15 23:05 
GeneralRe: The Laziness of LINQ Pin
PIEBALDconsult13-Aug-15 6:07
mvePIEBALDconsult13-Aug-15 6:07 
GeneralRe: The Laziness of LINQ Pin
Steve Wellens12-Aug-15 2:57
Steve Wellens12-Aug-15 2:57 

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

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