Click here to Skip to main content
15,906,569 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: What does it do? Pin
CPallini16-Nov-07 5:37
mveCPallini16-Nov-07 5:37 
GeneralRe: What does it do? Pin
Xpnctoc26-Dec-07 9:14
Xpnctoc26-Dec-07 9:14 
GeneralRe: What does it do? Pin
Cristian Amarie27-Dec-07 2:00
Cristian Amarie27-Dec-07 2:00 
GeneralNull != NULL in some cases in asp ;) Pin
MrMarco15-Nov-07 21:37
MrMarco15-Nov-07 21:37 
GeneralRe: Null != NULL in some cases in asp ;) Pin
Mike Dimmick16-Nov-07 0:00
Mike Dimmick16-Nov-07 0:00 
GeneralRe: Null != NULL in some cases in asp ;) Pin
MrMarco16-Nov-07 1:30
MrMarco16-Nov-07 1:30 
GeneralFlags constants and new version Pin
Rama Krishna Vavilala15-Nov-07 14:34
Rama Krishna Vavilala15-Nov-07 14:34 
GeneralRe: Flags constants and new version Pin
CPallini15-Nov-07 23:38
mveCPallini15-Nov-07 23:38 
the check:
if ((access & ACCESS_ALL) == ACCESS_ALL)

will fail on (even ACCESS_ALL) old files.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralHow many things are wrong with this code? [modified] Pin
Leisuresuit Larry15-Nov-07 9:35
Leisuresuit Larry15-Nov-07 9:35 
GeneralRe: How many things are wrong with this code? Pin
Pete O'Hanlon15-Nov-07 10:07
mvePete O'Hanlon15-Nov-07 10:07 
GeneralRe: How many things are wrong with this code? Pin
Vasudevan Deepak Kumar15-Nov-07 21:34
Vasudevan Deepak Kumar15-Nov-07 21:34 
GeneralRe: How many things are wrong with this code? Pin
Cristian Amarie16-Nov-07 21:50
Cristian Amarie16-Nov-07 21:50 
GeneralMicrosofts crippled Java Pin
jhwurmbach19-Nov-07 1:55
jhwurmbach19-Nov-07 1:55 
GeneralRe: How many things are wrong with this code? Pin
DavidNohejl15-Nov-07 12:22
DavidNohejl15-Nov-07 12:22 
GeneralRe: How many things are wrong with this code? Pin
Luc Pattyn15-Nov-07 13:01
sitebuilderLuc Pattyn15-Nov-07 13:01 
Generalcan somebody explain the logic of this? [modified] Pin
Dogan Akhan12-Nov-07 22:19
Dogan Akhan12-Nov-07 22:19 
AnswerRe: can somebody explain the logic of this? Pin
Baconbutty12-Nov-07 22:29
Baconbutty12-Nov-07 22:29 
GeneralRe: can somebody explain the logic of this? Pin
NormDroid13-Nov-07 9:09
professionalNormDroid13-Nov-07 9:09 
AnswerRe: can somebody explain the logic of this? Pin
leppie12-Nov-07 22:57
leppie12-Nov-07 22:57 
AnswerRe: can somebody explain the logic of this? Pin
Shpendh12-Nov-07 23:19
Shpendh12-Nov-07 23:19 
GeneralRe: can somebody explain the logic of this? Pin
Paddy Boyd13-Nov-07 1:15
Paddy Boyd13-Nov-07 1:15 
GeneralRe: can somebody explain the logic of this? Pin
KarstenK14-Nov-07 21:41
mveKarstenK14-Nov-07 21:41 
GeneralI'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:07
mvePete O'Hanlon12-Nov-07 2:07 
GeneralRe: I'm speechless about this piece of code. Pin
Chris Meech12-Nov-07 2:31
Chris Meech12-Nov-07 2:31 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:33
mvePete O'Hanlon12-Nov-07 2:33 

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.