Legacy Code and Security
Photo by shotinraww on Unsplash

Legacy Code and Security

One aspect of legacy code that is often forgotten is security. Discussions about legacy code usually center around things like maintainability, testability, cost of development and cost of running. Not so much about the security implications. Yet it is becoming an increasingly important issue that companies shouldn't ignore. If you've missed my article on what legacy code is, let me briefly repeat the four points I made. Legacy code is code: with little automated testswith automated tests of bad qualitythat uses older technologythat is generally of bad quality making it hard for developers to change things without…

0 Comments
Can I Write Tests?
Photo by Harshal S. Hirve on Unsplash

Can I Write Tests?

I've previously established that you need to automate your tests, even (especially!) in legacy projects. I've also covered on how to get your developers to write tests. But maybe you're wondering if you or some other non-technical person can help write the tests. Luckily, there is a way, and I would even recommend it highly. Types of Tests First, let's briefly cover the types of tests again. Broadly speaking, the following type of tests exist: unit tests: to quickly test small pieces of code in isolation, mainly for developersintegration tests: to test the integration between different pieces…

0 Comments
Can I Add Tests To My Legacy Project?
Photo by Samuel Zeller on Unsplash

Can I Add Tests To My Legacy Project?

So you've acknowledged you're stuck with a piece of legacy code. One of the things that might be missing are automated tests. Is it possible to add tests to this application retroactively? That is, write tests for features that have already been implemented? Short answer: yes! Long answer: read on... The Situation There is a Chinese proverb: "The best moment to plant a tree was 20 years ago. The second best moment is now." Keep that in mind as we look at the current situation. Let's say your application has little to no automated tests. I've already…

0 Comments

End of content

No more pages to load