Geeks With Blogs
Greg Young Greg.ToString() February 2006 Entries
Some thoughts on db based object attributes
you can view the link here http://forums.microsoft.com... I think this is the longest forum post I have ever written (and no I didn't proof read or spell check it :) ) I am curious what other's takes are on this. Am I nuts for recommending a series of 1-1 extension tables or table based inheritance? Are my risk assessments wrong with the amount of work associated with maintaining the validation and invariants for the dynamic attributes? Can you ......

Posted On Tuesday, February 28, 2006 11:05 PM

Loving Atlanta and Missing New Orleans
Watching mardi gras on TV today has been sad. Not only am I dying to be there but regardless of what they are saying it is NOT a good turn out. They were showing Bourbon St. and it looked like your average “Pre-Katrina” Saturday afternoon. We returned to New Orleans last weekend; we stood on Canal St. for the parades and were right at the curb with noone on our shoulders. This is not normal. That said I am liking Atlanta more and more. The technical community here actually exists! The ......

Posted On Tuesday, February 28, 2006 1:51 PM

Scheduling tasks ... ugh abstractions :)
Today I walked through someone's code for a basic scheduler ... The class had a thread which woke up on intervals and looked through a collection of objects that met an interface IScheduledTask ... In general this is a great utility class everyone should have, in my experience you can absolutly kill your thread pool using timers and since it is a centralized place for scheduling it makes for easy diagnostics/metrics. That said lets get into the abstraction. The scheduling class was killing the CPU ......

Posted On Monday, February 27, 2006 3:50 PM

Anemic Domains
The subject came up yesterday in discussion and got me thinking (and looking back through code).For those of you who are not familiar with the concept of anemic domains Martin Fowler has a great explanation on his bliki http://www.martinfowler.com... And while I have the chance to plug it ... buy and read cover to cover every 6 months “Domain Driven Design“ by Eric Evans http://domaindrivendesign.o... Also on a side note ... is it me or is DDD / MDA finally ......

Posted On Wednesday, February 22, 2006 5:13 AM

SafeHandle Goodness
I was recently pushed towards SafeHandles in 2.0 to solve the problems I was having in 1.1. Don't like the idea of porting all my code to 2.0 for a fix but ... One question I have in my mind as I am a tinkerrer (I refuse to use something unless I understand how it works). (It all seems very similar to handleref or various handleprotecter classes in 1.1 as well) SafeFileHandle sfhIn = new SafeFileHandle(GetStdHandle... false); this code is functionally equivalent to .. 1 IntPtr foo ......

Posted On Wednesday, February 22, 2006 4:41 AM

On my way back to New Orleans
Have not been back since X-Mas ... I just have to say my verizon broadband card is the best investment I have made in a long time. Imagine being on a road trip writing in your blog and playing a game of online chess while orderring a new desktop from Dell... How cool. unfortunately I only have about an hour of battery :-/ A few people either made comments or sent emails on my last post regarding what I was saying about thread safety and the needless use of synchronization code I see alot of. I am ......

Posted On Thursday, February 16, 2006 11:35 AM

More Thread.Abort Goodness
I saw some “interesting” behavior in a plugin system I had written (same culprit I have seen before file locks) was doing some more research and came accross this wonderful blog http://blogs.msdn.com/cbrum... An Abort is performed on all threads that have stack in an AppDomain that is being unloaded. Since we are throwing away the AppDomain anyway, we can often tolerate surprising execution of threads at fairly arbitrary spots in their execution. Even if this ......

Posted On Saturday, February 11, 2006 1:41 AM

Tools post a while ago
Just looking through page hits and the quick little blurb I wrote about tools that C# developers should know about already 600 hits. This gets me to thinking that alot of people don't really have the time to research such things. One can run over to amazon.com and purchase all sorts of books on nunit, nant, nhibernate or cvs. One could also search around and find out lots of information on reflector and some of the other tools I mention. My thought of what would make a hugely successful book would ......

Posted On Thursday, February 9, 2006 11:20 AM

ATL UG, Paul Wilson, and a shiney new book!
I gave a presentation on monday about creational patterns at the ATL C# users group. I gave a presentation last month on AOP in .NET, there were actually alot of people at this one; I forgot how much I hate public speaking of course patterns are something I am passionate about so the nervousness went away rather quickly. Last night I was (re) reading Joel's interviewing advice and he discusses people being passionate and forgetting nervousness; let me say it is true. I won a book at the UG as well ......

Posted On Wednesday, February 8, 2006 7:09 PM

Delegates and the dynamic decortor
I have been thinking lately about delegates and their possible use for interceptors. One really cool thing that they could provide for me with a trivial amount of code is the ability to define a give interceptor as being asynchronous. The code generated for this is rather trivial and I think it is a rather cool functionality (especially when considerring things like logging). Roger pointed out a good gotcha with this in that one could quite easily context switch themselves to death but in the case ......

Posted On Wednesday, February 1, 2006 7:37 PM

Copyright © Greg Young | Powered by: GeeksWithBlogs.net