Click here to Skip to main content
15,921,660 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
QuiJohn19-Aug-08 3:03
QuiJohn19-Aug-08 3:03 
GeneralRe: who wrote wrote this C program? Pin
Mladen Janković19-Aug-08 3:09
Mladen Janković19-Aug-08 3:09 
GeneralRe: who wrote wrote this C program? Pin
Dan Neely19-Aug-08 7:25
Dan Neely19-Aug-08 7:25 
GeneralRe: who wrote wrote this C program? Pin
Yusuf19-Aug-08 8:48
Yusuf19-Aug-08 8:48 
GeneralRe: who wrote wrote this C program? Pin
mattraffel22-Aug-08 8:36
mattraffel22-Aug-08 8:36 
GeneralRe: who wrote wrote this C program? Pin
BillW333-Sep-08 11:21
professionalBillW333-Sep-08 11:21 
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 
USE [Database1]
GO
/****** Object:  StoredProcedure [dbo].[CheckConnection]    Script Date: 08/14/2008 10:54:38 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
-- Validate User can hit the sql box. Basically doesn't do anything, except ensure I can see the sql box
-- Returns 1 if successful, 
-- 0 l if failed (one could ask, If I can't see the box, how is it going to return 0....I don't know).
-- 3/26/04 (via name omitted)
-- Assumes SQL Server 7.0 SP1 or better
ALTER  procedure [dbo].[CheckConnection]
@result char(1)  OUTPUT
AS 
set @result = "1"
RETURN


Laugh | :laugh:
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 
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 

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.