Bob On Development

Musings on the craft and business of software development









July 21, 2007

Why Most Code is Crud

Filed under: — bob @ 8:51 am

I used to do a lot of work for a small company with an over-inflated concept of the value of their proprietary “trade secrets”. This was a marginally profitable twenty-person company providing standard CRM capabilities that at least three other companies offer, and it was not exactly rocket science. Yet they maintained that the details of the implementation — the “secret sauce” as they liked to call it — was so revolutionary that there just had to be sabateurs from their competitors lurking in the bushes just outside their office windows in hopes of getting a glimpse of it.

Predictably, I was obliged to sign a non-compete / NDA about five miles long in order to implement and enhance their “secret sauce”. I usually don’t pay much attention to such things since (1) as an ethical person I wouldn’t even consider selling their Trade Secrets, valuable or not; and (2) in practice such agreements are largely unenforceable anyway (which covers the case where they might imagine a breach on my part and thus attempt to prevent me from earning a livelihood).

The third and most important reason why I didn’t feel the need to play so “close to the vest” with their code was because by any objective measure, the code was virtually worthless to anyone but my client.

One reason my client’s code is worthless is explained by Sturgeon’s Law, which states that “Ninety percent of everything is crap”. One company’s treasures are inherently another company’s crap, which is why the companies bother to compete with each other at all. If Company A ever decides that Company B’s “secret sauce” is valuable, they will seek to acquire or merge with Company B, rather than compete with them.

Paradoxically, another reason code can be worthless to anyone but its owner is because it’s actually good code. Most developers by definition are average or below average, so if you have an above average architecture and implementation, it may be impossible for the Morts at some other company to comprehend it, much less get any actual use out of it.

But the main reason the code has value only to the client is beautifully explained by Dennis Forbes in this provocative post. The short version: due in part to the pressures of deadlines and budget constraints, most custom code is not designed for reuse, is not documented, and over time becomes barnacled with cruft that makes it difficult or impossible to be used outside the context of that company’s projects, practices, and development teams.

Any developer who has been around for a few years has seen more than one code base that is so difficult to learn and work with that they would just as soon throw it away and rewrite it from scratch. Frequently, they do just that — sometimes without bothering to ask for permission. Most clients just want results and don’t care how they are acheived.

All of this is not to say that the original authors of that code are idiots. Just the opposite. While idiocy is a possible influence, the code most likely got the way it is because of expediencies forced on the developers, and by failure of the client to commit sufficient resources to keep the code base up with technological advances.

As an example, the code base of my secretive client reflects the design trade-offs imposed by what was available in terms of tools, technologies and resources in 1995. To their credit, the client recognized a desperate need to update the technology. I was then given a budget and a deadline and did the best I could with those trade-offs based on what was available to me in 2002. But the company fell on hard times and sidelined the project about halfway through.

I’m sure they are thinking that this code can be resurrected and finished at any time, when the truth is it has been slowly decomposing to the point where I would likely start over almost from scratch, were they to hire me to “finish” it today. We are two, going on three, framework versions beyond what I was working with in 2002, there are large parts of the project that can now be bought rather than built, and frankly, after this length of time I’d have to spend time learning the code base, as if someone else wrote it.

In short, it’s worthless even to my client, much less to anyone else. Most intellectual property is like this; its value exists largely in the owner’s mind, due to their ego investment; and any actual value it has is not very transferrable anyplace else.

1 Comment »

  1. I gotta hand it to you this time, Bob. You took the cake. Truer words have probably never ( or at least close to ) never been spoken about software development. Code is just putty. Ideas are what’s valuable, possibly even the algorithms. But even those have “Best if used by” date attached to them. That’s because just like in 2001, after the monkey picked up the first bone and used it as a tool, it didn’t take much for another to say “Hey, I can do that ! And I can swing it faster and straighter!”.

    All code should carry a “freshness” sticker.

    Comment by Marcelo — July 23, 2007 @ 7:27 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


