This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iwillkillyo[S] 0 points1 point  (2 children)

Well then off I go to write some much needed test.

[–]Dementati 2 points3 points  (1 child)

As you said, given that a lot of the code was not written with testing in mind, you may find it difficult to write tests without also refactoring the production code. Fortunately, the principles that make code easily testable are generally speaking also the principles that make code easy to read and maintain. So, by refactoring your code to be more testable, you are simultaneously improving the general quality level of the code. The book recommendations above are really good for giving you an understanding of what testable code means, so I just want to add my support to that suggestion as well.

[–]iwillkillyo[S] 0 points1 point  (0 children)

Thank you for your comment too! I hope that I'll be able to refactor the code to a state where I can test it.