Click here to Skip to main content
15,907,231 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.

 
GeneralWhat If (Re: VBA GoTo Hell) Pin
Xiangyang Liu 刘向阳24-Dec-07 5:12
Xiangyang Liu 刘向阳24-Dec-07 5:12 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
GuyThiebaut24-Dec-07 5:52
professionalGuyThiebaut24-Dec-07 5:52 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
Vasudevan Deepak Kumar3-Jan-08 22:01
Vasudevan Deepak Kumar3-Jan-08 22:01 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
CPallini24-Dec-07 6:22
mveCPallini24-Dec-07 6:22 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
PIEBALDconsult24-Dec-07 6:42
mvePIEBALDconsult24-Dec-07 6:42 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
GuyThiebaut24-Dec-07 13:09
professionalGuyThiebaut24-Dec-07 13:09 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
anony28-Dec-07 6:01
anony28-Dec-07 6:01 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
GuyThiebaut31-Dec-07 9:09
professionalGuyThiebaut31-Dec-07 9:09 
Tipster wrote:

Keep in mind that VBA is meant for simple macros


Not in my programming experience.

I have had to use VBA for some fairly sophisticated image manipulation in Word as well as using it extensively in Access and Excel.

Tipster wrote:
Gotos are considered bad... but used in a small macro situation they can greatly enhance readability if used properly


I'd like to see an example of that.

Ok I have used goto's (Oh I know the shame of it Sigh | :sigh: ) but really they should never be used if there is a better alternative.

When I was at University the only place a goto was ever allowed was in certain situations in COBOL.

I was taught to program properly through PASCAL and I think many people new to programming would benefit from this sort of education - i.e. structured programming.

Alright - rant over Wink | ;)

You always pass failure on the way to success.


GeneralRe: What If (Re: VBA GoTo Hell) Pin
peterchen25-Dec-07 8:57
peterchen25-Dec-07 8:57 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
Scott Barbour27-Dec-07 13:16
Scott Barbour27-Dec-07 13:16 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
Matt Sollars1-Jan-08 5:46
Matt Sollars1-Jan-08 5:46 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
GuyThiebaut3-Jan-08 3:29
professionalGuyThiebaut3-Jan-08 3:29 
GeneralRe: What If (Re: VBA GoTo Hell) Pin
Matt Sollars3-Jan-08 6:28
Matt Sollars3-Jan-08 6:28 
GeneralRe: VBA GoTo Hell Pin
Paul Conrad31-Dec-07 7:41
professionalPaul Conrad31-Dec-07 7:41 
GeneralRe: VBA GoTo Hell Pin
jgrogan3-Jan-08 3:25
jgrogan3-Jan-08 3:25 
GeneralRe: VBA GoTo Hell Pin
GuyThiebaut3-Jan-08 3:28
professionalGuyThiebaut3-Jan-08 3:28 
GeneralWorderful object names Pin
minsik072520-Dec-07 17:13
minsik072520-Dec-07 17:13 
GeneralRe: Worderful object names Pin
PIEBALDconsult20-Dec-07 17:39
mvePIEBALDconsult20-Dec-07 17:39 
GeneralRe: Worderful object names Pin
Yitzchok Dev20-Dec-07 18:25
Yitzchok Dev20-Dec-07 18:25 
JokeRe: Worderful object names PinPopular
Steve Echols20-Dec-07 20:22
Steve Echols20-Dec-07 20:22 
GeneralRe: Worderful object names Pin
Paul Conrad22-Dec-07 12:18
professionalPaul Conrad22-Dec-07 12:18 
GeneralRe: Worderful object names Pin
darkelv20-Dec-07 22:07
darkelv20-Dec-07 22:07 
GeneralRe: Worderful object names Pin
Xpnctoc22-Dec-07 19:02
Xpnctoc22-Dec-07 19:02 
JokeRe: Worderful object names Pin
Paddy Boyd20-Dec-07 22:43
Paddy Boyd20-Dec-07 22:43 
GeneralRe: Worderful object names Pin
tosch21-Dec-07 1:27
tosch21-Dec-07 1:27 

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.