Click here to Skip to main content
15,904,934 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: Austin Danger Powers Pin
G-Tek13-Apr-11 3:33
G-Tek13-Apr-11 3:33 
GeneralRe: Austin Danger Powers Pin
AspDotNetDev13-Apr-11 3:38
protectorAspDotNetDev13-Apr-11 3:38 
GeneralRe: Austin Danger Powers Pin
G-Tek13-Apr-11 3:45
G-Tek13-Apr-11 3:45 
GeneralRe: Austin Danger Powers Pin
AspDotNetDev13-Apr-11 3:50
protectorAspDotNetDev13-Apr-11 3:50 
GeneralRe: Austin Danger Powers Pin
G-Tek13-Apr-11 5:27
G-Tek13-Apr-11 5:27 
GeneralRe: Austin Danger Powers Pin
Paladin200013-Apr-11 6:32
Paladin200013-Apr-11 6:32 
GeneralRe: Austin Danger Powers Pin
Paladin200013-Apr-11 4:13
Paladin200013-Apr-11 4:13 
GeneralRe: Austin Danger Powers Pin
G-Tek13-Apr-11 4:29
G-Tek13-Apr-11 4:29 
Maybe it would be ideal if they just forced everything to explicit (though I'm sure there would be a backlash from amateur developer who don't understand why so much of there code is suddenly broken). To be fair, I think the reason it is still in there as an option is for backward compatibility, keeping in mind VB has been around a long time.

You are absolutely right - it shouldn't default to bad practices. It's been a while since I created a new VB project so I'm not even sure if it defaults to implicit or not. I know that any VB projects we have are all explicit.

It gets way worse with VBA though - you have to declare "Option Explicit" in every new module. Heck, by default you're not even required to declare variables! How crazy scary is that?!

No flame wars Big Grin | :-D I just have a tendency to defend VB because I find most of the complaints I see around it have less to do with the tool and more to do with the "tool" (ie. in many cases, amateur developer) that is using it.

If we, as developers, choose to blame the tools we use for everything that goes wrong then we would have to likewise allow the people that use our applications to blame us, as the app developers, for everything that goes wrong in the app (and in my experience most of the issues are the user, not the app).

I think we generally agree, but you simply come down harder on VB and maybe I'm too hard on the developer?

That's my two cents!
AnswerRe: Austin Danger Powers Pin
DragonsRightWing22-Apr-11 7:16
DragonsRightWing22-Apr-11 7:16 
GeneralRe: Austin Danger Powers Pin
_Erik_13-Apr-11 5:16
_Erik_13-Apr-11 5:16 
GeneralRe: Austin Danger Powers Pin
AspDotNetDev13-Apr-11 6:46
protectorAspDotNetDev13-Apr-11 6:46 
GeneralRe: Austin Danger Powers Pin
TorstenFrings13-Apr-11 23:09
TorstenFrings13-Apr-11 23:09 
GeneralRe: Austin Danger Powers Pin
AspDotNetDev20-Apr-11 7:08
protectorAspDotNetDev20-Apr-11 7:08 
GeneralRe: Austin Danger Powers Pin
TorstenFrings20-Apr-11 23:32
TorstenFrings20-Apr-11 23:32 
GeneralRe: Austin Danger Powers Pin
AspDotNetDev21-Apr-11 7:56
protectorAspDotNetDev21-Apr-11 7:56 
GeneralRe: Austin Danger Powers Pin
Jassim Makki16-Apr-11 5:43
Jassim Makki16-Apr-11 5:43 
GeneralRevolutionary new way to iterate indexable collections. Who needs to know how many elements they have? PinPopular
Vladimir Svyatski9-Apr-11 2:24
professionalVladimir Svyatski9-Apr-11 2:24 
GeneralRe: Revolutionary new way to iterate indexable collections. Who needs to know how many elements they have? PinPopular
Uros Calakovic9-Apr-11 6:55
Uros Calakovic9-Apr-11 6:55 
GeneralRe: Revolutionary new way to iterate indexable collections. Who needs to know how many elements they have? Pin
BillW3312-Apr-11 3:06
professionalBillW3312-Apr-11 3:06 
GeneralLong Post! Re: Revolutionary new way to iterate indexable collections. Who needs to know how many elements they have? [modified] Pin
Keith Barrow16-Apr-11 6:34
professionalKeith Barrow16-Apr-11 6:34 
GeneralRe: Long Post! Re: Revolutionary new way to iterate indexable collections. Who needs to know how many elements they have? Pin
Vladimir Svyatski18-Apr-11 5:54
professionalVladimir Svyatski18-Apr-11 5:54 
GeneralRe: Long Post! Re: Revolutionary new way to iterate indexable collections. Who needs to know how many elements they have? Pin
Keith Barrow18-Apr-11 6:43
professionalKeith Barrow18-Apr-11 6:43 
GeneralRe: Revolutionary new way to iterate indexable collections. Who needs to know how many elements they have? Pin
DragonsRightWing22-Apr-11 7:44
DragonsRightWing22-Apr-11 7:44 
GeneralI frequently type un-compilable code or comments to myself... Pin
puromtec16-Apr-11 15:13
puromtec16-Apr-11 15:13 
GeneralRe: I frequently type un-compilable code or comments to myself... Pin
Sander Rossel6-Apr-11 19:38
professionalSander Rossel6-Apr-11 19:38 

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.