Click here to Skip to main content
15,885,546 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: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed20-Jun-13 0:26
professionalMohammed Hameed20-Jun-13 0:26 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
V.20-Jun-13 0:31
professionalV.20-Jun-13 0:31 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed20-Jun-13 1:11
professionalMohammed Hameed20-Jun-13 1:11 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Richard Deeming20-Jun-13 1:36
mveRichard Deeming20-Jun-13 1:36 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
V.20-Jun-13 1:39
professionalV.20-Jun-13 1:39 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
AnalogNerd24-Jun-13 2:26
AnalogNerd24-Jun-13 2:26 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed24-Jun-13 2:37
professionalMohammed Hameed24-Jun-13 2:37 
GeneralRelational database reinvented as a flat file... Pin
johnsyd19-Jun-13 19:58
johnsyd19-Jun-13 19:58 
Just remembered another stunning design stumble in the same area as the multiple database scenario ... they had a SQL table and decided that because the majority of requests required the output in XML format, it would be "best practice" (that weasel word again) to convert the entire table into a blob of XML. They then dropped the original table and recreated it as a table with 1 row and 1 column, into which they inserted the XML blob.

Unfortunately they had not realised that most requests wanted a subset of the table, not the entire table. So for each request, the XML blob had to be converted to a temp table, the appropriate SELECT run on it, and the results sent back to the requester as XML ... Phew!! Inserts, updates and deletes had to go through the same process: XML blob -> temp table -> apply insert/update/delete -> convert back to XML blob, save back in the "table".
GeneralRe: Relational database reinvented as a flat file... Pin
AlexCode19-Jun-13 20:25
professionalAlexCode19-Jun-13 20:25 
GeneralRe: Relational database reinvented as a flat file... Pin
johnsyd19-Jun-13 21:22
johnsyd19-Jun-13 21:22 
GeneralRe: Relational database reinvented as a flat file... Pin
NormDroid19-Jun-13 20:43
professionalNormDroid19-Jun-13 20:43 
GeneralRe: Relational database reinvented as a flat file... Pin
AlexCode19-Jun-13 21:26
professionalAlexCode19-Jun-13 21:26 
GeneralRe: Relational database reinvented as a flat file... Pin
Richard Deeming20-Jun-13 1:32
mveRichard Deeming20-Jun-13 1:32 
GeneralRe: Relational database reinvented as a flat file... Pin
jim lahey20-Jun-13 1:57
jim lahey20-Jun-13 1:57 
GeneralWhy stick to just one database? Pin
johnsyd19-Jun-13 17:52
johnsyd19-Jun-13 17:52 
GeneralRe: Why stick to just one database? Pin
krumia19-Jun-13 17:55
krumia19-Jun-13 17:55 
GeneralRe: Why stick to just one database? Pin
johnsyd19-Jun-13 18:07
johnsyd19-Jun-13 18:07 
GeneralRe: Why stick to just one database? Pin
PIEBALDconsult19-Jun-13 18:37
mvePIEBALDconsult19-Jun-13 18:37 
GeneralRe: Why stick to just one database? Pin
vonb19-Jun-13 19:25
vonb19-Jun-13 19:25 
GeneralRe: Why stick to just one database? Pin
AlexCode19-Jun-13 20:23
professionalAlexCode19-Jun-13 20:23 
GeneralRe: Why stick to just one database? Pin
Adriaan Davel19-Jun-13 21:55
Adriaan Davel19-Jun-13 21:55 
AnswerRe: Why stick to just one database? Pin
Gaston Verelst19-Jun-13 20:28
Gaston Verelst19-Jun-13 20:28 
GeneralRe: Why stick to just one database? Pin
cjb11019-Jun-13 21:15
cjb11019-Jun-13 21:15 
GeneralRe: Why stick to just one database? Pin
johnsyd25-Jun-13 15:01
johnsyd25-Jun-13 15:01 
GeneralRe: Why stick to just one database? Pin
Adriaan Davel19-Jun-13 21:59
Adriaan Davel19-Jun-13 21:59 

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.