Useful error messages.
-
And the struct WINDOW ends up being scoped to the function declaration only, so it's impossible call the function without triggering the warning.
I haven't tried, but you can probably pass a
void *
to the function without triggering the warning.
-
Not a "useful" error message, butt a "useful" XMLDoc summary.
Apparently, in the age of intellisense and other tools for working out the context of a particular method call, this is what's deemed important to put in the section for describing WTF this stuff does:
This is all over the code base. Sometimes there's a basic description as well, but the called from pattern is everywhere
-
Looks like they mispeled<that's right bitches> "Dispatch," too.
-
It's an archaic but valid spelling, and is how the third party software this plugs into spells it. Still looks wrong to me after 6 months, though
-
Better than having methods that might or might not be used anywhere and that might or might not do the entirely wrong thing and 95% of which don't have any kind of comment at all ...
-
When trying to use NVIDIA Prime on linux (some time ago):
Note: It's impossible to resize the message box.
It may work in recent versions - but I still don't want to use it.
-
Computer says “No!”
-
There is no exclamation mark. That would be too much excitement for Carol.
-
Am I on dropbox pro or not?
-
I don’t have a screenshot because I forgot to make one, but yesterday I got a very useful message that certainly felt like an error while using Numbers on iOS. I have no idea what caused it to come up, but twice within maybe 15 minutes it gave me a dialog box that just said “Undo” with buttons “Cancel” and “Undo”. No other text, no explanatory message, nothing. And no, I hadn’t just pressed the Undo button.
-
I get the same thing on iOS when I set my iPad down. I think it's a general "undo" prompted by the device being "shaken," and it may say what you want to undo. For me, it prompts "Undo Typing" when I'm in Safari.
-
Fish says yes.
-
I think it's a general "undo" prompted by the device being "shaken,"
It's not really an iPad; it's an Etch A Sketch.
-
You may be onto something … I just tried it, and yes, shaking the device back and forth brings up the dialog, both in Numbers and Safari. I’d never seen it before and didn’t know shaking means “undo”, so not an error after all, but certainly non-intuitive behaviour if you ask me.
-
-
I prefer any one of the hundreds of real dice I own :)
-
hundreds of real dice
But surely that iDevice costs more than those real ones, and is thus inherently superior…
-
That’s just given me an idea: write a diceroller app and charge more for it than any other similar app on the app store.
-
That’s just given me an idea: write a diceroller app and charge more for it than any other similar app on the app store.
If it costs more, it must be better!
-
Exactly my idea!
-
I'm kinda amused you can still get the Solitaire effect on Windows 7. Limited to the VS2010 panel, but still.
-
Why did you turn off DWM and Aero Glass? That would have easily prevented this.
-
Why did you turn off DWM and Aero Glass?
Company group policy. No, I don't get it either.
That would have easily prevented this.
The dialog soup, yes. VS2010 shitting itself (no, you can't dismiss that dialog no matter how hard you try, it just comes back)? Unlikely.
-
Company group policy. No, I don't get it either.
There's probably one idiot who still thinks the chrome slows down your CPU.
-
-
Does it actually matter how helpful or detailed the error message is? I've literally had tickets come across my desk for an error message that said "Database server at db-qa.company.local is unreachable. IF THIS IS A DEV OR QA SERVER, MAKE SURE YOU ARE CONNECTED TO THE VPN"
Guess what the problem was. Go ahead and guess.
-
Their graphics driver was out of date?
-
Does it actually matter how helpful or detailed the error message is? I've literally had tickets come across my desk for an error message that said "Database server at db-qa.company.local is unreachable. IF THIS IS A DEV OR QA SERVER, MAKE SURE YOU ARE CONNECTED TO THE VPN"
Guess what the problem was. Go ahead and guess.
And when that ticket comes across from a LAN user?
-
Guess what the problem was. Go ahead and guess.
They'd uninstalled their network driver? :D
-
-
The production server was misconfigured.
-
Guess what the problem was. Go ahead and guess.
The Presidents Daughter was taken unexpectedly sick ('tho the water cooler gossip says it was more of a case of "expecting"). So at the drop of a Table, a Temp was substituted.
-
-
-
Guess what the problem was. Go ahead and guess.
Attempting to use AD credentials with SQL authentication ?
Filed Under: Error: 18456, Severity 14, State 6
-
no this is the worst of comments, comments that stale. If that function is only going to be called from one other place (not for code reuse) it should be private, and the comment should specify no one should touch this, but not mention the stupid
Called from
tag because a sane developer may later decide to renameDespatch
toDispatch
. When you rename the method, compiler helps correcting everywhere that the old name exists but not the comment, and it stales. Using an archaic spelling is another WTF that only results in distraction, no one needs to learn spelling when reviewing the code.
-
shaking means “undo”
Seems like a pretty silly thing for shaking to do, but not as bad as Google Maps, where shaking the device is for giving feedback. I want to see what happens when you're using navigation along a really bumpy road (worst I've had is my phone falling over while driving and getting the feedback prompt)
but not mention the stupid Called from tag because a sane developer may later decide to rename Despatch to Dispatch
Or start calling it from 10 other methods, as has happened in several cases I've found today
-
Microsoft has guidelines for error mesages It's even includes examples of what not to do.
-
Seems like a pretty silly thing for shaking to do
I think it’s supposed to mimic an Etch A Sketch: “I want to get rid of this — shake the device”. Main problem with it in that respect is that I hadn’t made that connection until I verified that shaking is “undo”, probably because the equivalents to Etch A Sketches that I used to play with a great many years ago had a “wipe” handle that you moved from one side to the other to clear your drawing. When I mentioned the “shake = undo” thing to someone who had witnessed the supposed error message, his response was along the lines of, “What, no button you slide along the bottom?”As so often, it’s cultural assumptions that catch users out.
-
When you rename the method, compiler helps correcting everywhere that the old name exists but not the comment, and it stales.
Settings/Appearance/Results vary by IDE.
-
This means you have to use references in way that your IDE (and not maybe your colleague's) understands. However, any good IDE (that is worth being named an IDE) has
Find Usage
so no need to comment it.
-
This means you have to use references in way that your IDE (and not maybe your colleague's) understands.
Unless the language you are using makes automatic refactoring difficult your colleagues should have no problem understanding the same references that the IDE uses.However, any good IDE (that is worth being named an IDE) has Find Usage so no need to comment it.
Exactly. Thesearch in comments
feature is there just in case you need it. You shouldn't need it most of the time, but it is there.
-
Those are really good recommendations. I wish they'd follow them more themselves.
-
Well, what did I expect.
(for the record - instead, you set
GridColumn.OptionsColumn.AllowEdit
, obviously).
-
Google Maps, [...] using navigation along a really bumpy road
The correct answer is to use Waze instead.
-
@Jaloopa said:
Google Maps, [...] using navigation along a really bumpy road
The correct answer is to use Waze instead.
Ihaven'thadn't before really bothered to figure out what Waze is, but I have once received an automated message telling me a friend had installed it on their phone; so I instantly started hating them.
-
-
Well, what did I expect.
Not really an error, but speaking of DevExpress...
Going the PHP way, I see.
-
In a world with VS Community Edition, why does DevExpress still exist?
That's a question I offer to Microsoft as well.
-
In a world with VS
Community Edition2010, why does DevExpress still exist?We're a bit behind the curve, you see. Also apparently enjoy paying for stuff we don't use (the only component we really do use is the grid, and we only use the most bare-bones features of it - things that the bog-standard DataGridView covers - but the company policy is to never use standard WinForms grids and use DevExpress instead).