Click here to Skip to main content
15,898,893 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 0:08
professionalSander Rossel17-Jul-16 0:08 
GeneralRe: Using IEnumerable nonsense for everything Pin
Ravi Bhavnani17-Jul-16 3:34
professionalRavi Bhavnani17-Jul-16 3:34 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot17-Jul-16 4:35
harold aptroot17-Jul-16 4:35 
GeneralRe: Using IEnumerable nonsense for everything Pin
BillWoodruff17-Jul-16 6:29
professionalBillWoodruff17-Jul-16 6:29 
GeneralRe: Using IEnumerable nonsense for everything Pin
Marc Clifton17-Jul-16 8:20
mvaMarc Clifton17-Jul-16 8:20 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot17-Jul-16 10:49
harold aptroot17-Jul-16 10:49 
GeneralRe: Using IEnumerable nonsense for everything Pin
Jono Stewart18-Jul-16 20:30
Jono Stewart18-Jul-16 20:30 
GeneralRe: Using IEnumerable nonsense for everything Pin
Clifford Nelson16-Jul-16 18:31
Clifford Nelson16-Jul-16 18:31 
I have to admit that I hate the more sql form of LINQ and find it extremely unreadable even though I am pretty comfortable with SQL. As far as debugging, I have to agree that it is much harder to debug, but it is also true that a long equation is harder to debug than breaking it up into pieces. I have had times in the past when I was having difficulty with a LINQ statement and did break it up, just like on an equation that was giving me problems. However, generally, I find that my LINQ statements are a lot more reliable than when I try to do the same thing without LINQ. I am of course talking about the simple case that you have. Personally I find the LINQ statement clearer then the foreach statement and the if statements. Also, I like to be able to see as much flow of the class and method as I can when looking at them on the screen, so I prefer much more compact code, but that is probably because I am more the type that wants to see the forest, and not focus on the trees. I can understand the complexity concern on more complex LINQ statements, but in order to reproduce the same thing, like the capability of joins, I would need a lot of code, and much easier to introduce errors.

In other words I like LINQ, and to me it is where programming languages are going. It provides an awful lot of power, and saves a lot of programming. If we took your approach to the extreme we would still be using assembly language. After all is in not easier to debug

b = 6
a = b / 2
c = b * a + 4

Would you also advocate getting rid of SQL. SQL is horrible to debug, and I think worse than using extension methods, but you are basically advocating the elimination of SQL. It is also extremely difficult to understand. I have worked with some SQL that goes on for pages, it was miserable.
GeneralRe: Using IEnumerable nonsense for everything Pin
Sander Rossel17-Jul-16 0:01
professionalSander Rossel17-Jul-16 0:01 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot17-Jul-16 1:35
harold aptroot17-Jul-16 1:35 
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 
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 

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