How would you maintain the legacy applications that:
Has no unit tests have big methods
with a lot of duplicated logic have
???
A legacy system not only leaves a company behind with old technology, it can also seriously damage a company's reputation by putting data at risk of a breach. At some point, a vendor no longer supports the legacy system or provides much needed updates, opening the legacy system up to a security risk.
You need the book Working Effectively with Legacy Code by Michael C. Feathers.
Write tests as soon as you can. Preferably against the requirements (if they exist). Start with functional tests. Refactor in small chunks. Anytime you touch code, leave it cleaner and better than when you started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With