Click here to Skip to main content
15,891,828 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: The next big paradigm shift in database design Pin
Bernhard Hiller23-Mar-10 0:35
Bernhard Hiller23-Mar-10 0:35 
GeneralRe: The next big paradigm shift in database design Pin
TommyTomToms23-Mar-10 2:39
TommyTomToms23-Mar-10 2:39 
GeneralRe: The next big paradigm shift in database design Pin
David Skelly23-Mar-10 2:43
David Skelly23-Mar-10 2:43 
GeneralRe: The next big paradigm shift in database design Pin
Keith Barrow23-Mar-10 1:19
professionalKeith Barrow23-Mar-10 1:19 
GeneralRe: The next big paradigm shift in database design Pin
Chris Meech23-Mar-10 7:35
Chris Meech23-Mar-10 7:35 
GeneralRe: The next big paradigm shift in database design Pin
Michael J. Eber23-Mar-10 14:58
Michael J. Eber23-Mar-10 14:58 
GeneralRe: The next big paradigm shift in database design Pin
David Skelly23-Mar-10 23:29
David Skelly23-Mar-10 23:29 
GeneralRe: The next big paradigm shift in database design Pin
Keith Barrow24-Mar-10 0:21
professionalKeith Barrow24-Mar-10 0:21 
LongRangeShooter wrote:
WHY WHY WHY WHY WHY do people design G.D. databases with an incremental ID as the mother fracking key


This bugs me too, sometime you find that such people grew writing VBA apps on Accees, which natually makes them database designers Smile | :) . Occaisionally technology "forces" it see: http://en.wikipedia.org/wiki/Surrogate_key#Compatibility[^] Genuinely, I blame lack of training as people often grow up hacking databases together, istead of understanding the theory behind them.

To me, surrogate keys are a sign of bad normalisation, can lead to duplicates more easily, and increases the likelyhood of bad join conditions. I'm fascinated by the internicene warfare around relational database design, as these directly correlate to set theory and therefore we should largely agree about the principles at least. I mooted this point in the C# forum and got an immediate long rant informing me how a properly normalised database is too hard to use, I didn't even argue back as the guy was obviously too stupid to bother with.

I worked in a company that collapsed because they bought a 3rd party software. The vendor pitched it "We handle all the information checking in code [i.e. referential integrity, duplication protection, orphaning protection etc], so our system is more flexible. Net result: Orphaned records, lost records, duplicate jobs, all because it is "too difficult" to normalize.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

GeneralRe: The next big paradigm shift in database design Pin
Dave Kreskowiak24-Mar-10 7:36
mveDave Kreskowiak24-Mar-10 7:36 
GeneralRe: The next big paradigm shift in database design Pin
Jeroen De Dauw24-Mar-10 7:50
Jeroen De Dauw24-Mar-10 7:50 
GeneralRe: The next big paradigm shift in database design Pin
Dave Kreskowiak24-Mar-10 12:50
mveDave Kreskowiak24-Mar-10 12:50 
GeneralRe: The next big paradigm shift in database design Pin
David Skelly24-Mar-10 23:10
David Skelly24-Mar-10 23:10 
GeneralRe: The next big paradigm shift in database design Pin
Luc Pattyn24-Mar-10 13:03
sitebuilderLuc Pattyn24-Mar-10 13:03 
GeneralRe: The next big paradigm shift in database design Pin
peterchen24-Mar-10 22:44
peterchen24-Mar-10 22:44 
GeneralHow to convert minutes into milliseconds... PinPopular
- Tim Cools -19-Mar-10 4:53
- Tim Cools -19-Mar-10 4:53 
GeneralRe: How to convert minutes into milliseconds... Pin
OriginalGriff19-Mar-10 5:55
mveOriginalGriff19-Mar-10 5:55 
GeneralRe: How to convert minutes into milliseconds... Pin
supercat919-Mar-10 6:01
supercat919-Mar-10 6:01 
GeneralRe: How to convert minutes into milliseconds... Pin
Andrew Rissing19-Mar-10 7:08
Andrew Rissing19-Mar-10 7:08 
GeneralRe: How to convert minutes into milliseconds... Pin
PIEBALDconsult19-Mar-10 9:54
mvePIEBALDconsult19-Mar-10 9:54 
GeneralRe: How to convert minutes into milliseconds... Pin
Andrew Rissing19-Mar-10 10:38
Andrew Rissing19-Mar-10 10:38 
GeneralRe: How to convert minutes into milliseconds... Pin
Luc Pattyn19-Mar-10 11:09
sitebuilderLuc Pattyn19-Mar-10 11:09 
GeneralRe: How to convert minutes into milliseconds... Pin
Andrew Rissing19-Mar-10 11:40
Andrew Rissing19-Mar-10 11:40 
GeneralBrowser Support Check Pin
ghaberek9-Mar-10 10:21
ghaberek9-Mar-10 10:21 
JokeRe: Browser Support Check Pin
chevu9-Mar-10 18:12
chevu9-Mar-10 18:12 
GeneralRe: Browser Support Check Pin
Chris Meech10-Mar-10 6:10
Chris Meech10-Mar-10 6:10 

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.