Click here to Skip to main content
15,886,199 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: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 
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 
Actually, I would discourage the use of var and encourage creating a class up front. This forces you to design what you want up front, which not only makes designing easier, but more importantly, you can serialize the class (with its groups, lists, etc) to an xml file and review it to make sure you are getting what you want. Var, IMHO, is a terrible way to go, especially for long term maintenance should something unexpected pop up. Serializing a class is extremely useful, especially for groupings, joins, and select many, etc.

The tree view like structure in a serialized xml file is incredible to look at for complicated solutions.

Guess another thing I am saying is that using var promotes backwards design. Create the Linq and hope for the best vs know what you want and design Linq to get you there, using serialization to test.

Further, having the class greatly improves readability, a concern some have expressed. It’s a lot easier to know what Linq is doing if you can see what it produces.

Regarding speed: I use PLinq for Next Generation Sequencing of the human genome. Six billion data points. It is plenty fast. Same goes for my CODIS search engine. CODIS is what you see on crime lab TV shows: here is the DNA profile from a crime scene. Are there any matches? PLinq was a godsend for that complicated process and is literally a million fold faster than Sql. Example: a 47 minute Sql search was 18 seconds for PLinq.
MeziLu


modified 11-Feb-21 10:07am.

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 
GeneralRe: correction: Microsoft is a virus. They wreck every software tool they try to re-brand as a Microsoft product. Pin
W Balboos, GHB8-Feb-21 7:25
W Balboos, GHB8-Feb-21 7:25 
GeneralRe: correction: Microsoft is a virus. They wreck every software tool they try to re-brand as a Microsoft product. Pin
charlieg8-Feb-21 15:31
charlieg8-Feb-21 15:31 

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.