News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Michael Kimsal's Blog:
New antipattern? "Multi Master Data"
June 29, 2006 @ 07:00:35

If you've been programming for any length of time, you know the "joy" of working with someone else's code. When taking over a project, the first inclination I've seen with most programmers is to go in and format everything to what they'd like (or duplicate functionality). This is where the problem comes in, the trend that Michael Kimsal talks about in his new blog post - something he wonders about being an "antipattern".

I was discussing things with my brother the other day and I came up with a problem which he helped name. I'm currently maintaining some code, and it's quite a jumble. One of the things I can tell is that one of my predecessors began adding new sections of code to clean up the logic in other areas of the code. However, what never happened was the clean up of the old code, so now there's two places where the same set of data is retrieved in different ways.

He proposes the name "Multi Master Data" for the situation - two different sources, living in the same code, doing the same thing. Of course, he also mentions a situation where this type of problem can cause real issues, especially when trying to track down a bug (a bang your head on the desk moment).

0 comments voice your opinion now!
multi master datr antipattern clean multi master datr antipattern clean


blog comments powered by Disqus

Similar Posts

Bob Majdak: Extending an Iterator to use an Iterator to make your code a little cleaner

Lars Strojny's Blog: Antipattern: the verbose constructor

Syntux: eZ components

Greg Beaver\'s Blog: PEAR 1.4.7 Released

Zend Developer Zone: The ZendCon Sessions Episode 17: SQL Query Tuning: The Legend of Drunken Query


Community Events





Don't see your event here?
Let us know!


list developer language introduction conference podcast series interview symfony zendserver tips bugfix api community library voicesoftheelephpant framework deployment laravel release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework