Click here to Skip to main content
15,886,639 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: Power beep Pin
Sander Rossel24-Sep-11 3:24
professionalSander Rossel24-Sep-11 3:24 
GeneralRe: Power beep Pin
Pravin Patil, Mumbai25-Sep-11 19:40
Pravin Patil, Mumbai25-Sep-11 19:40 
GeneralGuess it does not contains 'Contains' Pin
VallarasuS22-Sep-11 1:37
VallarasuS22-Sep-11 1:37 
GeneralRe: Guess it does not contains 'Contains' Pin
Nagy Vilmos22-Sep-11 1:46
professionalNagy Vilmos22-Sep-11 1:46 
GeneralRe: Guess it does not contains 'Contains' Pin
VallarasuS22-Sep-11 2:02
VallarasuS22-Sep-11 2:02 
GeneralAnother GoTo Hell Pin
Rob Grainger21-Sep-11 5:22
Rob Grainger21-Sep-11 5:22 
GeneralRe: Another GoTo Hell Pin
Nagy Vilmos21-Sep-11 5:39
professionalNagy Vilmos21-Sep-11 5:39 
GeneralRe: Another GoTo Hell Pin
Rob Grainger22-Sep-11 5:40
Rob Grainger22-Sep-11 5:40 
Not really a co-worker, he'd left by the time I joined the company - its actually VBA, but you're on the right lines.

I wonder when Microsoft will get round to beefing up VBA in Office app's to a parity with .NET, if ever.

The same dev was fond of bad names too. So a function called "CheckXXX" may actually end up updating XXX. Consequently, I have to actually look at every damn function to see what its really doing by studying the code. I'm working on a bit no-ones touched for years but a bug has surfaced - its probably got lots there, but nobody wants to touch the code on a "if its not broke don't fix it", but we get miscelleaneous data errors which lead me to suspect it is broke.

I'm strongly considering moving on.

To me, even use of VB doesn't excuse that sort of coding. That was considered bad when "Goto considered harmful" was written, and I was 1 year old then!!!

When you can fit so many no-no's into such a short function, imagine what its like when you hit one of his 1000-liners. My head hurts.
GeneralRe: Another GoTo Hell Pin
StM0n22-Sep-11 7:49
StM0n22-Sep-11 7:49 
GeneralRe: Another GoTo Hell Pin
Stefan_Lang30-Sep-11 4:05
Stefan_Lang30-Sep-11 4:05 
GeneralRe: Another GoTo Hell Pin
Allan Thomas23-Sep-11 19:40
Allan Thomas23-Sep-11 19:40 
GeneralSqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
Vasudevan Deepak Kumar9-Sep-11 5:35
Vasudevan Deepak Kumar9-Sep-11 5:35 
JokeRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' PinPopular
Julien Villers9-Sep-11 6:24
professionalJulien Villers9-Sep-11 6:24 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
Vasudevan Deepak Kumar9-Sep-11 7:23
Vasudevan Deepak Kumar9-Sep-11 7:23 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
RobCroll13-Sep-11 16:53
RobCroll13-Sep-11 16:53 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
fjdiewornncalwe14-Sep-11 3:33
professionalfjdiewornncalwe14-Sep-11 3:33 
GeneralIs this the case to select case? PinPopular
Alberto Biasiutti8-Sep-11 6:07
Alberto Biasiutti8-Sep-11 6:07 
GeneralRe: Is this the case to select case? PinPopular
RCoate8-Sep-11 12:27
RCoate8-Sep-11 12:27 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti8-Sep-11 20:46
Alberto Biasiutti8-Sep-11 20:46 
GeneralRe: Is this the case to select case? Pin
BotCar8-Sep-11 23:54
BotCar8-Sep-11 23:54 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 2:42
Alberto Biasiutti9-Sep-11 2:42 
GeneralRe: Is this the case to select case? Pin
V.9-Sep-11 2:12
professionalV.9-Sep-11 2:12 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 3:00
Alberto Biasiutti9-Sep-11 3:00 
GeneralRe: Is this the case to select case? Pin
V.9-Sep-11 3:05
professionalV.9-Sep-11 3:05 
GeneralRe: Is this the case to select case? Pin
Nagy Vilmos9-Sep-11 5:10
professionalNagy Vilmos9-Sep-11 5:10 

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.