Click here to Skip to main content
15,895,877 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: What "for" ? Pin
Nemanja Trifunovic7-Mar-08 4:40
Nemanja Trifunovic7-Mar-08 4:40 
GeneralRe: What "for" ? Pin
Nemanja Trifunovic7-Mar-08 4:38
Nemanja Trifunovic7-Mar-08 4:38 
GeneralRe: What "for" ? Pin
Aamir Butt18-Mar-08 1:09
Aamir Butt18-Mar-08 1:09 
GeneralRe: What "for" ? Pin
fat_boy15-Apr-08 4:42
fat_boy15-Apr-08 4:42 
GeneralRe: What "for" ? Pin
Rob Grainger14-May-08 10:28
Rob Grainger14-May-08 10:28 
GeneralRe: What "for" ? Pin
leppie7-Mar-08 3:20
leppie7-Mar-08 3:20 
GeneralRe: What "for" ? Pin
Paul Conrad7-Mar-08 11:03
professionalPaul Conrad7-Mar-08 11:03 
GeneralHorror, or not? Pin
Philip Laureano26-Feb-08 22:10
Philip Laureano26-Feb-08 22:10 
A few years back, I used to work on an 'enterprise' system that touted itself for the 'increased' data accuracy that it provides its clients, and one day, my employers wanted me to change their DB schema to accommodate a new feature for their system, except there was one problem: the database had no referential integrity! Each table had a primary key and some foreign keys pointing to other tables, but none of the tables were actually linked together. When I asked the 'senior' programmer why they did this, his explanation was that their system maintained the links automatically, despite the fact that the DB itself was designed to have 'soft' deletes, and none of these soft deletes actually cascaded across the entire system. When I browsed the entire code base, however, there was nothing to indicate this sort of behavior. In short, the whole DB (and the application) was a mess, and not even the upper management knew about it.

Now my first impression of this was a "WTF? That's just...immoral!", but it got me thinking...is not linking the DB tables together a viable strategy?

Traditional DBA wisdom (from "within the box", per se) would say that referential integrity using the DB is important, but is it possible to do with out it?

Anyway, here's my question: Is it a horror, or not? And if it isn't a horror, why would you say it isn't?

Do you know...LinFu?

GeneralRe: Horror, or not? Pin
darkelv26-Feb-08 22:48
darkelv26-Feb-08 22:48 
GeneralRe: Horror, or not? Pin
Vasudevan Deepak Kumar27-Feb-08 1:13
Vasudevan Deepak Kumar27-Feb-08 1:13 
GeneralRe: Horror, or not? Pin
Paul Conrad27-Feb-08 6:41
professionalPaul Conrad27-Feb-08 6:41 
GeneralRe: Horror, or not? Pin
Philip Laureano27-Feb-08 21:52
Philip Laureano27-Feb-08 21:52 
GeneralRe: Horror, or not? Pin
VentsyV10-Mar-08 12:23
VentsyV10-Mar-08 12:23 
GeneralRe: Horror, or not? Pin
Philip Laureano10-Mar-08 18:50
Philip Laureano10-Mar-08 18:50 
GeneralRe: Horror, or not? Pin
Megidolaon18-Jun-08 4:28
Megidolaon18-Jun-08 4:28 
GeneralRe: Horror, or not? Pin
Pete O'Hanlon27-Feb-08 0:39
mvePete O'Hanlon27-Feb-08 0:39 
GeneralRe: Horror, or not? Pin
Vasudevan Deepak Kumar27-Feb-08 1:15
Vasudevan Deepak Kumar27-Feb-08 1:15 
GeneralRe: Horror, or not? Pin
Expert Coming27-Feb-08 5:51
Expert Coming27-Feb-08 5:51 
GeneralRe: Horror, or not? Pin
leppie28-Feb-08 3:51
leppie28-Feb-08 3:51 
GeneralRe: Horror, or not? Pin
Expert Coming28-Feb-08 12:27
Expert Coming28-Feb-08 12:27 
GeneralRe: Horror, or not? Pin
PIEBALDconsult27-Feb-08 6:48
mvePIEBALDconsult27-Feb-08 6:48 
GeneralRe: Horror, or not? Pin
Pete O'Hanlon27-Feb-08 9:24
mvePete O'Hanlon27-Feb-08 9:24 
GeneralRe: Horror, or not? Pin
PIEBALDconsult27-Feb-08 15:51
mvePIEBALDconsult27-Feb-08 15:51 
GeneralRe: Horror, or not? Pin
User 274316227-Feb-08 22:48
User 274316227-Feb-08 22:48 
GeneralRe: Horror, or not? Pin
leppie28-Feb-08 3:32
leppie28-Feb-08 3:32 

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.