Startup Suicide—Rewriting the Code

adapting the old code to the new purpose (long.) In reality this is a fool’s choice. The engineering team may know the difficulty and problems adapting the old code, but has no idea what difficulties and problems it will face writing a new code base.

A CEO who had lived through a debacle of a rewrite or understood the complexity of the code would know that with the original engineering team no longer there, the odds of making the old mistakes over again are high. Add to that introducing new mistakes that weren’t there the first time, Murphy’s law says that unbridled optimism will likely turn the 1-year rewrite into a multi-year project.

My observation was that the CEO and VP of Engineering were confusing cause and effect. The customers aren’t asking for new code. They are asking for new features and platforms –now. Customers couldn’t care less whether it was delivered via spaghetti code, alien spacecraft or a completely new product. While the code rewrite is going on, competitors who aren’t enamored with architectural purity will be adding features, platforms, customers and market share. The difference between being able to add them now versus a year or more in the future might be the difference between growing revenue and going out of business.

Who Wants to Work on The Old Product

Perhaps the most dangerous side-effect of embarking on a code rewrite is that the decision condemns the old code before a viable alternative exists. Who is going to want to work on the old code with all its problems when the VP Engineering and CEO have declared the new code to be the future of the company? The old code is as good as dead the moment management introduces the word “rewrite.” As a consequence, the CEO has no fallback. If the VP Engineering’s schedule ends up taking four years instead of one year, there is no way to make incremental progress on the new features during that time.

What we have is a failure of imagination

I suggested that this looked like a failure of imagination in the VP of Engineering – made worse by a CEO who’s never lived through a code rewrite – and compounded by a board that also doesn’t get it and hasn’t challenged either of them for a creative solution.

My suggestion to my friend? Given how dynamic and competitive the market is, this move is a company-killer. The heuristic should be don’t rewrite the code base in businesses where time to market is critical and customer needs shift rapidly.” Rewrites may make sense in markets where the competitive cycle time is long.

I suggest that he lay down on the tracks in front of this train at the board meeting. Force the CEO to articulate what features and platforms he needs by when, and what measures he has in place to manage schedule risk. Figure out whether a completely different engineering approach was possible. (Refactor only the modules for the features that were needed now? Rewrite the new platforms on a different code-base? Start a separate skunk works team for the new platforms? etc.)

Lessons Learned

  • Not all code rewrites are the same. When the market is stable and changes are infrequent, you may have time to rewrite.
  • When markets/customers/competitors are shifting rapidly, you don’t get to declare a “time-out” because your code is ugly.
  • This is when you need to understand 1) what problem are you solving (hint it’s not the code) and 2) how to creatively fix what’s needed.
  • Making the wrong choice can crater your company.
  • This is worth a brawl at the board meeting.

Author: Steve Blank

A prolific educator, thought leader and writer on Customer Development for Startups, Steve Blank is a retired serial entrepreneur who teaches, refines, writes and blogs on “Customer Development,” a rigorous methodology he developed to bring the “scientific method” to the typically chaotic, seemingly disorganized startup process. Now teaching entrepreneurship at three major universities, Blank co-founded his first of eight startups after several years repairing fighter plane electronics in Thailand during the Vietnam War, followed by several years of defense electronics work for U.S. intelligence agencies in “undisclosed locations.” Four Steps to the Epiphany, Blank’s fast-selling book, details the Customer Development process and is increasingly a “must read” among entrepreneurs, investors, and established companies alike, when the focus is optimizing a startup’s chances for scalability and success. After 21 years driving 8 high technology startups, today Steve teaches entrepreneurship to both undergraduate and graduate students at U.C. Berkeley’s Haas School of Business, Stanford University’s School of Engineering and the Columbia/Berkeley Joint Executive MBA program. His “Customer Development” teaching and writing coalesce and codify his experiences and observations of entrepreneurs in action, including his own and those he advises. “Once removed from the day-to-day intensity of founding a startup, I was able to observe a pattern that distinguishes successful startups from failures,” Blank says. In 2009, he earned the Stanford University Undergraduate Teaching Award in Management Science and Engineering. The San Jose Mercury News listed him as one of the 10 Influencers in Silicon Valley. In 2010, he was earned the Earl F. Cheit Outstanding Teaching Award at U.C. Berkeley Haas School of Business. Despite these accolades, Steve says he might well have been voted “least likely to succeed” in his New York City high school class. Steve Blank arrived in Silicon Valley in 1978, as boom times began. His early startups include two semiconductor companies, Zilog and MIPS Computers; Convergent Technologies; a consulting stint for Pixar; a supercomputer firm, Ardent; peripheral supplier, SuperMac; a military intelligence systems supplier, ESL; Rocket Science Games. Steve co-founded startup number eight, E.piphany, in his living room in 1996. In sum: two significant implosions, one massive “dot-com bubble” home run, several “base hits,” and immense learning leading to The Four Steps. An avid reader in history, technology, and entrepreneurship who seldom cracks a novel, Steve has followed his curiosity about why entrepreneurship blossomed in Silicon Valley while stillborn elsewhere. It has made him an unofficial expert and frequent speaker on “The Secret History of Silicon Valley.” Steve’s interest in combining conservation with best business practices had Governor Arnold Schwarzenegger appoint him a Commissioner of the California Coastal Commission, the public body which regulates land use and public access on the California coast. He also serves on the Expert Advisory Panel for the California Ocean Protection Council. Steve serves on the board of Audubon California, was its past chair, and spent several years on the Audubon National Board. A board member of Peninsula Open Space Land Trust (POST), Blank recently became a trustee of U.C. Santa Cruz and a Director of the California League of Conservation Voters (CLCV). Steve’s proudest startups are daughters Katie and Sara, co-developed with wife Alison Elliott. The Blanks live in Silicon Valley.