Open Access. Powered by Scholars. Published by Universities.®

Physical Sciences and Mathematics Commons

Open Access. Powered by Scholars. Published by Universities.®

California Polytechnic State University, San Luis Obispo

2007

Dependency Injection

Articles 1 - 1 of 1

Full-Text Articles in Physical Sciences and Mathematics

Effects Of Dependency Injection On Maintainability, Ekaterina Razina, David S. Janzen Nov 2007

Effects Of Dependency Injection On Maintainability, Ekaterina Razina, David S. Janzen

Computer Science and Software Engineering

Software maintenance consumes around 70% of the software life cycle. Improving software maintainability could save software developers significant time and money. This paper examines whether the pattern of dependency injection significantly reduces dependencies of modules in a piece of software, therefore making the software more maintainable. This hypothesis is tested with 20 sets of open source projects from sourceforge.net, where each set contains one project that uses the pattern of dependency injection and one similar project that does not use the pattern. The extent of the dependency injection use in each project is measured by a new Number of DIs …