Click here to Skip to main content
15,912,507 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 use are foreign keys anyway? Pin
Bohdan Stupak5-Mar-18 22:20
professionalBohdan Stupak5-Mar-18 22:20 
GeneralRe: What use are foreign keys anyway? Pin
txmrm13-Feb-18 4:41
txmrm13-Feb-18 4:41 
GeneralRe: What use are foreign keys anyway? Pin
Rob Grainger13-Feb-18 7:50
Rob Grainger13-Feb-18 7:50 
GeneralRe: What use are foreign keys anyway? Pin
David O'Neil14-Feb-18 17:12
professionalDavid O'Neil14-Feb-18 17:12 
GeneralRe: What use are foreign keys anyway? Pin
Duke Carey19-Feb-18 8:35
professionalDuke Carey19-Feb-18 8:35 
GeneralRe: What use are foreign keys anyway? Pin
PIEBALDconsult10-Mar-18 16:28
mvePIEBALDconsult10-Mar-18 16:28 
GeneralRe: What use are foreign keys anyway? Pin
raddevus13-Feb-18 7:20
mvaraddevus13-Feb-18 7:20 
GeneralRe: What use are foreign keys anyway? Pin
Eddy Vluggen13-Feb-18 11:03
professionalEddy Vluggen13-Feb-18 11:03 
GeneralRe: What use are foreign keys anyway? Pin
Ravi Sant13-Feb-18 21:37
Ravi Sant13-Feb-18 21:37 
GeneralRe: What use are foreign keys anyway? Pin
Nathan Minier15-Feb-18 2:12
professionalNathan Minier15-Feb-18 2:12 
GeneralRe: What use are foreign keys anyway? Pin
wout de zeeuw13-Feb-18 22:22
wout de zeeuw13-Feb-18 22:22 
GeneralRe: What use are foreign keys anyway? Pin
User 5924113-Feb-18 22:46
User 5924113-Feb-18 22:46 
GeneralRe: What use are foreign keys anyway? Pin
Slacker00715-Feb-18 6:21
professionalSlacker00715-Feb-18 6:21 
GeneralRe: What use are foreign keys anyway? Pin
PIEBALDconsult16-Feb-18 12:40
mvePIEBALDconsult16-Feb-18 12:40 
GeneralRe: What use are foreign keys anyway? Pin
Gary Huck19-Feb-18 3:22
Gary Huck19-Feb-18 3:22 
GeneralRe: What use are foreign keys anyway? Pin
Craig Boyd19-Feb-18 4:37
Craig Boyd19-Feb-18 4:37 
GeneralRe: What use are foreign keys anyway? Pin
Nagy Vilmos19-Feb-18 5:38
professionalNagy Vilmos19-Feb-18 5:38 
GeneralRe: What use are foreign keys anyway? Pin
OriginalGriff19-Feb-18 6:22
mveOriginalGriff19-Feb-18 6:22 
GeneralRe: What use are foreign keys anyway? Pin
Rob Grainger19-Feb-18 11:00
Rob Grainger19-Feb-18 11:00 
GeneralRe: What use are foreign keys anyway? Pin
Kirk 1038982119-Feb-18 7:24
Kirk 1038982119-Feb-18 7:24 
GeneralRe: What use are foreign keys anyway? Pin
Rob Grainger19-Feb-18 10:59
Rob Grainger19-Feb-18 10:59 
JokeRe: What use are foreign keys anyway? Pin
phil.o19-Feb-18 12:15
professionalphil.o19-Feb-18 12:15 
GeneralRe: What use are foreign keys anyway? Pin
Inferno9019-Feb-18 16:45
professionalInferno9019-Feb-18 16:45 
Haha.. this is funny - not! I've come across this all the time. The problem "back then" were application designers that had no idea, zilch, nada; about database structures. Yet, here we are in 2018 and I still see the same mistakes. Primary key every table with an auto-fill ID column. Yes, you have a primary key, congratulations! But what's the point if you don't have a reference to the ID from another table? Did someone forget that the ID Primary Key column is a machine necessity, if at all? Like who care my next record starts with ID 2001!? A true Primary Key is one created based on data "snippets" off other columns in the table. Yeah baby... bring back Excel databases! Confused | :confused: Roll eyes | :rolleyes:
Just do what I do when databases have no relations... DROP DATABASE.. oh but don't forget to save your data first. Blush | :O
GeneralRe: What use are foreign keys anyway? Pin
Richard Deeming20-Feb-18 2:42
mveRichard Deeming20-Feb-18 2:42 
GeneralRe: What use are foreign keys anyway? Pin
kmoorevs23-Feb-18 5:43
kmoorevs23-Feb-18 5:43 

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.