Click here to Skip to main content
15,888,162 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
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 
I had an Enterprise Architect come to me and demand that all the FKs be dropped in the lower environments because it was causing issues. I, politely, suggested that maybe the code was wrong. That did not go over well. So then I told him that I didn't have the authority to do that so he would need to talk to my boss (my boss was a much more devoted FK adherent). They fought, my boss lost. So I dropped them.

Less than a week later the test data was complete trash. At one point Texas was a province in Canada. There were many other examples, but that is the one that continues to stick with me to this day. When I showed them the bad data it was dismissed as just test data and that I shouldn't worry about it. There were other signs that this project was going to be a disaster so I transferred out. About four or five months later they went to production. Within ten days it had to be backed out of production. At this point I had been at this company for seven or eight years. In that entire time I had never heard of project going to production and then being backed out. It was a disaster. The executives had no stomach to spend the money it would take to get it working so they canned the project and let pretty much everyone on the project go. Which is a shame. There were some really good people who tried very hard to make it work, but the bumbling idiot E.A. was just too much to overcome.
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 
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 
GeneralRe: What use are foreign keys anyway? Pin
Rob Grainger27-Feb-18 23:20
Rob Grainger27-Feb-18 23:20 
GeneralRe: What use are foreign keys anyway? Pin
TheGreatAndPowerfulOz5-Mar-18 8:47
TheGreatAndPowerfulOz5-Mar-18 8:47 
GeneralRe: What use are foreign keys anyway? Pin
HarvestMoon000010-Mar-18 7:02
HarvestMoon000010-Mar-18 7:02 
GeneralConcurrentQueue & FirstOrDefault() and search speed. Pin
raddevus5-Feb-18 10:28
mvaraddevus5-Feb-18 10:28 
GeneralRe: ConcurrentQueue & FirstOrDefault() and search speed. Pin
Eddy Vluggen6-Feb-18 1:02
professionalEddy Vluggen6-Feb-18 1:02 
GeneralRe: ConcurrentQueue & FirstOrDefault() and search speed. Pin
Richard Deeming6-Feb-18 2:46
mveRichard Deeming6-Feb-18 2:46 
GeneralRe: ConcurrentQueue & FirstOrDefault() and search speed. Pin
raddevus6-Feb-18 5:41
mvaraddevus6-Feb-18 5:41 
GeneralRe: ConcurrentQueue & FirstOrDefault() and search speed. Pin
Kornfeld Eliyahu Peter6-Feb-18 3:37
professionalKornfeld Eliyahu Peter6-Feb-18 3:37 

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.