Click here to Skip to main content
14,326,168 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
JokeRe: Well, at least they use SQL Server Pin
Anurag Gandhi11-May-19 6:52
professionalAnurag Gandhi11-May-19 6:52 
GeneralRe: Well, at least they use SQL Server Pin
Member 1433107613-May-19 4:31
memberMember 1433107613-May-19 4:31 
GeneralSo we have this service at work... Pin
MadMyche19-Apr-19 5:28
mveMadMyche19-Apr-19 5:28 
GeneralRe: So we have this service at work... Pin
Rick York2-May-19 4:44
mveRick York2-May-19 4:44 
GeneralStupid user tricks (double-click = double postback) Pin
kmoorevs18-Apr-19 12:07
memberkmoorevs18-Apr-19 12:07 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Super Lloyd18-Apr-19 12:30
memberSuper Lloyd18-Apr-19 12:30 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
honey the codewitch18-Apr-19 12:55
memberhoney the codewitch18-Apr-19 12:55 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
grralph118-Apr-19 23:29
membergrralph118-Apr-19 23:29 
Haha I had the same thing happen.
Sorry to laugh but mine was a bugger to find as well, even though the environment wasn't as complicated as yours.

System had been running for about 7 years.
It is for Government so their testers gave it a pounding and ticked it off as OK.

Then one day an end user said something to me about an issue so I looked through the logs.
There it was. Obscure error too. It was really rare but it only ever happened to about 3 users out of about 250.

I thought about it and then thought maybe double click.
Then tried but it all worked OK. Tried all sorts of things within this stage of a process.

Turns out that my double click technique is sh*t.
I practised to get it down from milliseconds to nanoseconds.
Yep got the error.

When I looked at the code I had a couple of instructions inserted before I disabled the button.
Shifted the disable to when the click event happens and then all good.

I felt a little embarrassed about it, should have checked the code first, but gee wiz, these 3 users were Olympians of the double click, albeit in a single click application.

End users are often Faster, Higher, Stronger or Stupid.
"Rock journalism is people who can't write interviewing people who can't talk for people who can't read." Frank Zappa 1980

GeneralRe: Stupid user tricks (double-click = double postback) Pin
OriginalGriff19-Apr-19 0:37
protectorOriginalGriff19-Apr-19 0:37 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
grralph119-Apr-19 1:11
membergrralph119-Apr-19 1:11 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Jacek Gajek22-Apr-19 21:41
memberJacek Gajek22-Apr-19 21:41 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
MadMyche19-Apr-19 5:38
mveMadMyche19-Apr-19 5:38 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
kmoorevs19-Apr-19 5:16
memberkmoorevs19-Apr-19 5:16 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Brisingr Aerowing20-Apr-19 12:32
professionalBrisingr Aerowing20-Apr-19 12:32 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
kmoorevs20-Apr-19 13:02
memberkmoorevs20-Apr-19 13:02 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
DerekT-P12-Jun-19 9:14
professionalDerekT-P12-Jun-19 9:14 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
kmoorevs13-Jun-19 7:18
memberkmoorevs13-Jun-19 7:18 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Nelek22-Apr-19 21:50
protectorNelek22-Apr-19 21:50 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
David A. Gray28-Apr-19 14:52
groupDavid A. Gray28-Apr-19 14:52 
QuestionConcept of "Password Mode" Pin
Bogatitus17-Apr-19 16:03
memberBogatitus17-Apr-19 16:03 
AnswerRe: Concept of "Password Mode" Pin
CodeWraith18-Apr-19 2:34
memberCodeWraith18-Apr-19 2:34 
AnswerRe: Concept of "Password Mode" Pin
Nathan Minier18-Apr-19 3:17
professionalNathan Minier18-Apr-19 3:17 
GeneralRe: Concept of "Password Mode" Pin
Bogatitus18-Apr-19 8:28
memberBogatitus18-Apr-19 8:28 
GeneralRe: Concept of "Password Mode" Pin
Nelek22-Apr-19 21:53
protectorNelek22-Apr-19 21:53 
GeneralRe: Concept of "Password Mode" Pin
raddevus11-Jun-19 10:19
mvaraddevus11-Jun-19 10:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.