Click here to Skip to main content
15,903,856 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
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 
We should be using that syntax because it's cleaner and more readable than lots of indented loops.

Our problems (at this point) are
  1. It's inefficient
  2. There's not enough good guidance on not doing dumb things (ToArray etc being case in point).
EF does a helluva job converting LINQ to SQL so what would be interesting is if there was a preprocesser that went through the whole LINQ chain, worked out what was really happening, then optimised (ie not did a bunch of stuff, parallelised other stuff, vectorised some stuff etc) and made it more efficient than foreach loops (which themselves are not efficient).

We shouldn't have a million devs optimising the same code. We should be able to express the code in elegant syntax and have the tools do the optimisation.
cheers
Chris Maunder

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 
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 

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.