Click here to Skip to main content
15,891,253 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: Guess it does not contains 'Contains' Pin
VallarasuS22-Sep-11 2:02
VallarasuS22-Sep-11 2:02 
GeneralAnother GoTo Hell Pin
Rob Grainger21-Sep-11 5:22
Rob Grainger21-Sep-11 5:22 
GeneralRe: Another GoTo Hell Pin
Nagy Vilmos21-Sep-11 5:39
professionalNagy Vilmos21-Sep-11 5:39 
GeneralRe: Another GoTo Hell Pin
Rob Grainger22-Sep-11 5:40
Rob Grainger22-Sep-11 5:40 
GeneralRe: Another GoTo Hell Pin
StM0n22-Sep-11 7:49
StM0n22-Sep-11 7:49 
GeneralRe: Another GoTo Hell Pin
Stefan_Lang30-Sep-11 4:05
Stefan_Lang30-Sep-11 4:05 
GeneralRe: Another GoTo Hell Pin
Allan Thomas23-Sep-11 19:40
Allan Thomas23-Sep-11 19:40 
GeneralSqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
Vasudevan Deepak Kumar9-Sep-11 5:35
Vasudevan Deepak Kumar9-Sep-11 5:35 
I just had an opportunity to review a code of a small software organization operating out of Virginia with a couple of offices in Chennai and New Delhi.

Two major 'gems' in their code was:

1) Inventing their own App_Code folder as XYZApp_Code
2) SqlConnection objects sitting in Session directly. Also a good bunch of their code directly refers the objects and opens it without evening checking for NULL.

The app simply failed against our framework which needed SessionState in SQLServer for web farm requirements and when this was coming up to a meeting with their so-called president/CEO, the elite guy responded 'Our products are unique business workflow designers in the market. They are not like the usual Microsoft asp.net websites. We need to make ConnectionObjects that **never** close at all throughout the life-cycle of the application'

What would you respond to this type of attitude?
Vasudevan Deepak Kumar
Personal Homepage
Tech Gossips


The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!




JokeRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
Julien Villers9-Sep-11 6:24
professionalJulien Villers9-Sep-11 6:24 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
Vasudevan Deepak Kumar9-Sep-11 7:23
Vasudevan Deepak Kumar9-Sep-11 7:23 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
RobCroll13-Sep-11 16:53
RobCroll13-Sep-11 16:53 
GeneralRe: SqlConnection Object in Session and President/CEO's 'vacuum claim' Pin
fjdiewornncalwe14-Sep-11 3:33
professionalfjdiewornncalwe14-Sep-11 3:33 
GeneralIs this the case to select case? Pin
Alberto Biasiutti8-Sep-11 6:07
Alberto Biasiutti8-Sep-11 6:07 
GeneralRe: Is this the case to select case? Pin
RCoate8-Sep-11 12:27
RCoate8-Sep-11 12:27 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti8-Sep-11 20:46
Alberto Biasiutti8-Sep-11 20:46 
GeneralRe: Is this the case to select case? Pin
BotCar8-Sep-11 23:54
BotCar8-Sep-11 23:54 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 2:42
Alberto Biasiutti9-Sep-11 2:42 
GeneralRe: Is this the case to select case? Pin
V.9-Sep-11 2:12
professionalV.9-Sep-11 2:12 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 3:00
Alberto Biasiutti9-Sep-11 3:00 
GeneralRe: Is this the case to select case? Pin
V.9-Sep-11 3:05
professionalV.9-Sep-11 3:05 
GeneralRe: Is this the case to select case? Pin
Nagy Vilmos9-Sep-11 5:10
professionalNagy Vilmos9-Sep-11 5:10 
GeneralRe: Is this the case to select case? Pin
Alberto Biasiutti9-Sep-11 5:21
Alberto Biasiutti9-Sep-11 5:21 
GeneralRe: Is this the case to select case? Pin
OriginalGriff14-Sep-11 3:12
mveOriginalGriff14-Sep-11 3:12 
GeneralRe: Is this the case to select case? Pin
Nagy Vilmos14-Sep-11 3:39
professionalNagy Vilmos14-Sep-11 3:39 
GeneralNeeded a series of random numbers PinPopular
Bert Mitton8-Sep-11 3:22
professionalBert Mitton8-Sep-11 3:22 

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.