Click here to Skip to main content
15,891,993 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: Ugly or a horror? Pin
Paul Conrad2-Jul-08 17:50
professionalPaul Conrad2-Jul-08 17:50 
GeneralBonus points to anyone that can figure this one out. Pin
Andy Brummer8-Jun-08 8:29
sitebuilderAndy Brummer8-Jun-08 8:29 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
PIEBALDconsult8-Jun-08 9:22
mvePIEBALDconsult8-Jun-08 9:22 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer8-Jun-08 9:36
sitebuilderAndy Brummer8-Jun-08 9:36 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Graeme_Grant8-Jun-08 12:36
mvaGraeme_Grant8-Jun-08 12:36 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer8-Jun-08 18:38
sitebuilderAndy Brummer8-Jun-08 18:38 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Graeme_Grant9-Jun-08 0:12
mvaGraeme_Grant9-Jun-08 0:12 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer9-Jun-08 3:58
sitebuilderAndy Brummer9-Jun-08 3:58 
Yeah, since the dispose method closes database connections, then just wrap the object in a using and it will be automatically closed. OMG | :OMG:

They cut and pasted a standard dispose method including the check that it only runs once, so you can only close the database connection once, which is only an issue when you save one of the objects. D'Oh! | :doh:


I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon



RantRe: Bonus points to anyone that can figure this one out. Pin
bigbrownbeaver15-Jul-08 5:54
bigbrownbeaver15-Jul-08 5:54 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer15-Jul-08 6:00
sitebuilderAndy Brummer15-Jul-08 6:00 
GeneralSort by the first 3 characters Pin
leppie8-Jun-08 2:43
leppie8-Jun-08 2:43 
GeneralRe: Sort by the first 3 characters Pin
Zani Jnior8-Jun-08 2:52
Zani Jnior8-Jun-08 2:52 
GeneralRe: Sort by the first 3 characters [modified] Pin
PIEBALDconsult8-Jun-08 5:08
mvePIEBALDconsult8-Jun-08 5:08 
GeneralRe: Sort by the first 3 characters Pin
leppie8-Jun-08 5:32
leppie8-Jun-08 5:32 
GeneralRe: Sort by the first 3 characters Pin
leppie8-Jun-08 5:37
leppie8-Jun-08 5:37 
JokeRe: Sort by the first 3 characters Pin
KarstenK10-Jun-08 1:07
mveKarstenK10-Jun-08 1:07 
GeneralRe: Sort by the first 3 characters Pin
Pete O'Hanlon8-Jun-08 9:36
mvePete O'Hanlon8-Jun-08 9:36 
GeneralRe: Sort by the first 3 characters Pin
PIEBALDconsult8-Jun-08 17:14
mvePIEBALDconsult8-Jun-08 17:14 
GeneralThis really happened Pin
Zani Jnior8-Jun-08 2:08
Zani Jnior8-Jun-08 2:08 
GeneralRe: This really happened Pin
leppie8-Jun-08 2:36
leppie8-Jun-08 2:36 
GeneralRe: This really happened Pin
Zani Jnior8-Jun-08 2:42
Zani Jnior8-Jun-08 2:42 
GeneralRe: This really happened Pin
leppie8-Jun-08 2:45
leppie8-Jun-08 2:45 
GeneralRe: This really happened Pin
Rick York9-Jun-08 21:19
mveRick York9-Jun-08 21:19 
GeneralRe: This really happened Pin
Megidolaon18-Jun-08 3:52
Megidolaon18-Jun-08 3:52 
GeneralRe: This really happened Pin
Paul Conrad2-Jul-08 19:55
professionalPaul Conrad2-Jul-08 19:55 

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.