Click here to Skip to main content
13,006,180 members (66,012 online)

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
R. Erasmus12-Jun-13 21:38
memberR. Erasmus12-Jun-13 21:38 
GeneralRe: Bug of the day Pin
Fabio Franco13-Jun-13 1:21
memberFabio Franco13-Jun-13 1:21 
GeneralRe: Bug of the day Pin
gervacleto13-Jun-13 2:24
membergervacleto13-Jun-13 2:24 
GeneralRe: Bug of the day Pin
Fabio Franco13-Jun-13 2:54
memberFabio Franco13-Jun-13 2:54 
GeneralRe: Bug of the day Pin
gervacleto13-Jun-13 3:45
membergervacleto13-Jun-13 3:45 
GeneralRe: Bug of the day Pin
Pablo Aliskevicius13-Jun-13 3:53
memberPablo Aliskevicius13-Jun-13 3:53 
GeneralRe: Bug of the day Pin
StatementTerminator13-Jun-13 5:40
memberStatementTerminator13-Jun-13 5:40 
GeneralRe: Bug of the day Pin
Fabio Franco13-Jun-13 3:54
memberFabio Franco13-Jun-13 3:54 
gervacleto wrote:

This can also happen in C#, but auto indent of Visual Studio makes you less likely to fall in this trap.

gervacleto wrote:
if(MyBoolValue = false){

This happened to me several times and the warning saved. I always pay attention to warnings.

gervacleto wrote:

I do not consider this a bug, it is actualy a coding style. I do it myself.

gervacleto wrote:
for(int i = 0; i <= MyArray.GetUpperBound(0); i++)

Never used this construct, so I wouldn't know. But will keep my mind to it in case I run into this. Thanks!
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
Our heads are round so our thoughts can change direction - Francis Picabia

GeneralRe: Bug of the day Pin
MainFrameMan_ALIVE_AND_WELL$$13-Jun-13 4:32
memberMainFrameMan_ALIVE_AND_WELL$$13-Jun-13 4:32 
GeneralRe: Bug of the day Pin
RafagaX13-Jun-13 5:31
memberRafagaX13-Jun-13 5:31 
GeneralRe: Bug of the day Pin
Adam David Hill14-Jun-13 5:26
memberAdam David Hill14-Jun-13 5:26 
GeneralRe: Bug of the day Pin
Marc Clifton18-Jun-13 5:32
protectorMarc Clifton18-Jun-13 5:32 
GeneralProductivity Wars Pin
jim lahey7-Jun-13 4:42
memberjim lahey7-Jun-13 4:42 
GeneralRe: Productivity Wars Pin
BobJanova7-Jun-13 4:57
memberBobJanova7-Jun-13 4:57 
GeneralRe: Productivity Wars Pin
jim lahey7-Jun-13 5:04
memberjim lahey7-Jun-13 5:04 
GeneralRe: Productivity Wars Pin
R. Erasmus11-Jun-13 3:28
memberR. Erasmus11-Jun-13 3:28 
GeneralRe: Productivity Wars Pin
jesarg7-Jun-13 6:14
memberjesarg7-Jun-13 6:14 
GeneralRe: Productivity Wars Pin
Chris Maunder7-Jun-13 14:57
adminChris 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
memberharold aptroot10-Jun-13 3:19 
GeneralRe: Productivity Wars Pin
YvesDaoust10-Jun-13 20:47
memberYvesDaoust10-Jun-13 20:47 
GeneralRe: Productivity Wars Pin
Fran Porretto11-Jun-13 1:00
memberFran Porretto11-Jun-13 1:00 
GeneralRe: Productivity Wars Pin
vonb11-Jun-13 1:40
membervonb11-Jun-13 1:40 
GeneralRe: Productivity Wars Pin
Dominic Amann11-Jun-13 2:52
memberDominic Amann11-Jun-13 2:52 

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.

Advertise | Privacy | Mobile
Web02 | 2.8.170628.1 | Last Updated 28 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid