© Khaled El-Morabea and Hassaan El-Garem 2021
K. El-Morabea, H. El-GaremModularizing Legacy Projects Using TDDhttps://doi.org/10.1007/978-1-4842-7428-6_6

6. Modularization for the Win

Khaled El-Morabea1   and Hassaan El-Garem2
(1)
Giza, Egypt
(2)
Cairo, Egypt
 

Modularization is dividing the system into a number of relatively independent and interchangeable modules with well-defined interfaces, such that each one contains everything necessary to execute the desired functionality. Each one is small enough and simple enough to be thoroughly understood and well tested.

Though an extremely important design aspect, modularization typically is one of the first things that developers sacrifice when their code base grows. They may still have modules by name, but ...

Get Modularizing Legacy Projects Using TDD: Test-Driven Development with XCTest for iOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.