I was reminded this morning of an email that I sent to the junior developers on my team when they joined us. It is an overview of some of the development practices, patterns and products that they would get exposed to on our project. I have included it here as a reference collection for others. Principles and Patterns These are things that I often use and are still learning to use. SOLID – Originally put together by Bob Martin (http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod). A g...
[More]
Tags: Useful Links, Performance, StyleCop, ReSharper, Unit Testing, PostSharp, AOP, Dependency Injection, Unity
50f5bc36-68e0-4a26-aa37-04e9cdbc8136|1|5.0
A patch came out in January which fixes the noise issue in
TeamBuild reports. Build reports now only display one build step per project build by the solution after this patch is applied.
Tags: TeamBuild, Useful Links
e315278e-2210-4a13-b02a-01d741701e45|0|.0
There is a lot of information around that discusses the differences between classes and structs. Unfortunately there isn't a lot of information available about when to use one over the other.
MSDN has a good resource which provides guidance on how to choose between classes and structs. It starts by describing the differences between the two and then provides the following advice.
Consider defining a structure instead of a class if instances of the type are small and common...
[More]
Tags: Useful Links
d206439b-a0f8-4b29-9464-b540067df645|1|5.0
The yield statement is one of those C# statements that is really powerful but is either not understood or is unknown to most developers. Raymond Chen just posted a very good write up on how the compiler deals with the yield statement. The Old New Thing : The implementation of iterators in C# and its consequences (part 1) The great feature that the yield statement brings is delayed execution in iterations. If building a collection of items to iterate through is an expensive operation on either...
[More]
Tags: Performance, Useful Links
62aded3b-8857-477b-8df2-9c0584ffcbf3|0|.0
A few months ago I did some research into dependency injection frameworks. One of the interesting features provided by many of the DI frameworks was the support for AOP. This is really interesting stuff and great for injecting logging and caching implementations without having to modify existing code. There are several AOP implementations around (Oren Eini identified seven in this post) and I have always wondered how some of them worked. Unfortunately I never got the time to research it. Using...
[More]
Tags: AOP, Dependency Injection, Useful Links
81dce091-8c35-4d9c-8169-c2379e84904e|1|5.0
There are cases when you need to transmit username/password credentials to WCF without transport security. The times that you should do this are rare because of the obvious security implications of sending credentials over the wire without encryption. One case where this is required is where hardware acceleration is used in a load balancer. The traffic between the load balancer and the client is encrypted, but the traffic between the load balancer and the service host is not. The issue here is t...
[More]
Tags: Useful Links, WCF
2d5e4c69-a5dd-4c8c-941d-dd3e88ae9829|0|.0
This is one to remember. Paul Litwin has posted about forcing SSL gracefully on a site using a post from Paul Wilson as a reference. I'll implement this when I set up some ssl sites that are publicly available.
Tags: Useful Links
1c42305e-1191-42d3-97f5-4aebd40ec564|0|.0
Jason Kresowaty has posted an incredible amount of information about creating FxCop rules. I'll get to these one day. One rule I want to write is a rule that checks for properties on a DataContract that are not assigned the DataMember attribute.
Tags: Useful Links
e7ce04e6-702a-4ab3-a4e1-ee7ca632af31|0|.0
I keep coming across this problem. IE7 fails to print a document, asking the user to check that the address is correct, indicating that the address is a temporary file located in C:\Users\[Username]\AppData\Local\Temp\Low. Sometimes changing folder permissions works, but I have previously done that and this issue has popped up again. After doing another Google search and finding this forum post, running the following in the command line fixed the problem: icacls C:\Users\[Username]\AppData\Loca...
[More]
Tags: Useful Links
3e1703e1-d222-496e-bcb5-5d42b6ea9e02|0|.0
A sure sign that I haven't blogged recently is that Windows Live Writer has dropped off my recent programs in the start menu. Anyway, I have seen this first set of content before (perhaps even blogged it), but it is worth including again as I have found another set of information for VS performance. Here are the goods: http://dotnettipoftheday.org/tips/speedup_visual_studio.aspx Speed up Visual Studio 2005 Make sure Visual Studio 2005 SP1 is installed. Turn off animation.Go to Tools | Options...
[More]
Tags: Useful Links
dd1a4301-e3de-451b-ba15-003464e5613e|0|.0