|
W∴ Balboos wrote: inventive EU mind
He's British; they do things their way.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
|
W∴ Balboos wrote: In US, bars (i.e., pubs) usually are associated with potato chips. I can believe that, because no-one in their right mind would associate them with beer.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Yup. I heard you can get good beer in the Netherlands . . . Sam Adams, Saranac, and Dog Fish Head[^], for example.
Oh - wait - you're lucky to be able to import these from the US!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
W∴ Balboos wrote: I heard you can get good beer in the Netherlands You heard wrong.
"Gnat's pee" would be a better description than "good".
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Mark_Wallace wrote: Gnat's pee You get an up-vote for giving me a new expression when I share my comments at the dinner table.
Do you have another level down for stuff like Coors, 'Bud', &etc. ?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
You should ask Australian members for "opinion-based" names for foreign beers -- just ignore everything they say about English beer.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Those pub peanuts are tough!
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
i have an Entity and want save a 2d array like below:
<pre lang="C#">class Location
{
public int LocationId { get; set; }
public string LocationName { get; set; }
public int[,] Locations{ get; set; }
}</pre>
i dont khow what should i do!!
|
|
|
|
|
There is a link at the top of this pages for programming questions. Please try posting it there, and you well get a better result. This part is just a lounge for general discussions and not specific programming questions.
Cheers
|
|
|
|
|
i don't know where is it!!!!!???
|
|
|
|
|
|
|
You're so NICE! Very commendable.
Marc
|
|
|
|
|
There's no reason not to be, just a honest mistake.
|
|
|
|
|
Good to see polite folks on tech forums, getting to be a rarity these days
|
|
|
|
|
Thanks
|
|
|
|
|
Yeah, no kidding
|
|
|
|
|
You've probably seen this style if you're done anything with C# after 2007 or so.
someStuff.Where(c => c != What).Select(d => d + The).Foreach(e => Hell(e));
Instead of, you know, a plain old for loop with an if in it and so on. Or maybe foreach if you want to be fancy.
So, now we have nearly a decade of experience with this, can we finally settle this question:
Is this style cancer?
I still think it is, and the retort "you just have to get used to it" isn't going to work any more. I file this firmly under "stupid one-liner 'clever' code with no benefits to compensate". Yes, I've argued in the past that "clever code" isn't necessarily bad, and I'll keep saying that - there's a time and a place for it. But not if you're just trying to be cute. "Oh look at me, I put everything on one line, +1 nerd points for me"
And this is even worse. It's not just cute with no benefits to compensate, it's cute and harder to read.
Side question, why is this style popular?
|
|
|
|
|
harold aptroot wrote: Is this style cancer?
Yes.
Many fans of that style don't realize how many times the data gets copied and iterated when they do nonsense like that.
What really irks me is the near-constant use of ToList or ToArray ; those are definitely cries for help.
Even a simple foreach should generally be avoided in situations where a for will perform at least as well.
|
|
|
|
|
PIEBALDconsult wrote:
What really irks me is the near-constant use of ToList or ToArray ; those are definitely cries for help.
Depends, if you are getting it off EF or OData, sometimes you want to do in-memory processing. Specially within services.
|
|
|
|
|
Uh huh, so why can't you?
|
|
|
|
|
Uhm, I thought you said any use of ToArray is a cry for help?
|
|
|
|
|