We had an opportunity to write unit test cases for some legacy code and it was tough job. Find it very difficult especially when so much singletons are used on code base.
We should really use it only when its required. The following article forces that.
Refer:
http://www.ibm.com/developerworks/webservices/library/co-single.html
Google has singleton detector for sometime now, that can be very useful if you need to analyze the code base without source code.
Refer:
http://code.google.com/p/google-singleton-detector/
Sunday, October 18, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment