Click here to Skip to main content
15,887,895 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: Bug of the day Pin
Fabio Franco13-Jun-13 1:21
professionalFabio Franco13-Jun-13 1:21 
GeneralRe: Bug of the day Pin
gervacleto13-Jun-13 2:24
professionalgervacleto13-Jun-13 2:24 
GeneralRe: Bug of the day Pin
Fabio Franco13-Jun-13 2:54
professionalFabio Franco13-Jun-13 2:54 
GeneralRe: Bug of the day Pin
gervacleto13-Jun-13 3:45
professionalgervacleto13-Jun-13 3:45 
GeneralRe: Bug of the day Pin
Pablo Aliskevicius13-Jun-13 3:53
Pablo Aliskevicius13-Jun-13 3:53 
GeneralRe: Bug of the day Pin
StatementTerminator13-Jun-13 5:40
StatementTerminator13-Jun-13 5:40 
GeneralRe: Bug of the day Pin
Fabio Franco13-Jun-13 3:54
professionalFabio Franco13-Jun-13 3:54 
GeneralRe: Bug of the day Pin
MainFrameMan_ALIVE_AND_WELL$$13-Jun-13 4:32
MainFrameMan_ALIVE_AND_WELL$$13-Jun-13 4:32 
the semi-colon on the end of the conditional, the block will always execute.

DoSomething is in its own little world and will always execute.

C# will just raise a warning on the conditional but will not compile with the DoSomeThing becuse it is not a method or an assignment.

But, what if it is not C# compiler, then there could be compilers that would allow this and it would be worthless code, i still use Crimson, NotePad, etc to write code. Either to many semi colons or not enough !!
GeneralRe: Bug of the day Pin
RafagaX13-Jun-13 5:31
professionalRafagaX13-Jun-13 5:31 
GeneralRe: Bug of the day Pin
Adam David Hill14-Jun-13 5:26
professionalAdam David Hill14-Jun-13 5:26 
GeneralRe: Bug of the day Pin
Marc Clifton18-Jun-13 5:32
mvaMarc Clifton18-Jun-13 5:32 
GeneralProductivity Wars Pin
jim lahey7-Jun-13 4:42
jim lahey7-Jun-13 4:42 
GeneralRe: Productivity Wars PinPopular
BobJanova7-Jun-13 4:57
BobJanova7-Jun-13 4:57 
GeneralRe: Productivity Wars Pin
jim lahey7-Jun-13 5:04
jim lahey7-Jun-13 5:04 
GeneralRe: Productivity Wars Pin
R. Erasmus11-Jun-13 3:28
R. Erasmus11-Jun-13 3:28 
GeneralRe: Productivity Wars Pin
jesarg7-Jun-13 6:14
jesarg7-Jun-13 6:14 
GeneralRe: Productivity Wars Pin
Chris Maunder7-Jun-13 14:57
cofounderChris Maunder7-Jun-13 14:57 
GeneralRe: Productivity Wars Pin
AspDotNetDev7-Jun-13 15:18
protectorAspDotNetDev7-Jun-13 15:18 
GeneralRe: Productivity Wars Pin
V.9-Jun-13 22:22
professionalV.9-Jun-13 22:22 
GeneralRe: Productivity Wars Pin
harold aptroot10-Jun-13 3:19
harold aptroot10-Jun-13 3:19 
GeneralRe: Productivity Wars Pin
YvesDaoust10-Jun-13 20:47
YvesDaoust10-Jun-13 20:47 
GeneralRe: Productivity Wars Pin
Fran Porretto11-Jun-13 1:00
Fran Porretto11-Jun-13 1:00 
GeneralRe: Productivity Wars Pin
vonb11-Jun-13 1:40
vonb11-Jun-13 1:40 
GeneralRe: Productivity Wars Pin
Dominic Amann11-Jun-13 2:52
Dominic Amann11-Jun-13 2:52 
GeneralRe: Productivity Wars Pin
jim lahey11-Jun-13 6:00
jim lahey11-Jun-13 6:00 

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.