Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralThe best lambda expression I ever sawmember ProgramFOX2 Feb '13 - 5:55 
var someVar = someList.SelectMany(λ => λ);
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX

GeneralRe: The best lambda expression I ever sawmemberBrisingr Aerowing2 Feb '13 - 7:32 
Laugh | :laugh:
 
And the best part is that actually works!

Bob Dole
The internet is a great way to get on the net.

D'Oh! | :doh: 2.0.82.7292 SP6a

GeneralRe: The best lambda expression I ever sawmemberjoe_j4 Feb '13 - 20:00 
does that even work?
GeneralRe: The best lambda expression I ever sawmember ProgramFOX5 Feb '13 - 6:37 
Yes.
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX

GeneralRe: The best lambda expression I ever sawmemberRobert Rohde4 Feb '13 - 22:10 
Well that makes sense if someList is a list of objects which implement IEnumerable (like List<List<int>>. A bit weird but no horror.
GeneralRe: The best lambda expression I ever sawmemberBrisingr Aerowing5 Feb '13 - 6:58 
Which is why this forum is called "The Weird and The Wonderful"!!

Bob Dole
The internet is a great way to get on the net.

D'Oh! | :doh: 2.0.82.7292 SP6a

GeneralRe: The best lambda expression I ever sawmemberRemi BOURGAREL6 Feb '13 - 21:28 
It's not even weird, if you want to flat a list of lists then that's the best way to do it.
GeneralRe: The best lambda expression I ever sawmemberSortaCore6 Feb '13 - 22:04 
I think one posted in the chatroom a coupla days ago had C++11...
[](){[](){}();}();
... but I suspect he was trolling.
GeneralRe: The best lambda expression I ever sawmemberpeterchen7 Feb '13 - 2:09 
The great thing about C++ is: you can never be sure.

GeneralRe: The best lambda expression I ever sawmemberphwitti7 Feb '13 - 7:08 
xD .. If i'm not mistaken, that is just an empty lambda nested inside another one ... I wonder if one could go on and on like that. -- But in the end it would do nothing (besides probably a stack overflow, if you take it too far^^)

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


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid