Geeks With Blogs
A Curious Mind #tastic August 2006 Entries
Creating Passionate Users
Why marketing should make the manuals Kathy's at it again. This time she takes on product manuals. As usual she helps me to revaluate certian assumptions I have. I totally agree with her that its shit that product manuals suck. If they were nicer I wouldn't have to hide them (aka lose them) and I could learn more about my products. Best take away for me: Rather than using your brochure to show how much YOU kick ass, I'd much rather see no-marketing-spin hard evidence of how you're going to help ME ......

Posted On Wednesday, August 30, 2006 1:20 PM

Packaging and MicroKernels
So I have this collection of code that is a complete unit. It provides translation services from one language to another language. It does need some configuration data. It is currently setup with the assumption that it will exist in a MicroKernel (mK) architecture. The total number of components that it adds to a given mK is about 8. I am fascinated with the concept that this could be deployed as a Facility, Castle's parlance. However, I am not sure if the best way to reuse this code is as a Facility ......

Posted On Tuesday, August 29, 2006 4:27 PM

WCF Assembly Architecture

So with WCF what will my assemblies/dependencies look like?

Consumer.dll - consumes the WCF Service
- ServiceContract.dll - an assembly with nothing but interfaces

Provider.dll - provides the WCF Service
- ServiceContract.dll- an assembly with nothing but interfaces

I am sure this is one of many possible architectures, but this seems like a good basic layout.

Thoughts?

Posted On Tuesday, August 29, 2006 1:40 PM

WCF Assembly Architecture

So with WCF what will my assemblies/dependencies look like?

Consumer.dll - consumes the WCF Service
- ServiceContract.dll - an assembly with nothing but interfaces

Provider.dll - provides the WCF Service
- ServiceContract.dll- an assembly with nothing but interfaces

I am sure this is one of many possible architectures, but this seems like a good basic layout.

Thoughts?

Posted On Tuesday, August 29, 2006 1:37 PM

A better name for Chris Richardson's Facades
[This post is long, and is mostly a brain dump] I recently started a bender of coding where I am trying to move all of my transaction management code out of my Controllers (MVC controllers) and in to a more appropriate place. But since I am striving for a POCO model where in the hell can I put this code and still seperate all of my concerns? I start digging into "POJOs in Action" and see that Chris uses a class called a Facade to manage this transaction junk. It sits between the view logic and the ......

Posted On Monday, August 28, 2006 6:52 PM

Transactions and Castle
So here I am working on a bit of code, and it has to execute after a transaction. I am trying to follow a POCO (similar to POJO but stands for Plain Old CLR Object) model so I start wondering where in the hell I am going to put this code. I see that Castle has some cool Transaction stuff that I haven't used yet in the Castle.Services.Transactions and there is a handy class for doing just what I want, ISynchronization. I wonder if I can borrow some stellar ideas from Rhino.Commons and make a generic ......

Posted On Monday, August 28, 2006 4:52 PM

NHibernate Issues
Arghhh, I am really starting to hate NHibernate List support. However, this is my problem and not NHibernate's. I just have to figure out how this is supposed to work. I have a list collection<list name="EmailNotifications" table="Rules_Notifications" access="nosetter.camelcase-... <key column="OrganizationId" /> <index column="Indexer" /> <composite-element class="Cystem.Notification,... <property name="Email" type="String" /> <property name="Language" ......

Posted On Wednesday, August 23, 2006 5:28 PM

Books on Patterns
Head First Design Patterns: A great first patterns book. Contains much more approachable discussions. Patterns of Enterprise Application Architecture: An extension of the Design Patterns book. Applying Domain-Driven Design and Patterns: With Examples in C# and .NET: A recent addition that synthesizes TDD, DDD, ORM, AOP, IoC into one text that is focused on .Net. Design Patterns: Elements of Reusable Object-Oriented Software: The canonical book on software patterns. Refactoring to Patterns: Surprise, ......

Posted On Wednesday, August 23, 2006 2:41 PM

