Click here to Skip to main content
15,884,099 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: Switch boolean.... (reinventing if, unnecessarily) Pin
Scott Corbett26-Jun-15 2:23
Scott Corbett26-Jun-15 2:23 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Richard Deeming26-Jun-15 3:23
mveRichard Deeming26-Jun-15 3:23 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Scott Corbett29-Jun-15 3:14
Scott Corbett29-Jun-15 3:14 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
ttennebb26-Jun-15 3:46
professionalttennebb26-Jun-15 3:46 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Simon O'Riordan from UK28-Jun-15 20:07
Simon O'Riordan from UK28-Jun-15 20:07 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
mbb0125-Jun-15 23:41
mbb0125-Jun-15 23:41 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Daniel Pfeffer26-Jun-15 0:05
professionalDaniel Pfeffer26-Jun-15 0:05 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Member 990836226-Jun-15 3:08
Member 990836226-Jun-15 3:08 
C#
FirstControl.Enabled = !FirstControl.Enabled;
SecondControl.Enabled = !SecondControl.Enabled;

GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Basketcase Software26-Jun-15 3:33
professionalBasketcase Software26-Jun-15 3:33 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Javier jimenez Rico26-Jun-15 4:37
professionalJavier jimenez Rico26-Jun-15 4:37 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Member 1159491426-Jun-15 5:19
Member 1159491426-Jun-15 5:19 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
DanKorn26-Jun-15 9:23
DanKorn26-Jun-15 9:23 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Member 1159491426-Jun-15 10:22
Member 1159491426-Jun-15 10:22 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
DanKorn26-Jun-15 11:03
DanKorn26-Jun-15 11:03 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Member 1159491426-Jun-15 13:15
Member 1159491426-Jun-15 13:15 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Al Chak27-Jun-15 22:01
Al Chak27-Jun-15 22:01 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Richard Deeming29-Jun-15 2:25
mveRichard Deeming29-Jun-15 2:25 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
chaosworrier_oz29-Jun-15 17:55
chaosworrier_oz29-Jun-15 17:55 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
TheGreatAndPowerfulOz30-Jun-15 9:13
TheGreatAndPowerfulOz30-Jun-15 9:13 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Jörgen Sigvardsson1-Jul-15 3:44
Jörgen Sigvardsson1-Jul-15 3:44 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Bernhard Hiller1-Jul-15 8:06
Bernhard Hiller1-Jul-15 8:06 
JokeFun with Generic Enum Constraint PinPopular
Bernhard Hiller9-Jun-15 22:11
Bernhard Hiller9-Jun-15 22:11 
GeneralRe: Fun with Generic Enum Constraint Pin
Daniel Pfeffer9-Jun-15 22:29
professionalDaniel Pfeffer9-Jun-15 22:29 
GeneralRe: Fun with Generic Enum Constraint Pin
Agent__0079-Jun-15 22:31
professionalAgent__0079-Jun-15 22:31 
GeneralRe: Fun with Generic Enum Constraint Pin
Brisingr Aerowing10-Jun-15 8:50
professionalBrisingr Aerowing10-Jun-15 8:50 

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.