|
Shouldn't that create a compiler error or at least warning as your function doesn't explicitly return a value?
|
|
|
|
|
It gives you a warning:
BC42353 Function 'getActivityMarketValue' doesn't return a value on all code paths. Are you missing a 'Return' statement?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
At least in C# it tells you when you're supposed to return a value.
I don't suppose this would have been caught by turning on VB's "strict" option?
Of course, the last time I did that to some VB code I inherited, I got thousands of errors.
Marc
|
|
|
|
|
I think "Option Strict" would pick that up alright.
But I think the same rule applies to coding as parenting - if the child is already 5 years old it is way too late to start getting strict
|
|
|
|
|
Just got this today after opening a Razor page:
Predefined type 'System.String' was not defined or imported.
Whaaaa? Predefined...is not...defined?
|
|
|
|
|
Thank you for beta-testing the software
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
I got a message box with an OK button, an error icon, and the text and caption "Boink?" when I tried to install an extension about a month ago. VS promptly crashed with a NullReferenceException when I clicked the OK button. It hasn't happened since.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
I get all manner of error messages in VS2015 - none of which are actually errors
|
|
|
|
|
Are you crazy testing the actual version of a Software from M$?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Quote: Your password should contain at least 6 characters
If you're going to require it; don't say "should", say "must".
|
|
|
|
|
I should be home after 3 pints....
|
|
|
|
|
Your password should contain at least 6 characters, otherwise it won't be accepted.
However, you CAN type a shorter password, it's just that it'll be rejected.
|
|
|
|
|
From the requirements document: "The password entered by the user should be rejected if it does not contain at least six characters."
If I received that requirement from my boss, I would make darn sure that the password is rejected. I don't think I would randomly reject some and not others.
How about "You shouldn't break the speed limit"? Now, if you were being chased by a tyrannosaurus rex, I think the judge would (should?) let you off the hook.
hatfok
King Yiddum's Castle
Pegasus Galaxy
|
|
|
|
|
If I receive a requirement document from the boss, I just do what I want. It usually has an "optional requirements" section...
|
|
|
|
|
Well then, what exactly do you do when they are not in the "optional" section?
Please enlighten us! I'll check, but I'm sure I did not mention optional requirements.
hatfok
King Yiddum's Castle
Pegasus Galaxy
|
|
|
|
|
Do I need to buy a sarcasm sign?
|
|
|
|
|
No, but if you do, would you pick one up for me as well?
hatfok
King Yiddum's Castle
Pegasus Galaxy
|
|
|
|
|
WiganLatics wrote: Do I need to buy a sarcasm sign?
Yes, you really should
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Teal'c says "Indeed"!
hatfok
King Yiddum's Castle
Pegasus Galaxy
|
|
|
|
|
Dang they done must it up!
New version: WinHeist Version Tequila, the nigh time, snuffly, sneezing, how the hell did I end up on the bathroom floor medicine.
|
|
|
|
|
All the 'should haves' happened in a perfect parallel universe. Be brave, stay classy, stay true to this universe, enter less than 6 characters (also try special characters and Chinese unicode or just empty password).
|
|
|
|
|
I always enjoyed being an OpenVMS System Manager because I could ignore all the password requirements and make my password whatever I wanted.
|
|
|
|
|
Exactly. That's why I loved my Atari 800XL. I didn't even know about passwords at that time.
|
|
|
|
|
You should use must when you really, really want something.
Or should it be:
You must use must when you really, really want something.
Or must it be?
Should be or not should be. That should be the question.
Just use the word 'should' as your password. It has six characters.
Kitty at my foot and I waAAAant to touch it...
|
|
|
|