Click here to Skip to main content
15,898,035 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: VB 6 PinPopular
Richard A. Dalton31-Aug-10 0:15
Richard A. Dalton31-Aug-10 0:15 
JokeRe: VB 6 Pin
Chris Meech31-Aug-10 8:37
Chris Meech31-Aug-10 8:37 
GeneralRe: VB 6 Pin
Rob Grainger31-Aug-10 22:37
Rob Grainger31-Aug-10 22:37 
GeneralRe: VB 6 Pin
jmoralesv1-Sep-10 17:14
professionaljmoralesv1-Sep-10 17:14 
GeneralRe: VB 6 Pin
Lutosław31-Aug-10 22:28
Lutosław31-Aug-10 22:28 
GeneralRe: VB 6 Pin
Rob Grainger31-Aug-10 22:59
Rob Grainger31-Aug-10 22:59 
GeneralRe: VB 6 Pin
sergiogarcianinja1-Sep-10 7:00
sergiogarcianinja1-Sep-10 7:00 
GeneralRe: VB 6 Pin
Rob Grainger1-Sep-10 22:11
Rob Grainger1-Sep-10 22:11 
Sergio,

Fair points - actually, I have to use VB at work but would much prefer use C#, or even better a true OO language like Smalltalk, but there seems little call for that in this neck of the woods. I've used VB in one form or another intermittently since VB 1.0 - at that stage, even though primitive by todays standards, the IDE was mind-blowing, the first time I was able to draw a GUI, and add event-handling code so easily.

I agree re. auto type conversion - in a typed language that's horrible, although many modern languages seem to do this sort of stuff (particularly in the Scripting arena, and I'd guess VB's kind of midway between there and a typical statically-typed language). Like you I have experience with a wide range of languages (slightly different selection, but generally similar).

Many languages have these kinds of faults - JavaScript has a whole set of them, but it seems to get nothing like the volume of criticism directed at VB. C has a whole different set, that tend to lead to more catastrophic run-time errors. The basic fact remains that whatever language you use, you need to learn its strengths and, particularly, its weaknesses, so you can exploit one and avoid the other.

Regards,

Rob
GeneralRe: VB 6 Pin
edmurphy991-Sep-10 7:29
edmurphy991-Sep-10 7:29 
GeneralRe: VB 6 Pin
OriginalGriff1-Sep-10 8:13
mveOriginalGriff1-Sep-10 8:13 
RantRe: VB 6 Pin
Thomas Eyde4-Sep-10 10:38
Thomas Eyde4-Sep-10 10:38 
GeneralRe: VB 6 Pin
OriginalGriff4-Sep-10 10:43
mveOriginalGriff4-Sep-10 10:43 
GeneralRe: VB 6 Pin
Thomas Eyde4-Sep-10 13:49
Thomas Eyde4-Sep-10 13:49 
GeneralRe: VB 6 Pin
OriginalGriff4-Sep-10 21:25
mveOriginalGriff4-Sep-10 21:25 
GeneralRe: VB 6 Pin
Richard A. Dalton6-Sep-10 1:43
Richard A. Dalton6-Sep-10 1:43 
GeneralRe: VB 6 Pin
OriginalGriff6-Sep-10 1:58
mveOriginalGriff6-Sep-10 1:58 
GeneralRe: VB 6 Pin
Richard A. Dalton6-Sep-10 2:17
Richard A. Dalton6-Sep-10 2:17 
GeneralRe: VB 6 Pin
leonej_dt1-Sep-10 12:49
leonej_dt1-Sep-10 12:49 
GeneralRe: VB 6 Pin
Kirk21129-Sep-10 8:41
Kirk21129-Sep-10 8:41 
GeneralRe: VB 6 PinPopular
xperroni1-Sep-10 4:24
xperroni1-Sep-10 4:24 
GeneralRe: VB 6 Pin
Fabio Franco1-Sep-10 5:05
professionalFabio Franco1-Sep-10 5:05 
GeneralRe: VB 6 Pin
Bigdeak10-Sep-10 1:56
Bigdeak10-Sep-10 1:56 
GeneralRe: VB 6 Pin
Fabio Franco10-Sep-10 2:03
professionalFabio Franco10-Sep-10 2:03 
GeneralRe: VB 6 Pin
M i s t e r L i s t e r1-Sep-10 5:54
M i s t e r L i s t e r1-Sep-10 5:54 
GeneralRe: VB 6 Pin
bwallan1-Sep-10 8:08
bwallan1-Sep-10 8:08 

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.