Click here to Skip to main content
15,923,789 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: Horror, or not? Pin
Dan Neely28-Feb-08 6:58
Dan Neely28-Feb-08 6:58 
GeneralRe: Horror, or not? Pin
PIEBALDconsult28-Feb-08 16:26
mvePIEBALDconsult28-Feb-08 16:26 
GeneralRe: Horror, or not? Pin
AEternal28-Feb-08 11:34
AEternal28-Feb-08 11:34 
GeneralRe: Horror, or not? Pin
Dexterus4-Mar-08 1:48
Dexterus4-Mar-08 1:48 
GeneralRe: Horror, or not? Pin
KramII4-Mar-08 2:29
KramII4-Mar-08 2:29 
GeneralRe: Horror, or not? Pin
ke4vtw4-Mar-08 15:51
ke4vtw4-Mar-08 15:51 
GeneralRe: Horror, or not? Pin
Chetan Patel11-Mar-08 2:10
Chetan Patel11-Mar-08 2:10 
GeneralPessimistic Development PinPopular
Vasudevan Deepak Kumar25-Feb-08 18:36
Vasudevan Deepak Kumar25-Feb-08 18:36 
Recently I was going through a code written by one of the developer. I just got startled by the way a user message confirmation page was named and the message was being passed to it.

It was a little user information page named as 'ErrorDisplay.aspx' and he is passing message to it like ?lErrorMessage=Data has been updated successfully&sErrorIdentificationNumber=4232343523&ErrorDateTime=

I was just curious and tryed to enter a alert('Dog') and it immediately pounced back to a 'Potentially Dangerous Page...' from .NET Framework.

At the glance, I could guess the following are the horrors in this part of the code:

1) Wrong nomenclature to the file
2) Too big variable names. After all, QueryString is limited right? The developer is not expectant of any appraisal from the user.
3) Cross Site Scripting vulnerability
4) Bad and inconsistent variable naming.

When I was thinking over this, a few days back, we had a discussion in a technical forum regarding dependency of Exceptions for normal application flow, which is really a strain on the server besides the pathetically poor programming practice.

Vasudevan Deepak Kumar
Personal Homepage
Tech Gossips

A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson


Questionhow to know the job retention capabilities of printer Pin
Member 273427024-Feb-08 18:17
Member 273427024-Feb-08 18:17 
AnswerRe: how to know the job retention capabilities of printer Pin
Himanshu Joshi24-Feb-08 18:29
Himanshu Joshi24-Feb-08 18:29 
GeneralRe: how to know the job retention capabilities of printer Pin
Paul Conrad25-Feb-08 8:13
professionalPaul Conrad25-Feb-08 8:13 
AnswerRe: how to know the job retention capabilities of printer Pin
MrPlankton25-Feb-08 8:47
MrPlankton25-Feb-08 8:47 
GeneralRe: how to know the job retention capabilities of printer Pin
Ri Qen-Sin25-Feb-08 11:48
Ri Qen-Sin25-Feb-08 11:48 
GeneralRe: how to know the job retention capabilities of printer Pin
Nilesh Hapse26-Feb-08 21:37
Nilesh Hapse26-Feb-08 21:37 
GeneralRe: how to know the job retention capabilities of printer PinPopular
NormDroid27-Feb-08 2:23
professionalNormDroid27-Feb-08 2:23 
GeneralRe: how to know the job retention capabilities of printer Pin
Member 273427027-Feb-08 17:54
Member 273427027-Feb-08 17:54 
GeneralRe: how to know the job retention capabilities of printer Pin
Pete O'Hanlon27-Feb-08 22:26
mvePete O'Hanlon27-Feb-08 22:26 
GeneralRe: how to know the job retention capabilities of printer Pin
Member 273427027-Feb-08 23:22
Member 273427027-Feb-08 23:22 
GeneralRe: how to know the job retention capabilities of printer Pin
Dan Neely28-Feb-08 2:50
Dan Neely28-Feb-08 2:50 
GeneralRe: how to know the job retention capabilities of printer Pin
Pete O'Hanlon28-Feb-08 4:16
mvePete O'Hanlon28-Feb-08 4:16 
GeneralRe: how to know the job retention capabilities of printer Pin
Ri Qen-Sin28-Feb-08 18:40
Ri Qen-Sin28-Feb-08 18:40 
GeneralInt? What's "int"? Pin
Brady Kelly23-Feb-08 2:23
Brady Kelly23-Feb-08 2:23 
GeneralRe: Int? What's "int"? Pin
PIEBALDconsult23-Feb-08 4:06
mvePIEBALDconsult23-Feb-08 4:06 
JokeRe: Int? What's "int"? Pin
Jason Lepack (LeppyR64)25-Feb-08 9:22
Jason Lepack (LeppyR64)25-Feb-08 9:22 
GeneralRe: Int? What's "int"? Pin
leppie23-Feb-08 22:04
leppie23-Feb-08 22:04 

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.