|
I hardly ever need to. Sometimes a I need an IN, but rarely an OR. And I'm not saying remove AND and OR, just make any additional WHEREs act as ANDs.
|
|
|
|
|
When I'm testing out filters I'm usually starting with WHERE 1=1 and add all conditions with an AND.
But I can see what you're getting at.
<edit>Just as you answered to Madmyche</edit>
|
|
|
|
|
Don't take them for granted. Making them read code and all.
|
|
|
|
|
MadMyche wrote: I think she understands now
or:
(select bacon).take(all)
Marc
Latest Article - Merkle Trees
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
I would throw an Flavor Overflow Exception at pound #10 error
|
|
|
|
|
That's why it's called programming and not laymen language.
|
|
|
|
|
Girlfriend 1, MadMyche 0
Get ready to pay up.
Peter Wasser
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts." - Bertrand Russell
|
|
|
|
|
Looks to me just a simple matter of different syntax. One does not appear to be any more succinct or easier to read than the other.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
DavidCrow wrote: One does not appear to be any more succinct One appears blatantly more succinct.
Swap the simple example for a real query and you'll be seeing complete proza.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Don't use that convoluted Linq syntax and instead just use the static methods. Code looks way cleaner that way.
|
|
|
|
|
Why Type = 'Produce' became item.Type.Contains("Produce") ?
Shouldn't it become item.Type == "Produce" ?
|
|
|
|
|
(singing) "America. Russia. Spain and France..."
I've always wanted to be a Country singer!
|
|
|
|
|
It's not spam.
It's not trolling.
It's KSS.
Still, there must surely be a way to report you for this and induce punishment.
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 |
|
|
|
|
|
KSS?! Not a country I've heard of...
|
|
|
|
|
Nice. So bad it made me want to read a few stories from the Callahan's Series by Spider Robinson.
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|
|
|
Funny! I felt this way the other day whilst my colleague presented a demo for a fairly new web application...customer asks, 'can it do x,y, and z?' Without hesitation, my colleague answered 'yes, yes, and yes...it can give you any statistics you need.' Meanwhile, I'm thinking 'no, no it can't! It was never designed for that. What you are talking about is a new project altogether!' Once again, I will have to backup that alligator mouth!
"Go forth into the source" - Neal Morse
|
|
|
|
|
I think I know which video you mean, and, yes, it's very good.
|
|
|
|
|
|
Dunno, still prefer the young Kirk's solution to the Kobayashi Maru exercise as the benchmark.
btw: If you haven't figured it out it's the programmer/engineer that is the real idiot,
perpendicular green lines in red & transparent ink is not that hard.
Example solution in black (too lazy to play colors):
1. green lines
2. green lines
3. green lines
4. green lines
...
Always give the customer what they ask for, even if it's not what they expect, because then:
1. they have to pay for it (contract fulfilled - of course you wrote down what they said and they signed it and then
2. you get to charge them again to do it as what they wanted (best not to iterate, less chance of new work from them)
Sin tack
the any key okay
|
|
|
|
|
And liberal use of The Wally Reflector[^]
"I hear your description, but a quick sketch from you might help me to better visualize your concept to your satisfaction."
|
|
|
|
|
Oi I want to know what was amusing/wrong with Wally's response. I use that all the time.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Indeed, the Wally Reflector is the only way to remain sane.
|
|
|
|
|
Actually, I was told a long time ago (and far away) to never call myself an expert:
An 'ex' is a 'has-been', and a 'spurt' is a drip under pressure.
Anyone who cannot cope with mathematics is not fully human. At best he is a tolerable subhuman who has learned to wear shoes, bathe, and not make messes in the house. - Lazarus Long
|
|
|
|
|
It is not important what you do, it is important how you sell it. An expert does not work 40 hours a week, he works 10 hours a week and convince the management that the work he had done could not be done in less than 40 hours a week.
|
|
|
|