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

 
GeneralYou need a flag? Why not create a file for that! PinPopular
peterchen25-Dec-07 8:44
peterchen25-Dec-07 8:44 
GeneralRe: You need a flag? Why not create a file for that! Pin
Paul Conrad26-Dec-07 9:39
professionalPaul Conrad26-Dec-07 9:39 
GeneralRe: You need a flag? Why not create a file for that! Pin
Alaric_3-Jan-08 3:47
professionalAlaric_3-Jan-08 3:47 
GeneralRe: You need a flag? Why not create a file for that! Pin
Alaric_3-Jan-08 4:04
professionalAlaric_3-Jan-08 4:04 
GeneralRe: You need a flag? Why not create a file for that! Pin
peterchen3-Jan-08 8:01
peterchen3-Jan-08 8:01 
GeneralVBA GoTo Hell PinPopular
GuyThiebaut24-Dec-07 3:32
professionalGuyThiebaut24-Dec-07 3:32 
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 
Xiangyang Liu wrote:
Is your anger mainly directed to VBA or to your colleague's code?


My colleagues lack of coding proficiency(What a Scrooge I am and it's Chistmas tomorrow).

Unfortunately I have not been supervising his coding enough.
It's a tricky area as happy coders make better coders - so I try to have a light touch when it comes to others code.

Although I do like to have a good old moan on CodeProject occasionally.


Xiangyang Liu wrote:
it is possible to write good code in VB/VBA, just like it is possible to write bad code in C++/C#.


I agree.

My experience is that VBA encourages bad techniques and habits.
To code in C# you have to have a relatively good understanding of programming methodology(am I wrong?).

You can throw anyone at VBA and it will throw something back up.


Xiangyang Liu wrote:
What if your colleague wrote the following instead?


I would have had nothing to complain about except for the formatting(there I go again).

Merry Christmas Smile | :)

Guy

You always pass failure on the way to success.


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) PinPopular
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 
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 PinPopular
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 

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.