Archives
TotT: Using Dependancy Injection to Avoid Singletons
Submitted by noreply@blogger.com (dastels) on Fri, 16/05/2008 - 07:17.If changing the implementation of a singleton class is not an option, but changing the client of a singleton is, a simple refactoring can make it easier to test. Let's say you had a method that uses a Server as a singleton instance:
public class Client {
public int process(Params params) {
Server server = Server.getInstance();
Data data = server.retrieveData(params);
...
}
}
UML Is Alive And Well (And On A Whiteboard Near You)
Submitted by jason@parlezuml.com (Jason Gorman) on Fri, 16/05/2008 - 13:37.Some of them are very valid points. Some of them are misinformed bunkum.
That UML is overly complex and difficult to learn and comprehend is a given. That the over-emphasis on selling modeling tools has clouded the just-sketch-it-at-the-whiteboard benefits of visual modeling is undeniable.
SourceSafe Binding Remover
Submitted by darrell on Fri, 16/05/2008 - 15:35.I updated this to run in Visual Studio 2008 and .NET 3.5. It should work down to .NET 2.0.
The download is an attachment to this post.
Managerial Things Not to Do
Submitted by darrell on Fri, 16/05/2008 - 15:39.Apparently GE is considering selling its century-old appliances business.
General Electric CO said on Friday it may sell or spin off its century-old appliances unit in a bid to lower its exposure to the slumping U.S. housing market.
Let me get this straight. Right now the housing market in the U.S. is in a slump. So they are going to try to unload a business that is directly affected by this slump at the bottom of the market.
