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

 
GeneralProbabilistic Log Levels Pin
Brisingr Aerowing11-Sep-20 11:12
professionalBrisingr Aerowing11-Sep-20 11:12 
GeneralRe: Probabilistic Log Levels Pin
Greg Utas11-Sep-20 11:16
professionalGreg Utas11-Sep-20 11:16 
GeneralRe: Probabilistic Log Levels Pin
David O'Neil14-Sep-20 20:00
professionalDavid O'Neil14-Sep-20 20:00 
GeneralRe: Probabilistic Log Levels Pin
kmoorevs17-Sep-20 4:25
kmoorevs17-Sep-20 4:25 
GeneralRe: Probabilistic Log Levels Pin
ZurdoDev17-Sep-20 4:43
professionalZurdoDev17-Sep-20 4:43 
GeneralRe: Probabilistic Log Levels Pin
Cp-Coder21-Oct-20 12:41
Cp-Coder21-Oct-20 12:41 
GeneralRe: Probabilistic Log Levels Pin
Gary R. Wheeler23-Sep-20 14:14
Gary R. Wheeler23-Sep-20 14:14 
GeneralRe: Probabilistic Log Levels Pin
Sander Rossel26-Sep-20 23:14
professionalSander Rossel26-Sep-20 23:14 
You think this has to be a bad joke, but you know it isn't Sigh | :sigh:

I really don't get it, why would anybody in their right mind write that sort of thing.
I recently came across some sort of foreign key, except it wasn't a key and the relationship wasn't on the ID, but rather on some varchar value which was copied to the other table, except in the other table it was a smallint, and if the smallint wasn't the same value as the varchar in the other table it would all go to hell and ultimately it was used in a report where it literally said if value = 1 then "Some value" else if value = 2 then "Some other value".
HOW ABOUT WE JUST PUT A RELATIONSHIP ON THE ID AND THEN PUT THE TEXT IN THE VARCHAR COLUMN!? Unsure | :~
These people shouldn't be allowed near programming languages and yet here they are calling themselves professionals and landing jobs!
Something's really very wrong in our industry Sigh | :sigh:

GeneralRe: Probabilistic Log Levels Pin
Greg Utas27-Sep-20 0:39
professionalGreg Utas27-Sep-20 0:39 
GeneralRe: Probabilistic Log Levels Pin
markrlondon28-Sep-20 7:18
markrlondon28-Sep-20 7:18 
GeneralStrange Microsoft Windows behavior PinPopular
Super Lloyd10-Sep-20 18:03
Super Lloyd10-Sep-20 18:03 
GeneralRe: Strange Microsoft Windows behavior Pin
MarkTJohnson11-Sep-20 1:04
professionalMarkTJohnson11-Sep-20 1:04 
GeneralRe: Strange Microsoft Windows behavior PinPopular
Bernhard Hiller20-Sep-20 20:39
Bernhard Hiller20-Sep-20 20:39 
GeneralRe: Strange Microsoft Windows behavior Pin
Cp-Coder20-Oct-20 15:07
Cp-Coder20-Oct-20 15:07 
GeneralRe: Strange Microsoft Windows behavior Pin
markrlondon21-Oct-20 0:54
markrlondon21-Oct-20 0:54 
GeneralWindows 10 'Odd Behavoir' Pin
glennPattonWork320-Aug-20 23:33
professionalglennPattonWork320-Aug-20 23:33 
GeneralRe: Windows 10 'Odd Behavoir' Pin
jlongo21-Aug-20 6:02
jlongo21-Aug-20 6:02 
GeneralRe: Windows 10 'Odd Behavoir' Pin
glennPattonWork321-Aug-20 8:39
professionalglennPattonWork321-Aug-20 8:39 
GeneralRe: Windows 10 'Odd Behavoir' Pin
Cp-Coder20-Oct-20 15:09
Cp-Coder20-Oct-20 15:09 
GeneralRe: Windows 10 'Odd Behavoir' Pin
glennPattonWork320-Oct-20 21:01
professionalglennPattonWork320-Oct-20 21:01 
GeneralRe: Windows 10 'Odd Behavoir' Pin
Eddy Vluggen21-Aug-20 6:46
professionalEddy Vluggen21-Aug-20 6:46 
GeneralRe: Windows 10 'Odd Behavoir' Pin
glennPattonWork321-Aug-20 8:41
professionalglennPattonWork321-Aug-20 8:41 
GeneralRe: Windows 10 'Odd Behavoir' Pin
Eddy Vluggen22-Aug-20 9:59
professionalEddy Vluggen22-Aug-20 9:59 
GeneralBoth Weird & Wonderful - a W10 Surprise Pin
Rick York19-Aug-20 15:17
mveRick York19-Aug-20 15:17 
GeneralRe: Both Weird & Wonderful - a W10 Surprise Pin
Ron Anders19-Aug-20 15:56
Ron Anders19-Aug-20 15:56 

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.