Adapter Pattern
To me the adapter pattern is all about bringing someone elses code API into line with your Domain model. Their API may be a beautiful API but that doesn't mean that their concerns will match your concerns in the right way. Of course their API could be so clueless that the only to make sense of it is to hide it behind another class. These are both usage of the adapter pattern. Another benefit of the Adapter pattern is that it can keep your code decoupled from third-party code. By providing a wrapper ......

Posted On Tuesday, August 22, 2006 12:55 PM

Trackbacks: How in the hell do they work?

This is a test to see if I can get some trackback action.

GWB Test

Typepad Test

Posted On Monday, August 21, 2006 8:32 PM

The Factory Pattern: Abstract or Method?
I am going to clarify the difference between the Factory Method pattern and the Abstract Factory pattern as described in the Design Patterns book. Most of this post was stolen from http://www.c2.com/cgi/wiki?... According to Anonomyous Genius the main difference is that the Factory Method uses inheritance to solve the problem and the Abstract Factory uses composition. Hanspeter Heeb adds that the Factory Method(FM) pattern is a more basic pattern than the Abstract Factory(AF) ......

Posted On Monday, August 21, 2006 8:13 PM

The Factory Pattern: Abstract or Method?
I am going to clarify the difference between the Factory Method pattern and the Abstract Factory pattern as described in the Design Patterns book. Most of this post was stolen from http://www.c2.com/cgi/wiki?... According to Anonomyous Genius the main difference is that the Factory Method uses inheritance to solve the problem and the Abstract Factory uses composition. Hanspeter Heeb adds that the Factory Method(FM) pattern is a more basic pattern than the Abstract Factory(AF) ......

Posted On Monday, August 21, 2006 8:13 PM

The skeletons in Singleton's closet.
Ok, so I have a personal distaste for code based singletons. Code based Singletons are hard to test (think NUnit), they make changing from a singleton to "Not Singleton" painful, [add other rants here] Instead of using code based singletons I prefer to use a MicroKernel like Castle's MicroKernel or Spring.Net. The big change is that this lets me do Dependency Injection(DI) on the singleton class. With DI I can easily test the internals of the class. Before public sealed class Printer{ private static ......

Posted On Monday, August 21, 2006 3:36 PM

The Singleton Pattern
[This post is another organizing bit for my presentation] The Singleton Pattern is all about ensuring a single instance of a given class and providing global access to it. The typical C# Singleton class is going to look something like*: public sealed class Printer { private static Printer _instance; public static Printer Instance { if(_instance == null) _instance = new Printer(); return _instance } } So hear you can see that we have accomplished our two goals. A single instance of the Printer class, ......

Posted On Monday, August 21, 2006 2:56 PM

The Factory Pattern
On Tuesday I am giving a presentation on Software Patterns. One of the patterns I am presenting is the factory pattern. However I don't use that often. Actually, I just completed a changeset in my codebase where I removed a boatload of factories and reverted to constructors. So you could say that I am even averse to them at the moment. So how in the heck am I going to give a presentation on this stuff if I don't have a lot of experience with it? Well i guess I will have to read up, and build some ......

Posted On Monday, August 21, 2006 11:44 AM

Heavyweight vs Lightweight Stuff
After just reading Wes Nerman's post on closers I read "This was one of my reasons for advocating lightweight exceptions in the past." Now this is blatently out of context, however the thing that grabbed me was his desire for lighterweight exceptions. What is it with this lightweight movement? Not that I am against it, but it strikes me as odd that there is this big push for lightweight options. Back in the days of J2EE they had these heavyweight EntityBeans which developer hated, and so they developed ......

Posted On Sunday, August 20, 2006 1:30 PM

I Love Lawrence

I met a person today that had just moved to Lawrence as I was explaining what I love about Lawrence, KS one of the things that really hit me was the diversity of people. In a bigger city I feel like I wouldn't see these people, they would have their own part of the city. Here in Lawrence we are all forced together. Friday night on Mass. St. is a wonderfully odd experience.

Posted On Thursday, August 17, 2006 11:40 AM

Calling all Lawrence Geeks!
Anyone up for a Lawrence Geek Dinner? If so, drop me a line, I am thinking August 23rd-24th.

Posted On Thursday, August 10, 2006 2:33 PM

Copyright © Dru Sellers | Powered by: GeeksWithBlogs.net