Skip to content

Comment on Ask HN: I just inherited 700K+ lines of bad PHP. Advice?

Comments

This sounds like a decent candidate for being put into maintenance-only mode while you gameplan a new product. It's pretty impressive the kind of distance you can get with a modern framework these days. You've got the other application there to refer to, so it shouldn't be too hard to port over the more core logic into a service layer that you can actually test.

What I like about the "start from scratch" approach, though most people argue against it, is that it gives you an opportunity to shape the entire development process and architectural philosophy of the product. Sometimes the tree of good software must be refreshed with the blood of bad projects.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.