Click here to Skip to main content
15,881,938 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: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:29
mvahoney the codewitch9-Feb-21 2:29 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:39
MeziLu9-Feb-21 2:39 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:47
mvahoney the codewitch9-Feb-21 2:47 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:56
MeziLu9-Feb-21 2:56 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 3:05
MeziLu9-Feb-21 3:05 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:52
MeziLu9-Feb-21 2:52 
GeneralRe: Unpopular opinions: LINQ Pin
Member 140926059-Feb-21 2:31
Member 140926059-Feb-21 2:31 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:39
mvahoney the codewitch9-Feb-21 2:39 
I feel justified in making the general observations I made about linq.

And my comment wasn't just about performance. It was also about cognitive load in terms of understanding what your code is doing as well.

And performance considerations are indeed important *if* they influence architecture, at which point potential perf problems are best identified at design time rather than after you've already architected something that will not perform to requirements.

Using LINQ to implement all of your functional-programming style operations is a "Bad Idea(TM)" when you're doing loads of heavy iteration, like building parser or scanner tables. Most pure functional languages like Haskell handle iteration a lot better than LINQ if nothing else than for the fact that it's a first class operation. Enumerators in .NET were designed not as first class operations but built on top of the existing operations in .NET, and practically, that comes with performance considerations, like all the object creation it does.

If you don't believe me, write a LALR(1) parser generator using LINQ and then one without. As long as you know what you're doing latter will be at least twice as fast.
Real programmers use butterflies

GeneralRe: Unpopular opinions: LINQ Pin
obermd9-Feb-21 3:08
obermd9-Feb-21 3:08 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu10-Feb-21 13:55
MeziLu10-Feb-21 13:55 
GeneralRe: Unpopular opinions: LINQ Pin
TnTinMn9-Feb-21 3:43
TnTinMn9-Feb-21 3:43 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 3:54
mvahoney the codewitch9-Feb-21 3:54 
GeneralRe: Unpopular opinions: LINQ Pin
Bruce Greene9-Feb-21 5:54
Bruce Greene9-Feb-21 5:54 
GeneralRe: Unpopular opinions: LINQ Pin
Member 129243129-Feb-21 8:20
Member 129243129-Feb-21 8:20 
GeneralRe: Unpopular opinions: LINQ Pin
Eddy Vluggen9-Feb-21 8:56
professionalEddy Vluggen9-Feb-21 8:56 
GeneralRe: Unpopular opinions: LINQ Pin
Bruce Patin10-Feb-21 4:23
Bruce Patin10-Feb-21 4:23 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch10-Feb-21 4:34
mvahoney the codewitch10-Feb-21 4:34 
Generalcorrection: Microsoft is a virus. They wreck every software tool they try to re-brand as a Microsoft product. Pin
Member 117206818-Feb-21 6:03
Member 117206818-Feb-21 6:03 
GeneralRe: correction: Microsoft is a virus. They wreck every software tool they try to re-brand as a Microsoft product. Pin
User 149368538-Feb-21 6:27
User 149368538-Feb-21 6:27 
GeneralRe: correction: Microsoft is a virus. They wreck every software tool they try to re-brand as a Microsoft product. Pin
dandy729-Feb-21 4:00
dandy729-Feb-21 4:00 
GeneralRe: correction: Microsoft isn't a virus. Pin
OriginalGriff8-Feb-21 6:26
mveOriginalGriff8-Feb-21 6:26 
GeneralRe: correction: Microsoft isn't a virus. Pin
honey the codewitch8-Feb-21 6:33
mvahoney the codewitch8-Feb-21 6:33 
GeneralRe: correction: Microsoft isn't a virus. Pin
User 149368538-Feb-21 7:01
User 149368538-Feb-21 7:01 
GeneralRe: correction: Microsoft isn't a virus. Pin
honey the codewitch8-Feb-21 8:09
mvahoney the codewitch8-Feb-21 8:09 
GeneralRe: correction: Microsoft isn't a virus. Pin
User 1493685315-Feb-21 11:51
User 1493685315-Feb-21 11:51 

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.