CSharpFeeds - All your C# feeds in one place.

Thursday, January 21, 2010

Constructor over-injection smell – follow up

by Jeffrey Palermo via Jeffrey Palermo (.com) on 1/21/2010 6:03:22 PM

This is a follow up to my article: “Constructor over-injection anti-pattern”.  I’ve title this a bit differently because as with any heuristic, there are degrees of goodness and smelliness.  Constructor over-injection, therefore, is a code smell, I believe.  Without concrete do’s and don’ts, I believe it doesn’t deserve the explicit title of “anti-pattern”. I have expanded the code sample (and it is available as a zip or tar file here). I’ve modified the OrderProcessor as shown ...

[ read more ]

What’s the difference between a destructor and a finalizer?

by Eric Lippert via Fabulous Adventures In Coding on 1/21/2010 2:20:00 PM

Today, another dialogue, and another episode of my ongoing series "what's the difference?" What’s the difference, if any, between a “destructor” and a “finalizer”? Both are mechanisms for cleaning up a resource when it is no longer in use. When I was asked this, at first I didn’t think there was a difference. But some Wikipedia searches turned up a difference; the term “destructor” is typically used to mean a deterministically-invoked cleanup, whereas a “finalizer” runs when the garbage collect ...

[ read more ]

Setting the value of a dependency property

by luisabreu via LA.NET [EN] on 1/21/2010 10:23:10 AM

One of the things I’ve mentioned in the previous posts is that the value of a dependency property at runtime can be influenced by several “providers”. That means that there needs to be some sort of order which governs the way providers affect the final value of a dependency property (this order is known as precedence list). The final value of a dependency property at runtime is obtained after all the items in the following list have been evaluated by the presented order: Default value; St ...

[ read more ]

HttpContext.Items and Server.Transfer/Execute

by Rick Strahl via Rick Strahl's Web Log on 1/21/2010 12:32:30 AM

A few days ago my buddy Ben Jones pointed out that he ran into a bug in the ScriptContainer control in the West Wind Web and Ajax Toolkit. The problem was basically that when a Server.Transfer call was applied the script container (and also various ClientScriptProxy script embedding routines) would potentially fail to load up the specified scripts. It turns out the problem is due to the fact that the various components in the toolkit use request specific singletons via a Current property. I use ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us