You do realize the thread title is an oxymoron, right?
jmucchiello
@jmucchiello
Best posts made by jmucchiello
Latest posts made by jmucchiello
-
RE: Productivity Meetings
-
RE: Change the software, but don't let anyone know we changed it
I'd still like to know what the changes are and why the "vendor" won't notice them?
Of course I also wonder how the boss will know you've done it.
"All done, boss."
"So fast"
"Sure, check their server. The file size and date haven't changed, have they?"
-
RE: The Switch Boolean
What if the boolean variable is nullable? Does VB.NET support nullable booleans like C# does?
-
RE: C# ? isn't good enough
C'mon, the real problem here is it encourages weird side effects.
The differece between these two constructs is not always obvious:
s = IIF(x==y, FuncWithSideEffectThatReturnsAString1(), FuncWithSideEffectThatReturnsAString2());
s = x == y ? FuncWithSideEffectThatReturnsAString1() : FuncWithSideEffectThatReturnsAString2();
For the first one both side effects take place. And even if you avoid side effects like a good and proper software engineer, you are still calling both functions and only using the result from one of them. The second line avoid wasting time running both function.
-
RE: C++ flow control - did I miss something?
There is exactly one "okay" use case for that construct. Test code. When you have a suite of test functions that are "mostly" independent, having a test program with a main() with that loop can be useful for selectively calling the functions. The loop min value and max value should be variables that are set from command line and default to the entire list of cases. So in the general case you run the program with no parameters and all the test functions run. When you are having trouble with test function 12, you run the program setting the min and max value of i to 12 and it just runs function 12.
Of course, since I'm talking about test code, you should never see that construct in your production code.
-
RE: How many characters?
@random.next said:
@MiffTheFox said:
No no, it must be == "characters", since min(term) and max(term) both have to be "characters".Obviously, the term must be >= "characters" and
You are assuming that characters is scalar. It could be a range object in which case min(characters) <= max(characters). I don't see the problem. :-)
-
RE: It only fails in production.
Isn't the TRWTF here that he's asking for help on a website devoted to laughing at others' stupidity? There must hundreds of more helpful website where this kind of question would be treated seriously. Or am I missing the fact this is some kind of puzzle?