Click here to Skip to main content

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, embarrasing 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: When Gobbledygook, Do Nada (Except Break the Build) PinprofessionalRichard Deeming26-Jun-13 23:57 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) PinprofessionalArgonia27-Jun-13 0:03 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) PinprotectorOriginalGriff27-Jun-13 0:12 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) PinmemberFreak3027-Jun-13 0:57 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) PinprotectorOriginalGriff27-Jun-13 1:07 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) PinprofessionalRichard Deeming27-Jun-13 1:56 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) PinmemberJacek Gajek28-Jun-13 9:44 
GeneralAhh, the joys of Visual Basic PinprofessionalArgonia26-Jun-13 1:42 
Hehe finally i made my way to The Weird and The Wonderful. Enjoy!
 
I am sitting here writing some vc++ code cloning some Dom nodes with MSXML and cloneNode(VARIANT_BOOL deep) and i noticed that the deep cloning isn't working. After some googling i found this gem
typedef short VARIANT_BOOL;
#define VARIANT_TRUE ((VARIANT_BOOL)-1)
#define VARIANT_FALSE ((VARIANT_BOOL)0)
with this explanation "This was developed by the Visual Basic folks" Clickety
 
Microsoft... the only place where VARIANT_TRUE != true
Thank you Visual Basic Team.
GeneralRe: Ahh, the joys of Visual Basic PinprofessionalMohammed Hameed26-Jun-13 2:10 
GeneralRe: Ahh, the joys of Visual Basic Pinmemberdusty_dex26-Jun-13 2:29 
GeneralRe: Ahh, the joys of Visual Basic PinmemberHerbie Mountjoy26-Jun-13 21:09 
GeneralRe: Ahh, the joys of Visual Basic Pinmemberdusty_dex27-Jun-13 1:28 
GeneralRe: Ahh, the joys of Visual Basic PinmemberWestm27-Jun-13 6:22 
GeneralRe: Ahh, the joys of Visual Basic [modified] PinmemberGuyThiebaut26-Jun-13 2:37 
GeneralRe: Ahh, the joys of Visual Basic PinprofessionalArgonia26-Jun-13 3:04 
GeneralRe: Ahh, the joys of Visual Basic PinmemberGuyThiebaut26-Jun-13 3:40 
GeneralRe: Ahh, the joys of Visual Basic Pinmemberlewax0026-Jun-13 3:43 
GeneralRe: Ahh, the joys of Visual Basic Pinprofessionalgervacleto28-Jun-13 1:45 
GeneralRe: Ahh, the joys of Visual Basic PinmemberFreak3027-Jun-13 1:02 
GeneralRe: Ahh, the joys of Visual Basic Pinmembercsugden27-Jun-13 4:03 
GeneralWhy some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. PinprofessionalMohammed Hameed21-Jun-13 2:53 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. PinprotectorOriginalGriff21-Jun-13 3:46 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. PinprofessionalMohammed Hameed21-Jun-13 3:50 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pinmemberjim lahey21-Jun-13 3:52 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. PinprofessionalMohammed Hameed21-Jun-13 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web01 | 2.8.140814.1 | Last Updated 20 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid