Click here to Skip to main content
14,241,004 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: Today's entry for the "kill it with fire" list Pin
Gary Wheeler16-May-19 3:19
memberGary Wheeler16-May-19 3:19 
GeneralRe: Today's entry for the "kill it with fire" list Pin
S. Mercurio16-May-19 3:33
memberS. Mercurio16-May-19 3:33 
GeneralRe: Today's entry for the "kill it with fire" list Pin
DSewhuk16-May-19 4:18
memberDSewhuk16-May-19 4:18 
AnswerRe: Today's entry for the "kill it with fire" list Pin
Super Lloyd6-Jun-19 2:55
memberSuper Lloyd6-Jun-19 2:55 
GeneralRe: Today's entry for the "kill it with fire" list Pin
Gary Wheeler6-Jun-19 3:25
memberGary Wheeler6-Jun-19 3:25 
GeneralRe: Today's entry for the "kill it with fire" list Pin
Super Lloyd6-Jun-19 3:44
memberSuper Lloyd6-Jun-19 3:44 
GeneralRe: Today's entry for the "kill it with fire" list Pin
TheGreatAndPowerfulOz14-Jun-19 7:35
memberTheGreatAndPowerfulOz14-Jun-19 7:35 
GeneralRe: Today's entry for the "kill it with fire" list Pin
Gary Wheeler14-Jun-19 9:29
memberGary Wheeler14-Jun-19 9:29 
While this code was in fact multithreaded, that had nothing to do with the sloppy way the logic was coded. I've had very few cases where comparing a bool variable to a constant made more sense algorithmically than just using the variable as-is. The second part comparing the variable to the Windows DWORD constant TRUE is just plain stupid. It works, but that's no credit.
Software Zen: delete this;

GeneralColor Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
David A. Gray7-May-19 9:17
groupDavid A. Gray7-May-19 9:17 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Super Lloyd7-May-19 12:54
memberSuper Lloyd7-May-19 12:54 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
David A. Gray7-May-19 16:15
groupDavid A. Gray7-May-19 16:15 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
CodeWraith9-May-19 1:19
memberCodeWraith9-May-19 1:19 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler14-May-19 7:07
memberGary Wheeler14-May-19 7:07 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
CodeWraith14-May-19 19:52
memberCodeWraith14-May-19 19:52 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler15-May-19 1:57
memberGary Wheeler15-May-19 1:57 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
CodeWraith15-May-19 2:25
memberCodeWraith15-May-19 2:25 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler15-May-19 2:35
memberGary Wheeler15-May-19 2:35 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
CodeWraith15-May-19 2:57
memberCodeWraith15-May-19 2:57 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler15-May-19 3:00
memberGary Wheeler15-May-19 3:00 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
CodeWraith15-May-19 3:51
memberCodeWraith15-May-19 3:51 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler14-May-19 8:37
memberGary Wheeler14-May-19 8:37 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
David A. Gray14-May-19 12:22
groupDavid A. Gray14-May-19 12:22 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
Gary Wheeler15-May-19 1:56
memberGary Wheeler15-May-19 1:56 
GeneralRe: Color Me Spoiled: XAML for WPF Can't See Uncompiled Resource Strings Pin
David A. Gray15-May-19 5:55
groupDavid A. Gray15-May-19 5:55 
GeneralWizzardWrx .NET API Core Available on NuGet Pin
David A. Gray2-May-19 9:26
groupDavid A. Gray2-May-19 9:26 

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.