Powered by WordPress

Augmentin Avandamet Rhinocort Elavil Gasex Glucotrol XL Zelnorm Vermox Penis Growth Oil Nymphomax Adalat Prograf Geriforte Medithin Avalide Lariam Viagra Erexor Sarafem Confido Himplasia Arimidex Fosamax ActoPlus Met Mentat Cardizem Hytrin Cafergot Lasuna Mycelex G Hyzaar Buy Pro Erex Buy Lincocin Buy Viramune Buy Micardis Buy Nymphomax Buy Omnicef Buy Effexor Buy Accutane Buy Levothroid Buy Cialis Jelly Buy Femcare Buy Amoxil Buy Aleve Buy Cephalexin Buy Lotrisone Buy Acticin Buy Touch Up Kit Buy Metabo UltraMax Buy Orgasm Enhancer Buy Penis Growth Pack Buy Levlen Buy Styplon Buy Aceon Cheap Loxitane Cheap Differin Cheap Geriforte Cheap Dramamine Cheap Sinequan Cheap Hoodia Cheap Nolvadex Cheap Womens Intimacy Enhancer Cheap Medithin Cheap Female Sexual Tonic Cheap Purinethol Cheap Inderal Cheap Flomax Cheap Orgasm Enhancer Cheap Zimulti Cheap Erexor Cheap Avandamet Cheap Ceftin Cheap Buspar Cheap ZMA Power Cheap Wellbutrin SR Cheap Hoodia Gordonii HG p57 Cheap Singulair Cheap Avandia Cheap Soma Credit reporting system For low credit scores Commercial credit report Understanding credit score Credit report and Florida free credit report Chase credit card status 3 credit reporting agencies Beacon credit score Federal credit reporting act To credit reporting agencies Fix your credit report On line credit card applications Credit card offers Card credit reward travel Credit score formula Credit reports from all Credit free instant report Annual report credit Order credit reports Instant personal credit report Credit beacon score Juniper credit card application Free instant credit reports Airline credit card miles National credit card debt Vue prepaid credit card Credit card debt calculator Chase credit card complaints Is credit score Elan credit card services Balance transfer credit cards Fix my credit score Credit card machines uk Check credit report fix Credit scores of Credit report uk Balance transfers credit cards Average credit score Increasing credit scores Is my credit score Business credit report Redit card pros cons Acceptable credit score Credit card business industrial Credit reports for Fast credit score increase Credit card debt facts On line credit report Free credit reporting Order credit report Chase credit card application Credit reporting act litigation Credit report consumer Clean up credit report Affect your credit score Credit report annual Credit report online Chase redit card Getting a credit score Credit card debt history Credit score after bankruptcy Credit scores meaning Stop credit card offer Ranked credit card offers Mobile credit card processing Linkpoint credit card machine Credit card applications in Credit report disputes Student credit card debt Credit reporting columbia house Credit report service Cheap credit card uk 0 credit card offer Credit report agencies Credit report score understanding Credit cards 0 apr Anual credit report Application aspen card credit Credit score higher Credit card debt management Citibank credit card offers Great credit card offer Free business credit reports Introductory offer credit card Money bank credit card Interpreting credit scores Get credit reports Free credit report Credit card apply online Credit score services Interest credit card offers Credit card debt eliminate Equifax credit reporting Instant credit card offer Credit card consolidation loans Bad credit score Credit card application uk Credit rating score scale Free credit score Experian credit report Credit report.com Article credit card debt Consolidation credit card debt Credit card consolidation uk Stopping credit card offer Read my credit report Obtain a credit report Mint credit card deal Raise my credit score Experian credit report uk Reports credit cards Hurt my credit score Discover credit card offer Good credit rating score Of my credit report Repairing credit score Credit reporting codes Credit reports on Hsbc credit card Credit card application online Repair my credit report Apr credit card offers Credit card debt advice Credit scores by Compare credit card offers Prepaid credit card companies Credit card debt laws Unlimited credit reports Annual credit report request Get my credit report Aarp chase credit card Card consolidation credit debt Credit report companies About credit scores Card credit debt free Transunion credit score Free credit card report Application card citi credit Corporate credit card application Credit scores work Consumer credit reports Credit scores mortgage Freecredit report Credit reporting service Credit card application with Credit scores and Personal credit report canada Credit report identity theft Free anual credit report Improving credit score Credit score uk My annual credit report Landlord credit report Credit score rates With a credit score Credit report government The credit reporting Up credit reports Instant credit reports Fre credit report Visa card bad credit Fair credit reporting act Freecreditreports Credit report repair service Free online credit report To increase credit score Bank one credit card American credit card debt Credit fix repair report Stop credit card debt Instant credit reports uk Low credit scores Colorado free credit report Free transunion credit report Of credit score Company credit report Credit reports with Personal credit score repair Credit scores only Obtain free credit score Cic credit report Eliminate credit card debt Free yearly credit reports The best credit score Credit report canada Wamu secured credit card Uk credit card debt Hsbc rs credit card Check credit report equifax Providian credit card company Secured credit or card Canada credit report Online Femcare Lipitor Muscle Pain Hydrocodone No Prescription Online Furosemide Online Inderal Online Maximum Lipotropics Online Viagra Soft Tabs Online Rythmol SR Levitra Actress Online Avalide Online Lynoral Online Neurontin Online Cardura Online Valtrex Online Fosamax Online Ditropan Online Diamox Online MetaboSafe Online Anafranil Online Viramune Online Advair Diskus Online Pro Erex Online Medrol Online Levaquin Online Echinacea Online Betnovate Online Prevacid Online Male Enhancement Oil Online Vasodilan Online Glucotrol XL Lorazepam Online Cymbalta Online Endep Online Confido Online Keftab Online Depakote Lortab Online Prozac Online Methox 400 Online Anabol AMP Online Tribulus Lipitor Side Affects Online Bentyl Online Dramamine Online Geodon Xanax Addiction Vicodine Online Indocin Online Trimox Online Shoot Carisoprodol 350 Mg Vicodin Hp Online Colostrum 800 Tramadol Cod Zoloft Withdrawal Online Cardizem Online Hangover Helper Online Isoptin Online Nolvadex Online Amaryl Online Penisole Cialis Dosage Phentermine No Prescription Vicodin Lorazepam Overdose Online Liponexol Online Sumycin Online Evecare Online Differin Online Urispas Online Biaxin Online Antabuse Online Ventolin Online Styplon Carisoprodol Soma Online Sustiva Online Prinivil Online Casodex Online Vermox Diazepam Online Cafergot Online Detrol Online Melatonin Zoloft Side Effects Online Trandate Online Reglan Xanax Dosage Lorazepam Addiction Online Avapro Adipex P Didrex Diet Pills Cialis.Com Ultram Online Calcium Carbonate Online Zyloprim Online Desyrel Online Ponstel Viagra Side Effects Xanax Withdrawal Viagra Alternatives Online GABA (HGH Booster) Online Probalan Viagra Dosage Online Orgasm Enhancer Hydrocodone Apap Online Flexisyn Adipex No Prescription Xanax Abuse Viagra Online Tofranil Propecia Generic Phentermine Online Online Mentat Online Zanaflex Online Noxide Online Loxitane Online Lukol Levitra Drug Online Extendaquin Alprazolam No Prescription Online Hyzaar Online Pletal Online Zovirax Online Cialis Soft Tabs Online Relafen Online Quibron T Online Paxil Online Rocaltrol Online Coreg Online Mevacor Carisoprodol Online Maxaquin Online Tenormin Online Remeron Online Evegen Online Claritin Ativan Drug Online QuickBust Diazepam Dosage Tramadol Hcl Online Cystone Online Nymphomax