News Feed
Sections




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

SitePoint PHP Blog:
Legacy Code is a Cancer
August 04, 2014 @ 11:08:45

In the latest post to the SitePoint PHP blog Bruno Skvorc proposes the idea that "legacy code is a cancer" that can influence decisions and technology choices that shy away from the new and possibly more functional alternatives.

This might come out controversial, but I firmly believe there is no room for legacy code in modern systems. Allow me to elaborate before you sharpen your pitchfork and light your torch. What I mean by that is: there should be absolutely zero reason to keep implementing the functions you're adding to the new version retroactively into the old version, just because some people are still using it, even if the people using it are a vast majority.

He talks about the "support everything for as long as we can" ideal and how it can come back to bite you in the end. He suggests that, at some point, the v1 users have to "be discarded" and dropped for the upgraded version of the application. He talks about failure potentially brining around success and compares applications versus libraries and components and the upgrade path for each. He ends the post with a suggested upgrade path to move the system itself away from legacy support and into the new, latest version.

0 comments voice your opinion now!
legacy code cancer maintenance upgrade support users

Link: http://www.sitepoint.com/legacy-code-cancer/

blog comments powered by Disqus

Similar Posts

DZone.com: Record and replay for testing of legacy PHP applications

Phil Sturgeon's Blog: Upgrading to CodeIgniter 2.0

Antonin Januska: How To Write Code Comments Well

Greg Beaver's Blog: Mac OS X ships with security hole-laden PEAR - how to upgrade immediately

Sebastian Bergmann's Blog: Towards Better Code Coverage Metrics in the PHP World


Community Events





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


list deployment bugfix opinion install introduction community podcast voicesoftheelephpant laravel library interview release symfony api series language package tips framework

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