Click here to Skip to main content
15,886,199 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: Expletive Deleted Pin
PIEBALDconsult9-Jul-13 5:06
mvePIEBALDconsult9-Jul-13 5:06 
GeneralRe: Expletive Deleted Pin
Le Poete11-Jul-13 1:35
Le Poete11-Jul-13 1:35 
GeneralRe: Expletive Deleted Pin
MSBassSinger11-Jul-13 4:46
professionalMSBassSinger11-Jul-13 4:46 
GeneralRe: Expletive Deleted Pin
AspDotNetDev11-Jul-13 5:41
protectorAspDotNetDev11-Jul-13 5:41 
GeneralRe: Expletive Deleted Pin
MSBassSinger11-Jul-13 6:02
professionalMSBassSinger11-Jul-13 6:02 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 1:25
BC_programming12-Jul-13 1:25 
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 3:26
professionalMSBassSinger12-Jul-13 3:26 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 6:28
BC_programming12-Jul-13 6:28 
As for VB6 being full of problems, perhaps I should qualify: For it's Era, it was a very good product. However, in the context of developing applications today, I'd say it's full of problems by virtue of being designed for the technologies of ~1998. So when I say "full of problems" I'm thinking more in terms of developing Applications that look and work like any Other win7 application. Off the top of my head I seem to recall having to hack in the resource manifest to get Visual Styles, Some whimsy and hacks to get Icons that support Alpha channels, and such. My most memorable experience was managing to actually get the Right-Click Explorer Menu in my own application, which involved crazy amounts of weak references, manual use of CoCreateInstance and QueryInterface, custom Typelibs for the shell interfaces, etc.

However, I also rewrote that functionality in C# later, too, and I found it to be a lot cleaner and easier. I can't say this is entirely because of the language and platform, because I'd like to think I simply got better as a programmer in the meantime. Perhaps ironically, I think it was easier to do because I didn't need to learn more; with the VB6 version I had to learn MIDL and the MIDL compiler, enough about IDL to define Interfaces, etc. with C# I could do that with attributes and C# interface definitions.
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 6:58
professionalMSBassSinger12-Jul-13 6:58 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 7:43
DeerBear20-Jul-13 7:43 
GeneralRe: Expletive Deleted Pin
AspDotNetDev20-Jul-13 8:40
protectorAspDotNetDev20-Jul-13 8:40 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 10:42
DeerBear20-Jul-13 10:42 
GeneralRe: Expletive Deleted Pin
AspDotNetDev20-Jul-13 16:39
protectorAspDotNetDev20-Jul-13 16:39 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 22:31
DeerBear20-Jul-13 22:31 
JokeRe: Expletive Deleted Pin
AspDotNetDev21-Jul-13 6:39
protectorAspDotNetDev21-Jul-13 6:39 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 1:16
BC_programming12-Jul-13 1:16 
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 3:36
professionalMSBassSinger12-Jul-13 3:36 
GeneralRe: Expletive Deleted Pin
Zombie Code Monkey9-Jul-13 4:52
Zombie Code Monkey9-Jul-13 4:52 
GeneralRe: Expletive Deleted Pin
Rob Grainger9-Jul-13 4:59
Rob Grainger9-Jul-13 4:59 
GeneralRe: Expletive Deleted Pin
Zombie Code Monkey9-Jul-13 5:35
Zombie Code Monkey9-Jul-13 5:35 
GeneralRe: Expletive Deleted Pin
AspDotNetDev9-Jul-13 6:05
protectorAspDotNetDev9-Jul-13 6:05 
GeneralRe: Expletive Deleted Pin
PIEBALDconsult9-Jul-13 8:28
mvePIEBALDconsult9-Jul-13 8:28 
GeneralRe: Expletive Deleted Pin
Rob Grainger9-Jul-13 22:45
Rob Grainger9-Jul-13 22:45 
GeneralRe: Expletive Deleted Pin
Shameel10-Jul-13 4:38
professionalShameel10-Jul-13 4:38 
GeneralRe: Expletive Deleted Pin
Rob Grainger10-Jul-13 5:09
Rob Grainger10-Jul-13 5:09 

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.