Click here to Skip to main content
15,868,306 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: HTML 5 Application. Pin
AlphaDeltaTheta12-Jun-13 22:02
AlphaDeltaTheta12-Jun-13 22:02 
GeneralRe: HTML 5 Application. Pin
User 1006066512-Jun-13 22:16
User 1006066512-Jun-13 22:16 
GeneralRe: HTML 5 Application. Pin
AlphaDeltaTheta12-Jun-13 22:21
AlphaDeltaTheta12-Jun-13 22:21 
GeneralMessage Closed Pin
12-Jun-13 22:24
User 1006066512-Jun-13 22:24 
GeneralRe: HTML 5 Application. Pin
AlphaDeltaTheta12-Jun-13 22:32
AlphaDeltaTheta12-Jun-13 22:32 
JokeRe: HTML 5 Application. Pin
jim lahey17-Jun-13 10:15
jim lahey17-Jun-13 10:15 
AnswerRe: HTML 5 Application. Pin
AlphaDeltaTheta18-Jun-13 17:09
AlphaDeltaTheta18-Jun-13 17:09 
GeneralBug of the Day (2) PinPopular
Rob Grainger12-Jun-13 4:47
Rob Grainger12-Jun-13 4: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:

SQL
ALTER function [dbo].[ufn_GetNextID](@IDTable as varchar(100), @IDColumn as varchar(100))
returns integer
as
begin
	declare @NewID as integer
	set @NewID=0

	return @NewID
end

"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) Pin
Brisingr Aerowing12-Jun-13 6:30
professionalBrisingr Aerowing12-Jun-13 6:30 
JokeRe: Bug of the Day (2) Pin
Richard C Bishop17-Jun-13 10:43
professionalRichard C Bishop17-Jun-13 10:43 
GeneralRe: Bug of the Day (2) Pin
Rob Grainger18-Jun-13 1:01
Rob Grainger18-Jun-13 1:01 
JokeRe: Bug of the Day (2) Pin
Richard C Bishop18-Jun-13 4:01
professionalRichard C Bishop18-Jun-13 4:01 
GeneralBug of the day Pin
Delphi4ever12-Jun-13 4:18
Delphi4ever12-Jun-13 4:18 
GeneralRe: Bug of the day Pin
Richard Deeming12-Jun-13 4:25
mveRichard Deeming12-Jun-13 4:25 
GeneralRe: Bug of the day Pin
BobJanova12-Jun-13 4:37
BobJanova12-Jun-13 4:37 
GeneralRe: Bug of the day Pin
Klaus-Werner Konrad12-Jun-13 22:39
Klaus-Werner Konrad12-Jun-13 22:39 
GeneralRe: Bug of the day Pin
BobJanova12-Jun-13 23:39
BobJanova12-Jun-13 23:39 
GeneralRe: Bug of the day Pin
Lutosław14-Jun-13 1:13
Lutosław14-Jun-13 1:13 
GeneralRe: Bug of the day Pin
Klaus-Werner Konrad14-Jun-13 2:35
Klaus-Werner Konrad14-Jun-13 2:35 
GeneralRe: Bug of the day Pin
BobJanova14-Jun-13 3:31
BobJanova14-Jun-13 3:31 
GeneralRe: Bug of the day Pin
BobJanova14-Jun-13 3:30
BobJanova14-Jun-13 3:30 
GeneralRe: Bug of the day Pin
Lutosław14-Jun-13 4:31
Lutosław14-Jun-13 4:31 
GeneralRe: Bug of the day Pin
Ravi Bhavnani12-Jun-13 5:42
professionalRavi Bhavnani12-Jun-13 5:42 
GeneralRe: Bug of the day Pin
Thomas Daniels14-Jun-13 2:23
mentorThomas Daniels14-Jun-13 2:23 
GeneralRe: Bug of the day Pin
anton_l12-Jun-13 19:53
anton_l12-Jun-13 19:53 

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.