News for hackers. Stuff that matters.
Re:System.Linq.Parallel Is Now Open Source by schrodinger on Wednesday December 03, 2014 @05:33AM (#8692922)
No one uses the sql esque language? Where do you get that idea from? I've been a c# dev for 7 years and have seen plenty. For complicate queries it's significantly more compact (and readable, in my opinion).

And using IEnumerable was probably making the point that it didn't have to be a list, it could be anything implementing that interface.

Re:System.Linq.Parallel Is Now Open Source by mattmanser on Wednesday December 03, 2014 @06:24AM (#8693083)
Ach, come on, the briefest trawl through recent SO questions and you'll see the % of DSLs has dropped to a small amount since it launched.

Downvoters be damned, they know not what they talk about. ultimape is clearly not a C# developer.

Re:System.Linq.Parallel Is Now Open Source by chton on Wednesday December 03, 2014 @07:44AM (#8693397)
I know people with 10 years experience with the language that still use the DSL for simple cases.

There is a lot of discussion about the usage of var, and ultimape's non-usage of it in his example is a personal preference, as well as making sense in an educational post.

And lastly, I think you'll find many developers, young and old alike, use x, y and z as their lambda parameters. I do too. It comes from the mathematical function origin of the syntax. In most early examples when it was introduced, and loads of educational materials now, lambda syntax is still presented akin to a mathematical formula:

x => x+1

In that context, using x makes a lot more sense than p, and has stuck around as a habit. It's a style thing, and everybody has their own style. You don't get to claim superior experience or skill based on a 2 line snippet that doesn't match your style.

And as an aside: you're not being downvoted by "the ignorant masses". You're being downvoted for being confrontational and not contributing to a conversation about the topic, which is Parallel LINQ and not coding style.

Re:System.Linq.Parallel Is Now Open Source by doodpants on Wednesday December 03, 2014 @09:56AM (#8694002)
"Ach"? "Trawl"? No one uses those words. You're clearly not an English speaker.
Re:System.Linq.Parallel Is Now Open Source by smcl on Wednesday December 03, 2014 @11:37AM (#8694658)
They're reasonably prevalent in Scotland
Re:System.Linq.Parallel Is Now Open Source by kbenson on Wednesday December 03, 2014 @12:21PM (#8694980)
Tch, come on, the briefest trawl through recent blog posts and you'll see the % of Scottish idioms has dropped to a small amount since people have been blogging. Downvoters be damned, they know not what they talk about. mattmanser is clearly not an English speaker.
Re:System.Linq.Parallel Is Now Open Source by talles on Wednesday December 03, 2014 @07:50AM (#8693418)
For simpler stuff, ya, DSL is not handy at all. But for the complex ones, shame on you if you don't DSL it. And don't come with percentage of SO questions bullshit, that's bad programmer excuse.

For longer queries, that little DSL syntax it's a bless. It's way more pleasant to read, write or think about it than the alternative.

Ah, and since you care so much about it, I've been developing in C# for freaking years that I don't bother to sum it up anymore.

Re:System.Linq.Parallel Is Now Open Source by S_A_P on Wednesday December 03, 2014 @10:30AM (#8694194)
SO is as much about making yourself look as smart as possible while still needing help. I would bet half of the folks submitting questions over linq use resharper to "nerdify" their code before they submit it...
Re:System.Linq.Parallel Is Now Open Source by darklajid on Wednesday December 03, 2014 @01:51PM (#8695606)
Not a fan of the DSL myself, but plenty of people in this C# shop here use it. Plus, replacing 'let' becomes ugly using methods rather quickly, for example.