Click here to Skip to main content
15,911,132 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: who wrote wrote this C program? Pin
Paul Conrad21-Aug-08 16:50
professionalPaul Conrad21-Aug-08 16:50 
JokeRan across this sql the other day. PinPopular
Austin Harris15-Aug-08 8:44
Austin Harris15-Aug-08 8:44 
GeneralRe: Ran across this sql the other day. Pin
Pete O'Hanlon15-Aug-08 8:54
mvePete O'Hanlon15-Aug-08 8:54 
GeneralRe: Ran across this sql the other day. Pin
PIEBALDconsult15-Aug-08 12:06
mvePIEBALDconsult15-Aug-08 12:06 
GeneralRe: Ran across this sql the other day. Pin
Brent Lamborn15-Aug-08 9:32
Brent Lamborn15-Aug-08 9:32 
GeneralRe: Ran across this sql the other day. Pin
Paul Conrad16-Aug-08 5:52
professionalPaul Conrad16-Aug-08 5:52 
GeneralRe: Ran across this sql the other day. Pin
Yusuf16-Aug-08 17:27
Yusuf16-Aug-08 17:27 
GeneralRe: Ran across this sql the other day. Pin
Mike Dimmick17-Aug-08 10:17
Mike Dimmick17-Aug-08 10:17 
We used to have a standard stored procedure that did that. I pointed out that a successful 'ping' didn't mean anything at all: the server could be down or the connection lost by the time that the next call was made. It's been phased out.

Someone did claim that there was a problem with some old version of ADO that wouldn't return the results of the first stored procedure call you made after connecting, and so you called a dummy procedure before what you actually wanted to do. I'm skeptical - I've never seen a bug report on that. It smells of cargo-cult programming, and of the worst kind: chinese-whispers cargo-cult programming, where the implementor has heard that there's a problem and has heard that this will fix it, but has not experienced the problem themselves.


DoEvents: Generating unexpected recursion since 1991

GeneralPractice safe programming ! Pin
User 4041112-Aug-08 23:13
User 4041112-Aug-08 23:13 
GeneralRe: Practice safe programming ! Pin
Anand Desai12-Aug-08 23:28
Anand Desai12-Aug-08 23:28 
GeneralRe: Practice safe programming ! Pin
Nemanja Trifunovic13-Aug-08 7:18
Nemanja Trifunovic13-Aug-08 7:18 
GeneralRe: Practice safe programming ! Pin
Kevin McFarlane13-Aug-08 9:49
Kevin McFarlane13-Aug-08 9:49 
GeneralRe: Practice safe programming ! Pin
Nemanja Trifunovic13-Aug-08 10:59
Nemanja Trifunovic13-Aug-08 10:59 
GeneralRe: Practice safe programming ! Pin
Yusuf13-Aug-08 15:24
Yusuf13-Aug-08 15:24 
GeneralRe: Practice safe programming ! Pin
Jörgen Sigvardsson22-Aug-08 10:23
Jörgen Sigvardsson22-Aug-08 10:23 
GeneralRe: Practice safe programming ! Pin
geoffs14-Aug-08 9:23
geoffs14-Aug-08 9:23 
GeneralRe: Practice safe programming ! Pin
Johann Gerell21-Aug-08 1:11
Johann Gerell21-Aug-08 1:11 
GeneralRe: Practice safe programming ! Pin
Paul Conrad13-Aug-08 9:27
professionalPaul Conrad13-Aug-08 9:27 
GeneralRe: Practice safe programming ! Pin
KarstenK14-Aug-08 3:48
mveKarstenK14-Aug-08 3:48 
GeneralRe: Practice safe programming ! Pin
Paul Conrad14-Aug-08 6:21
professionalPaul Conrad14-Aug-08 6:21 
GeneralCalling a subroutine Pin
Timothy Baldwin12-Aug-08 11:34
Timothy Baldwin12-Aug-08 11:34 
GeneralRe: Calling a subroutine Pin
Chris Maunder12-Aug-08 16:42
cofounderChris Maunder12-Aug-08 16:42 
GeneralRe: Calling a subroutine Pin
Mike Dimmick17-Aug-08 10:39
Mike Dimmick17-Aug-08 10:39 
GeneralRe: Calling a subroutine Pin
Timothy Baldwin21-Aug-08 5:14
Timothy Baldwin21-Aug-08 5:14 
GeneralRe: Calling a subroutine Pin
supercat917-Aug-08 11:59
supercat917-Aug-08 11:59 

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.