Bonn-to-Code.Net auf Twitter, Facebook, Google Groups und Meetup
Mit freundlicher Unterstützung durch:


2013-04-23: Bonn-to-Code.Net: User-Treffen April
19:00 Uhr, Comma Soft AG in Bonn-Pützchen (Anfahrt)

Im April besucht uns Chris Chedgey von der Firma Structure 101.

Software Engineering - Rediscovering Modularity

The principles of modularity have been applied to engineering projects since Gorak built the wheel, and Thag the barrow of the world's first wheelbarrow. Thag's barrow didn't care that the wheel was first hewn from rock, and later upgraded to a lighter, wooden one, and Gorak's wheel design was reused for the world's first chariot. This is how humans make sense of complexity - we divide and conquer.

Analogous principles of modularity are taught in Software Engineering 101 - information hiding, interfaces, clear responsibility, high internal cohesion, low external coupling, etc., and we apply these routinely as we develop, and continuously refactor the code encapsulated within classes.

However when the number of classes reaches some threshold, higher level abstractions are needed in order to manage the complexity of the growing codebase. This limit is usually overshot and the team is soon drowning in an ocean of classes. At this point it is time to restructure the code-base into a hierarchy of modules above the class level, or watch the team's frustration continue to rise, and productivity plummet.

This talk proposes a measurement framework for assessing the quality of a modular structure, identifying regions of poor modularity, and for assessing the impact of restructuring or refactoring actions. Based on this framework, the talk introduces strategies for retro-fitting modularity to an existing codebase, with minimum impact on the code logic itself.

This material is based on experience gained while helping many development teams through the restructuring process. The concepts will be illustrated by examples.