Click here to Skip to main content
15,890,438 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 Pin
Rob Grainger1-Sep-10 22:11
Rob Grainger1-Sep-10 22:11 
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 
OriginalGriff wrote:
No, it doesn't! Try with an empty catch would only work the same if you surrounded each and every single line of code with it's own, independent, try...empty catch block. Not even the laziest programmer on the planet would do that...


All you need is a try with an empty catch above the top level code, e.g. in a Button Click event, and all lower level code is covered.

So...asking again...

Should every language that has a mechanism for swallowing exceptions be pulled from the market?

I don't use classic VB any more except where maintenance is needed and that is needed less and less.

I do use VB.Net although I prefer C#.

Both C# and Java have their share of "features" that could attract every bit as much criticism as the features that people obsess over with VB.

And yet, I rarely hear those languages called into question to the same extent.

There's something about that word 'Basic' that just brings out the religious zealots on both sides of the debate.

To me VB has always been a tool, like a Hammer. I might feel a little sentimental from time to time, like a carpenter would about his first hammer, but it's just a tool. It has good and bad.

It revolutionised Software Development and it deserves a bit more respect for that than it gets.

More importantly, while it included features that allowed bad programmers to create complex code, it also included enough features to allow good programmers to write good code.

Very few of the features that people are critical of were absolutely needed. Create and enforce a few coding standards and VB could be used quite well for even complex systems.

The most important point to remember is that right now, out there in the wild there is code written in C# and Java that is 100 times more complex and difficult to read and maintain than anything that was produced in VB.

As a profession we should have enough self respect and pride to realise that code quality is predominantly a function of the developer not the tool.

Prior to college my only experience of programming was Basic. On my induction day for college back in the 90's I asked one of hte students showing us around if they used Basic at all.

"Basic? That's a baby language. We use C or COBOL"

When I started college I started messing with VB2.0.

A few weeks later that same guy approached me and asked me if I could show him VB, he wanted to use it for one of his assignments.

When I started work I used VB3.0. After a year or two I got a new manager who wanted us to start building Prototypes using an early version of Visual C++/MFC. He had VB programmers, but wanted use to only use VC++ (even for prototyping).

I quit, because think what you like about languages, some tools are just better for some things, and if you let ideology lead you into making bad decisions then I don't want to work with you.

No more excuses people.
It's not the tools....that are to blame for 'bad' code.

At some point we as a profession have to accept that for perhaps 15 years now there have been exceptionally good high level languages that can be used to build good quality maintainable code.

Let's stop wondering about which languages have dodgy features and start asking why we as a profession still produce so many coding horrors.

-Rd
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 
GeneralRe: VB 6 Pin
JasonPSage1-Sep-10 8:37
JasonPSage1-Sep-10 8:37 
GeneralRe: VB 6 Pin
Max Peck2-Sep-10 4:05
Max Peck2-Sep-10 4:05 
GeneralRe: VB 6 Pin
Matt McGuire1-Sep-10 13:15
professionalMatt McGuire1-Sep-10 13:15 
GeneralRe: VB 6 Pin
Lutosław1-Sep-10 20:25
Lutosław1-Sep-10 20:25 
GeneralRe: VB 6 Pin
cwp423-Sep-10 1:38
cwp423-Sep-10 1:38 
General558 Lines Of QuickBasic Glory PinPopular
AspDotNetDev25-Aug-10 21:29
protectorAspDotNetDev25-Aug-10 21:29 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
Kevin Drzycimski25-Aug-10 22:22
Kevin Drzycimski25-Aug-10 22:22 

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.