This question was submitted by one of the readers, and it shows a common questions people ask when they are coming up to speed when trying to write testable code…. About “Pass[ing] around ginormous context objects” (http://misko.hevery.com/2008/07/24/how-to-write-3v1l-untestable-code/) – this situation comes up for me when [I] trying to get configuration settings into my application. I [...]
Entries from October 2008
Pass Around Ginormous Context Objects
October 27th, 2008 · 11 Comments
Tags: Uncategorized
Testability Explorer: Measuring Testability
October 21st, 2008 · 4 Comments
Testability Explorer: Using Byte-Code Analysis to Engineer Lasting Social Changes in an Organization’s Software Development Process. (Or How to Get Developers to Write Testable Code) Presented at 2008 OOPSLA by Miško Hevery a Best Practices Coach @ Google Abstract Testability Explorer is an open-source tool that identifies hard-to-test Java code. Testability Explorer provides a repeatable [...]
Tags: Advice · OO · Testability · Testability Explorer
Dependency Injection Myth: Reference Passing
October 21st, 2008 · 31 Comments
by Miško Hevery After reading the article on Singletons (the design anti-pattern) and how they are really global variables and dependency injection suggestion to simply pass in the reference to the singleton in a constructor (instead of looking them up in global state), many people incorrectly concluded that now they will have to pass the [...]
Tags: Advice · OO · Testability