Click here to Skip to main content
15,892,537 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: Informative Comments Pin
CARPETBURNER1-Feb-08 2:24
CARPETBURNER1-Feb-08 2:24 
GeneralRe: Informative Comments PinPopular
CPallini1-Feb-08 2:30
mveCPallini1-Feb-08 2:30 
GeneralTemplatized file Pin
jhwurmbach4-Feb-08 2:34
jhwurmbach4-Feb-08 2:34 
GeneralRe: Templatized file Pin
Jörgen Sigvardsson5-Feb-08 2:59
Jörgen Sigvardsson5-Feb-08 2:59 
GeneralRe: Templatized file Pin
Draugnar7-Feb-08 7:18
Draugnar7-Feb-08 7:18 
GeneralASP.NET - Trace.axd includes Application variables Pin
Ashley van Gerven31-Jan-08 14:10
Ashley van Gerven31-Jan-08 14:10 
GeneralRe: ASP.NET - Trace.axd includes Application variables Pin
Paddy Boyd1-Feb-08 4:22
Paddy Boyd1-Feb-08 4:22 
GeneralRe: ASP.NET - Trace.axd includes Application variables Pin
Ashley van Gerven1-Feb-08 5:12
Ashley van Gerven1-Feb-08 5:12 
Paddy Boyd wrote:
forget to turn off debugging code

Yep, sloppy. Makes a stronger case for specifically scheduling code-reviews a while after initial development.

Paddy Boyd wrote:
pretty stupid stuff around your storing of connections

OK, so apart from this potential scenario, what reason would you give me for NOT storing a connection string in the application state? (Bear in mind it has to call Server.MapPath.. so ConfigurationSettings.AppSettings is no good - and I'm talking .NET 1.1 here).

Paddy Boyd wrote:
Subtle.

Yes it is. Especially for traditional ASP programmers - you just don't expect your Application variables to ever be visible to the public like that.

"For fifty bucks I'd put my face in their soup and blow." - George Costanza

CP article: SmartPager - a Flickr-style pager control with go-to-page popup layer.

QuestionHelp! NHibernate data saving problem. Pin
Harry Sun29-Jan-08 23:02
Harry Sun29-Jan-08 23:02 
GeneralRe: Help! NHibernate data saving problem. Pin
StM0n30-Jan-08 1:22
StM0n30-Jan-08 1:22 
GeneralRe: Help! NHibernate data saving problem. Pin
Pete O'Hanlon30-Jan-08 2:24
mvePete O'Hanlon30-Jan-08 2:24 
GeneralRe: Help! NHibernate data saving problem. Pin
Justin Perez30-Jan-08 2:31
Justin Perez30-Jan-08 2:31 
GeneralRe: Help! NHibernate data saving problem. PinPopular
Justin Perez30-Jan-08 2:30
Justin Perez30-Jan-08 2:30 
GeneralRe: Help! NHibernate data saving problem. Pin
Pete O'Hanlon30-Jan-08 2:41
mvePete O'Hanlon30-Jan-08 2:41 
Generalwho's who Pin
Luc Pattyn31-Jan-08 1:38
sitebuilderLuc Pattyn31-Jan-08 1:38 
GeneralRe: who's who Pin
Pete O'Hanlon31-Jan-08 3:01
mvePete O'Hanlon31-Jan-08 3:01 
GeneralRe: Help! NHibernate data saving problem. Pin
Harry Sun30-Jan-08 16:55
Harry Sun30-Jan-08 16:55 
GeneralRe: Help! NHibernate data saving problem. Pin
leppie30-Jan-08 21:47
leppie30-Jan-08 21:47 
GeneralRe: Help! NHibernate data saving problem. Pin
Harry Sun31-Jan-08 2:05
Harry Sun31-Jan-08 2:05 
GeneralRe: Help! NHibernate data saving problem. Pin
Richard.Parsons31-Jan-08 5:20
Richard.Parsons31-Jan-08 5:20 
GeneralRe: Help! NHibernate data saving problem. Pin
DavidNohejl31-Jan-08 5:48
DavidNohejl31-Jan-08 5:48 
GeneralRe: Help! NHibernate data saving problem. Pin
Harry Sun31-Jan-08 14:17
Harry Sun31-Jan-08 14:17 
GeneralWebservice!!!! PinPopular
jchigg200025-Jan-08 10:03
jchigg200025-Jan-08 10:03 
GeneralRe: Webservice!!!! PinPopular
Pete O'Hanlon25-Jan-08 10:22
mvePete O'Hanlon25-Jan-08 10:22 
GeneralRe: Webservice!!!! Pin
Paul Conrad26-Jan-08 14:17
professionalPaul Conrad26-Jan-08 14:17 

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.