Good object-oriented design and testability are closely related concepts, and this training gives you an opportunity to learn more about them both. We will be doing a lot of hands-on exercises, it really makes a difference to understand a design principle to see it in code.
If you have a unit test for every unit in your software, then it follows that you must have a design that allows units to be isolated for testing purposes. Highly cohesive units with loose coupling between them was identified as a desirable design characteristic. Code that has unit tests is more likely to contain isolated units.
SOLID is a mnemonic invented by Robert C. Martin to help developers to remember some important design principles that help you to achieve high cohesion and loose coupling:
In this training course, we’ll go through these principles and work through some exercises. All the exercises start with a piece of code that has poor adherence to one or more design principles. The idea is to try to write an automated test for the code without changing it, and discover how difficult that is. When you’ve understood the testability problem, you can more easily identify the design problem and the underlying principle(s) that are not being followed.
Attendees are welcome to bring questions or challenges from their own background.
Hear about upcoming events in Scandinavia, latest tech blogs, and training in the field of Continuous Delivery and DevOps