Click here to Skip to main content
15,903,854 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
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 
You said "for vs LINQ", I show you obvious case where you're not right. If you wanna just discuss how long LINQ can be - it's different question.

You don't understand word "materialized". If you use "for", you have to create physical list, where you keep your objects. In case of LINQ you have Enumerator, which will not take any object until you ask! It's important difference when you have billion objects, where half of 'em match your query. Enumerator just pass 'em one-by-one (keeping memory consumption low exactly for ONE ELEMENT), while your "for" takes all necessary memory at once.

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 
GeneralRe: Using IEnumerable nonsense for everything Pin
Dan Sutton18-Jul-16 5:55
Dan Sutton18-Jul-16 5:55 
GeneralRe: Using IEnumerable nonsense for everything Pin
Robert Blair18-Jul-16 20:25
Robert Blair18-Jul-16 20:25 
GeneralThanks nintendo Pin
The pompey16-Jul-16 4:52
The pompey16-Jul-16 4:52 
GeneralRe: Thanks nintendo Pin
PradeepGaggandeep16-Jul-16 12:13
PradeepGaggandeep16-Jul-16 12:13 
GeneralRe: Thanks nintendo Pin
Mycroft Holmes16-Jul-16 14:38
professionalMycroft Holmes16-Jul-16 14:38 
GeneralRe: Thanks nintendo Pin
Mark_Wallace17-Jul-16 1:27
Mark_Wallace17-Jul-16 1:27 
GeneralRe: Thanks nintendo Pin
  Forogar  17-Jul-16 3:26
professional  Forogar  17-Jul-16 3:26 
GeneralRe: Thanks nintendo Pin
Sander Rossel17-Jul-16 0:10
professionalSander Rossel17-Jul-16 0:10 
GeneralRe: Thanks nintendo Pin
Daniel Pfeffer17-Jul-16 0:54
professionalDaniel Pfeffer17-Jul-16 0:54 
GeneralRe: Thanks nintendo Pin
Sander Rossel17-Jul-16 1:08
professionalSander Rossel17-Jul-16 1:08 
GeneralRe: Thanks nintendo Pin
Mark_Wallace17-Jul-16 10:33
Mark_Wallace17-Jul-16 10:33 
GeneralOK, WTF? Pin
Brisingr Aerowing15-Jul-16 15:30
professionalBrisingr Aerowing15-Jul-16 15:30 

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.