Click here to Skip to main content

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, embarrasing 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: HTML 5 Application. PinmemberAmitosh Swain12-Jun-13 23:32 
JokeRe: HTML 5 Application. Pinmemberjim lahey17-Jun-13 11:15 
AnswerRe: HTML 5 Application. PinmemberAmitosh Swain18-Jun-13 18:09 
GeneralBug of the Day (2) PinmemberRob Grainger12-Jun-13 5:47 
I can beat that - I discovered a bug where new records were failing to be added.
After a number of false trails, I homed in on the following SQL user function:
ALTER function [dbo].[ufn_GetNextID](@IDTable as varchar(100), @IDColumn as varchar(100))
returns integer
	declare @NewID as integer
	set @NewID=0
	return @NewID
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralRe: Bug of the Day (2) PinprofessionalBrisingr Aerowing12-Jun-13 7:30 
JokeRe: Bug of the Day (2) Pinmemberrichcb17-Jun-13 11:43 
GeneralRe: Bug of the Day (2) PinmemberRob Grainger18-Jun-13 2:01 
JokeRe: Bug of the Day (2) Pinmemberrichcb18-Jun-13 5:01 
GeneralBug of the day PinmemberDelphi4ever12-Jun-13 5:18 
GeneralRe: Bug of the day PinprofessionalRichard Deeming12-Jun-13 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web02 | 2.8.150327.1 | Last Updated 31 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid