Click here to Skip to main content
15,880,651 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.

 
GeneralTired of not having a generic version of IClonable? Pin
Brisingr Aerowing5-Jan-16 17:36
professionalBrisingr Aerowing5-Jan-16 17:36 
GeneralRe: Tired of not having a generic version of IClonable? Pin
Garth J Lancaster5-Jan-16 18:08
professionalGarth J Lancaster5-Jan-16 18:08 
GeneralRe: Tired of not having a generic version of IClonable? Pin
PIEBALDconsult5-Jan-16 18:13
mvePIEBALDconsult5-Jan-16 18:13 
GeneralRe: Tired of not having a generic version of IClonable? Pin
Dennis_E17-Jan-16 22:08
professionalDennis_E17-Jan-16 22:08 
GeneralDFA code generation Pin
danah gaz30-Dec-15 18:28
professionaldanah gaz30-Dec-15 18:28 
GeneralRe: DFA code generation Pin
Anurag Gandhi30-Dec-15 18:46
professionalAnurag Gandhi30-Dec-15 18:46 
GeneralRe: DFA code generation Pin
Eddy Vluggen31-Dec-15 9:15
professionalEddy Vluggen31-Dec-15 9:15 
GeneralRe: DFA code generation Pin
danah gaz31-Dec-15 18:30
professionaldanah gaz31-Dec-15 18:30 
Well it was either leave it or rewrite and debug a complex lexer by hand. The thing *worked perfectly* every single time, and was fast. It was just really, really ugly to look at.

=)

Also, I love that you're A Bastard Programmer from Hell.

I used to read the Bastard Operator from Hell series when I was a kid. Loved it.

"The power cord?" I ask

"Yes...  Woopsy"

"No worries at all" I say "Is it all working well now?"

"Yes, I think so.  I'm sorry, you WERE right all along"

"Yes, we're getting a lot of this, it's due to the current Global Warming
problem.  It causes random thermal expansion and contraction resulting in
temperature induced movement of friction based holding mechanisms.."

I listen carefully.  Nothing.  In other words, <DUMMY MODE ON>...

"You can fix it permanently tho'" I say

"Really?  How?"

"Well it's all to do with lowering salt deposits on the metal contacts"

"Oh!"  (Dummy mode irrevocably engaged)

"All you need to do is just take the power plug out deposit some dilute mineral
salts on it.  Do you have some dilute mineral salts on you?"

"Uh, no?"

"Ok, no worries, just stick it in your mouth drool into it.  But make sure you
wipe the plug first to get rid of any germs, and TURN THE SWITCH OFF ON THE
MONITOR before you do - we don't want a nasty accident!

"Oh.  Ok!"

>Fzzzt< >clunk!<

I hang up as the receiver hits the floor.  Disk space is too good for them.


Big Grin | :-D


GeneralRe: DFA code generation Pin
Eddy Vluggen1-Jan-16 4:06
professionalEddy Vluggen1-Jan-16 4:06 
GeneralRe: DFA code generation Pin
PIEBALDconsult2-Jan-16 7:31
mvePIEBALDconsult2-Jan-16 7:31 
GeneralRe: DFA code generation Pin
danah gaz2-Jan-16 17:28
professionaldanah gaz2-Jan-16 17:28 
GeneralRe: DFA code generation Pin
Xmen Real 5-Jan-16 16:26
professional Xmen Real 5-Jan-16 16:26 
GeneralRe: DFA code generation Pin
danah gaz5-Jan-16 20:10
professionaldanah gaz5-Jan-16 20:10 
GeneralWindows 10 ... slow burn. Pin
StampedePress23-Dec-15 2:37
StampedePress23-Dec-15 2:37 
GeneralRe: Windows 10 ... slow burn. Pin
danah gaz30-Dec-15 18:21
professionaldanah gaz30-Dec-15 18:21 
GeneralRe: Windows 10 ... slow burn. Pin
Sander Rossel31-Dec-15 0:32
professionalSander Rossel31-Dec-15 0:32 
GeneralRe: Windows 10 ... slow burn. Pin
StampedePress31-Dec-15 1:48
StampedePress31-Dec-15 1:48 
GeneralRe: Windows 10 ... slow burn. Pin
Brisingr Aerowing31-Dec-15 6:12
professionalBrisingr Aerowing31-Dec-15 6:12 
GeneralRe: Windows 10 ... slow burn. Pin
StampedePress31-Dec-15 6:39
StampedePress31-Dec-15 6:39 
GeneralRe: Windows 10 ... slow burn. Pin
Brisingr Aerowing31-Dec-15 7:07
professionalBrisingr Aerowing31-Dec-15 7:07 
GeneralRe: Windows 10 ... slow burn. Pin
Eddy Vluggen31-Dec-15 9:18
professionalEddy Vluggen31-Dec-15 9:18 
GeneralUnique function name. Globally. PinPopular
Lutosław22-Dec-15 3:34
Lutosław22-Dec-15 3:34 
GeneralRe: Unique function name. Globally. Pin
RugbyLeague22-Dec-15 4:02
RugbyLeague22-Dec-15 4:02 
GeneralRe: Unique function name. Globally. Pin
OriginalGriff1-Jan-16 4:43
mveOriginalGriff1-Jan-16 4:43 
GeneralRe: Unique function name. Globally. Pin
RugbyLeague4-Jan-16 22:42
RugbyLeague4-Jan-16 22:42 

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.