Click here to Skip to main content
15,899,935 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: Using IEnumerable nonsense for everything Pin
Sander Rossel17-Jul-16 21:19
professionalSander Rossel17-Jul-16 21:19 
GeneralRe: Using IEnumerable nonsense for everything Pin
Gaston Verelst17-Jul-16 21:19
Gaston Verelst17-Jul-16 21:19 
GeneralRe: Using IEnumerable nonsense for everything Pin
Sander Rossel17-Jul-16 21:22
professionalSander Rossel17-Jul-16 21:22 
GeneralRe: Using IEnumerable nonsense for everything Pin
Mladen Janković17-Jul-16 0:13
Mladen Janković17-Jul-16 0:13 
GeneralRe: Using IEnumerable nonsense for everything Pin
Mark_Wallace17-Jul-16 10:30
Mark_Wallace17-Jul-16 10:30 
GeneralRe: Using IEnumerable nonsense for everything Pin
Yet Another XCoder17-Jul-16 20:29
Yet Another XCoder17-Jul-16 20:29 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot18-Jul-16 0:51
harold aptroot18-Jul-16 0:51 
GeneralRe: Using IEnumerable nonsense for everything Pin
irneb17-Jul-16 20:42
irneb17-Jul-16 20:42 
The "idea" isn't bad per say ... just that it tends to be taken too far.

Personally I try to keep such Linq chains down ... at most two dots in such a call (at least that being a quick-n-dirty rule-of-thumb). Especially as a normal for/foreach tends to be more efficient too, your sample is quite litterally performing 3 loops where one for loop would have sufficed.

The only time I feel such long chain of Linq extension methods make sense is if using the Linq SQL syntax instead. Though it's still not very efficient, actually less so than the pseudo FP style.

GeneralRe: Using IEnumerable nonsense for everything Pin
Sentenryu18-Jul-16 0:18
Sentenryu18-Jul-16 0:18 
GeneralRe: Using IEnumerable nonsense for everything Pin
irneb18-Jul-16 9:36
irneb18-Jul-16 9:36 
GeneralRe: Using IEnumerable nonsense for everything Pin
irneb18-Jul-16 9:51
irneb18-Jul-16 9:51 
GeneralRe: Using IEnumerable nonsense for everything Pin
HerrGilbert17-Jul-16 20:48
professionalHerrGilbert17-Jul-16 20:48 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot18-Jul-16 0:53
harold aptroot18-Jul-16 0:53 
GeneralRe: Using IEnumerable nonsense for everything Pin
Aunebakk17-Jul-16 22:49
Aunebakk17-Jul-16 22:49 
GeneralRe: Using IEnumerable nonsense for everything Pin
maze318-Jul-16 2:18
professionalmaze318-Jul-16 2:18 
GeneralRe: Using IEnumerable nonsense for everything Pin
Jeroen_R18-Jul-16 3:38
Jeroen_R18-Jul-16 3:38 
GeneralStop coding against the implementation: code against the interface Pin
Chris Maunder18-Jul-16 4:41
cofounderChris Maunder18-Jul-16 4:41 
GeneralRe: Using IEnumerable nonsense for everything Pin
Thornik18-Jul-16 5:11
Thornik18-Jul-16 5:11 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot18-Jul-16 5:29
harold aptroot18-Jul-16 5:29 
GeneralRe: Using IEnumerable nonsense for everything Pin
Thornik18-Jul-16 6:02
Thornik18-Jul-16 6:02 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot18-Jul-16 6:11
harold aptroot18-Jul-16 6:11 
GeneralRe: Using IEnumerable nonsense for everything Pin
Thornik18-Jul-16 6:26
Thornik18-Jul-16 6:26 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot18-Jul-16 6:29
harold aptroot18-Jul-16 6:29 
PraiseRe: Using IEnumerable nonsense for everything Pin
Matt McGuire18-Jul-16 5:40
professionalMatt McGuire18-Jul-16 5:40 
GeneralRe: Using IEnumerable nonsense for everything Pin
Gerry Schmitz18-Jul-16 5:41
mveGerry Schmitz18-Jul-16 5:41 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   479 votes