Quantcast
Channel: Miško Hevery » Advice
Browsing latest articles
Browse All 10 View Live

Root Cause of Singletons

Since I have gotten lots of love/hate mail on the Singletons are Pathological Liars and Where Have All the Singletons Gone I feel obliged to to do some root cause analysis. Lets get the definition...

View Article



My main() Method Is Better Than Yours

By Miško Hevery People are good at turning concrete examples into generalization. The other way around, it does not work so well. So when I write about general concepts it is hard for people to know...

View Article

Image may be NSFW.
Clik here to view.

Changing Developer Behaviour, Part II

By Miško Hevery | Republished from alphaITJournal.com In Part I of this series, we took a realistic look at what usually happens when we initiate change.  We also took a look at the initial steps of...

View Article

Where Have all the “new” Operators Gone?

(the other title: Your Application has a Wiring Problem) In My main() Method Is Better Than Yours we looked into what a main() method should look like. There we introduced a clear separation between...

View Article

To “new” or not to “new”…

by Miško Hevery Dependency injection asks us to separate the new operators from the application logic. This separation forces your code to have factories which are responsible for wiring your...

View Article


Dependency Injection Myth: Reference Passing

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...

View Article

Image may be NSFW.
Clik here to view.

Testability Explorer: Measuring Testability

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...

View Article

Image may be NSFW.
Clik here to view.

My Unified Theory of Bugs

by Miško Hevery I think of bugs as being classified into three fundamental kinds of bugs. Logical: Logical bug is the most common and classical “bug.” This is your “if”s, “loop”s, and other logic in...

View Article


Interfacing with hard-to-test third-party code

by Miško Hevery Shahar asks an excellent question about how to deal with frameworks which we use in our projects, but which were not written with testability in mind. Hi Misko, First I would like to...

View Article


Image may be NSFW.
Clik here to view.

When to use Dependency Injection

by Miško Hevery A great question from the reader… The only thing that does not fully convince me in your articles is usage of Guice. I’m currently unable to see clearly its advantages over plain...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images