CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeremy D. Miller -- The Shade Tree Developer

Under the hood and working with .Net, TDD, Software Design, and Agile Stuff

Really, really tight coupling

It's time for another episode in the continuing saga of "doing stupid things in stored procedures." 

My colleague is looking at some code that we need to modify with a temporary fix.  The legacy system calls into a stored procedure which then takes the arguments coming in and passes them to a COM object (via DCOM) to send an email (it also decides whether to send the email).  The COM object promptly opens up a database connection to go back to the very same database to get more information in order to create an email.  And of course there's the issue that the stored procedure is called from middle tier code to begin with.  WTF.  There are so many things wrong with this scenario that I don't even know where to begin.

 


Published Oct 18 2005, 03:57 PM by Jeremy D. Miller
Filed under:

Comments

Sahil Malik said:

Y'know here is what I struggle with. Honestly the code you mentioned above gives me the creeps. I get the gut feeling that, maybe going through all those loops and that kind of criss cross/unclean architecture is a bad idea.

I GET THAT !!

What I struggle with is, guys who lack that gut feel - who smell shit and say, this is a rose.

Y'know shit by any other name, still smells like shit !!
# October 18, 2005 10:08 PM

Joshua Flanagan said:

It's amazing that it doesn't involve Excel in there somewhere (right?)

http://neopoleon.com/blog/posts/434.aspx
# October 19, 2005 12:12 AM

Joshua Flanagan said:

By the way, the moderators on this site are losing it. This story is a repost.

http://codebetter.com/blogs/jeremy.miller/archive/2005/09/12/131878.aspx

(at least I HOPE there aren't 2 distinct instances of this mess)
# October 19, 2005 12:15 AM

Jeremy D. Miller -- The Shade Tree Developer said:

Josh Flanagan took me to task a bit for my last two posts.  Yesterday I slipped and made a bit of...
# October 19, 2005 10:12 AM

Jeremy D. Miller -- The Shade Tree Developer said:

Josh Flanagan (very smart guy and good basketball player who should start updating his blog again) took...
# October 19, 2005 10:15 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Jeremy D. Miller

Jeremy began his IT career writing "Shadow IT" applications to automate his engineering documentation, then wandered into software development because it looked like more fun. Jeremy previously worked as a systems architect building mission critical supply chain software for a Fortune 100 company and learned agile development practices as a .Net consultant at ThoughtWorks, one of the pioneers of agile development. Jeremy is the author of the open source StructureMap (http://structuremap.sourceforge.net) tool for Dependency Injection with .Net and the forthcoming StoryTeller (http://storyteller.tigris.org) tool for supercharged FIT testing in .Net. Jeremy's thoughts on just about everything software related can be found on his weblog "The Shade Tree Developer" at http://codebetter.com/blogs/jeremy.miller, part of the popular CodeBetter site. Jeremy is a Microsoft MVP for C#. Check out Devlicio.us!

This Blog

Syndication

News

All opinions expressed here constitute my (Jeremy D. Miller's) personal opinion, and do not necessarily represent the opinion of any other organization or person, including (but not limited to) my fellow employees, my employer, its clients or their agents.

About Me

"Best Of" Compendium

StructureMap (Dependency Injection for .Net)

StoryTeller (Supercharged Fit)

Build your own Cab

TestDriven

MVP