Rewrite Your SaaS Code (The Simple Way)

About this video

Martell, drawing on his background as a developer and, by his account, 12 rewrites over a four-year period for large companies plus refactoring work at Flowtown and Clarity, argues most SaaS companies should refactor rather than rewrite. A full rewrite delays new releases for far longer than estimated — he cites Netscape’s five-year gap — and risks maintaining parallel classic and new versions. He offers five principles in his codebase remodeler framework. One, love your legacy: revenue-generating code has value, and a rewrite is only warranted for glaring core data-structure problems, such as a lack of referential integrity, or unfixable security issues. Two, think small: refactor in granular pieces and resist sneaking in new features. Three, focus your fix: identify what would break under 10x load and remodel those areas first, like renovating a house room by room. Four, be quiet: do not announce a new version to customers or partners and create unrecoverable expectations. Five, respect your lifecycle: fix scrum/agile flow, git flow, CI/CD, test coverage and deployment frequency, and stop constant hot fixes, balancing business, customer and technical needs.

Key takeaways

  • Default to refactoring over rewriting; reserve a rewrite for fundamental data-structure or security failures.
  • Think small — refactor in granular chunks and avoid adding new features during the effort.
  • Focus first on the parts of the system that would break if load or customers increased 10x.
  • Do not publicise a rewrite/refactor to customers while it is underway.
  • Respect the software development lifecycle — testing, CI/CD and deployment discipline — or you will return to the same position in a few years.

Episode details: published April 4, 2022 · 11:28 long. Summary written by Self Growth Videos from the episode itself. Business results and any income figures mentioned are Dan Martell’s own claims, shared for education — they are not typical or guaranteed.


← Previous: How To Attract The Perfect Investor To Your SaaS Business · Next: My Journey to Millions (How to Overcome Challenges) →

All Dan Martell videos · Dan Martell profile · Dan Martell (official site)

Sister brand · Vacation Club Promo

All-inclusive resort stays from $435

Qualified couples: promotional Mexico and Caribbean packages at real resorts. Short presentation during your stay — enjoy the rest of the trip.

Qualifications apply · presentation during stay · no purchase required

Subscribe YouTube Suggest