Click here to Skip to main content
14,368,111 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.

 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Richard Deeming13-Jun-19 0:34
mveRichard Deeming13-Jun-19 0:34 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
den2k8813-Jun-19 0:41
professionalden2k8813-Jun-19 0:41 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 2:46
mvaraddevus13-Jun-19 2:46 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript PinPopular
MSBassSinger13-Jun-19 6:23
professionalMSBassSinger13-Jun-19 6:23 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Maximilien17-Jun-19 9:10
memberMaximilien17-Jun-19 9:10 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus18-Jun-19 3:00
mvaraddevus18-Jun-19 3:00 
GeneralMust-Have NuGet Constants Packages Pin
David A. Gray7-Jun-19 21:56
groupDavid A. Gray7-Jun-19 21:56 
GeneralKill it with fire #2 - or fml Pin
charlieg31-May-19 13:04
membercharlieg31-May-19 13:04 
Pretty little piece of code I inherited. I deleted code out of the try, the real point was the catch... that code is verbatim.
D'Oh! | :doh:

// create vector of file types so we can reorder the list from newest to oldest
try
        {
            // do something here... 
          
        }
        catch(...)
        {
            // New throws
        }

Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...

"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil31-May-19 16:11
professionalDavid O'Neil31-May-19 16:11 
GeneralRe: Kill it with fire #2 - or fml Pin
Gary R. Wheeler31-May-19 17:38
memberGary R. Wheeler31-May-19 17:38 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil31-May-19 18:34
professionalDavid O'Neil31-May-19 18:34 
GeneralRe: Kill it with fire #2 - or fml Pin
charlieg1-Jun-19 4:22
membercharlieg1-Jun-19 4:22 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil1-Jun-19 12:54
professionalDavid O'Neil1-Jun-19 12:54 
GeneralRe: Kill it with fire #2 - or fml Pin
charlieg1-Jun-19 18:43
membercharlieg1-Jun-19 18:43 
GeneralRe: Kill it with fire #2 - or fml Pin
Sander Rossel8-Jun-19 1:47
professionalSander Rossel8-Jun-19 1:47 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil8-Jun-19 6:49
professionalDavid O'Neil8-Jun-19 6:49 
GeneralRe: Kill it with fire #2 - or fml Pin
Rick York12-Jun-19 14:22
mveRick York12-Jun-19 14:22 
GeneralRe: Kill it with fire #2 - or fml Pin
Member 1388243212-Jun-19 21:31
memberMember 1388243212-Jun-19 21:31 
GeneralRe: Kill it with fire #2 - or fml Pin
Richard Deeming13-Jun-19 0:19
mveRichard Deeming13-Jun-19 0:19 
GeneralRe: Kill it with fire #2 - or fml Pin
charlieg1-Jun-19 4:15
membercharlieg1-Jun-19 4:15 
GeneralRe: Kill it with fire #2 - or fml Pin
Matias Lopez5-Jun-19 7:06
memberMatias Lopez5-Jun-19 7:06 
GeneralRe: Kill it with fire #2 - or fml Pin
AFell24-Jun-19 12:39
memberAFell24-Jun-19 12:39 
GeneralRe: Kill it with fire #2 - or fml Pin
charlieg4-Jun-19 19:01
membercharlieg4-Jun-19 19:01 
GeneralRe: Kill it with fire #2 - or fml Pin
Dr.Walt Fair, PE8-Jun-19 6:34
professionalDr.Walt Fair, PE8-Jun-19 6:34 
GeneralRe: Kill it with fire #2 - or fml Pin
Jörgen Andersson12-Jun-19 11:02
protectorJörgen Andersson12-Jun-19 11:02 

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.