Geeks With Blogs
Watson Jon Code and ramblings from Watson September 2009 Entries
Unity Convention Based Registration
Maybe it is just me, but I’m not a big fan of huge amounts of XML configuration. I can get by with a few name-value pairs in an app.config or a web.config but much more makes me nervous that I’m going to mistype something and not know about it until run time. I’ve been using Unity and it has the ability to load up its configuration from the app.config or web.config. Here’s a sample: Yeah…..what else ya got? It offers a “fluent” API for programmatic registration. Sweet! Now I just have to convert ......

Posted On Monday, September 28, 2009 9:35 PM

BRDNUG – Intro to WCF
Tonight Joe Besse gave a great presentation on WCF to our .Net user group. Sparkhound (thanks Mike!) and me were the sponsors and we had 23 people show up despite the nasty, rainy weather. Incase you don’t know, Baton Rouge pretty much shuts down when we get bad weather. Joe talked about the ABCs (Address Binding Contract) of WCF, showed how to configure a service in the config file as well as in code. He had a little trouble running his demo of a service that returned random pixel values. He’s not ......

Posted On Thursday, September 24, 2009 8:10 AM

Simplicity in Design
Previously I talked about Motivations for Dependency Injection and how we should keep our objects simple. Let’s talk about how we keep our objects simple… I immediately think of one design principle that can be used to keep your objects simple: Single Responsibility Principle (SRP) A class should have one, and only one, reason to change. Shocking…isn’t it? Following that will lead you to use interfaces and keep your classes small and focused. There are a bazillion resources on SRP – have a look around ......

Posted On Wednesday, September 23, 2009 12:46 PM

Technical debt != mess
Uncle Bob hit the nail on the head with his post A Mess is not Technical Debt. I’ve been using the term “technical debt” to refer to crap code because it is easy to understand. The idea of adding debt is something most people understand. But, as Bob put it, it can wash over the actual problem – the code base sucks. It’s always difficult to call out code and say it sucks because there is a person behind that code and my tendency is to play nice. Using “technical debt” allowed me to say that something ......

Posted On Tuesday, September 22, 2009 9:11 AM

Motivations for Dependency Injection
I’m working on a presentation for the Baton Rouge .Net User Group in October on DI so I thought I’d go over some of the reasons to move to DI. Here’s my short list: Better design through loose coupling That’s about it. There are other reasons that I consider side effects of good design: Testability – easier to test components in isolation since their dependencies can be mocked Flexibility – easier to use alternative implementations since you only need to change the registered components Those are ......

Posted On Monday, September 21, 2009 9:50 PM

Size Matters: WorkItem Attachments
Workitems in TFS have a handy feature that allows you to attach files to them. Notice the size column? It's not obvious but there is a size limit to attachments. The default setting is to allow documents less than 4 MB. Great, but what if I need to attach a document that is bigger than 4 MB? Believe it or not this can happen quite easily if you have an big ol' image or some documentation that was kept in one single Word file. If you need to increase the attachment size you can make a call to the ......

Posted On Monday, September 14, 2009 11:00 AM

GNODOTNET – You Can’t Dance the Lambda
George Mauer gave a great presentation at the Greater New Orleans .Net User Group last Monday. It was titled “You Can’t Dance the Lambda” and it was all about lambdas in .Net. He did a great job explaining lambdas so even people new to them should have come away with a good understanding. Here’s the follow up email he sent out: Thanks again to everyone that attended our meeting yesterday and a double thanks for all the kind words afterward. We had sent a tentative goal of 15 regular attendees by ......

Posted On Sunday, September 13, 2009 2:55 PM

Copyright © Jon Dalberg | Powered by: