I’m an MVP for 2009!

Posted on Friday, July 03 2009 by The Admin

MVP_FullColor_ForScreen A couple of days late, but I’m thrilled to announce that Microsoft has recognized me as a Most Valuable Professional again for 2009.  I’m always immensely honored to be counted among this incredible group of technologists.  MVPs are known around the world as passionate experts in their field, and I can only hope to live up to that ongoing recognition.

For those of you who follow my blog for technical reasons, you’ll be pleased to know I continue to be recognized as a Connected Systems Development MVP, and that you should see a lot of interesting content regarding Code Contracts, Windows Communication Foundation, and Windows Workflow Foundation all in .NET 4 in the coming weeks.

New Project, New Technologies

Posted on Saturday, June 27 2009 by The Admin

Starting Monday morning I will be starting a new project for a client of my employer Improving Enterprises.  I’ve spent a good deal of time talking with my new teammates about what technologies we will be using for the project, and I thought that work might be of interest to others, so here are some of the highlights.

Technology Stack : VS2010, .NET 4, C#

The first thing that was decided, during the initial scoping phase of the project, was that this project was a nearly ideal candidate for Visual Studio 2010 and .NET 4.0.  How did we come to that decision?  The desired architecture for the project is such that certain features of WCF 4.0 and Entity Framework 4.0 would help with the implementation, and the timeline of the project is such that we have a no concerns over the current lack of the a “Go Live” license.  For language it was decided we will primarily be working in C#. With that decided, we get to the far more interesting pieces.

Inversion of Control : StructureMap

Obviously we are going to need an IoC container for the project, and we have settled on StructureMap for that.  The competition in this regard was Castle Windsor as Improving has the benefit of employing Craig Neuwirt, we knew we had an expert.  The final decision to go with StructureMap instead hinged on two related things, complexity and learning curve.  While we were quite certain we could pick up Castle quickly enough (2 of the 3 did not know it already), we were not as certain how easy it would be for those who follow us.  StructureMap had a single well defined scope (IoC), versus the larger bite that the Castle Project would be for those who follow.  We recognize we could have just done Windsor, but we found no compelling reasons to do that versus StructureMap.

As noted, we will be doing a good bit of WCF 4.0 on this project, so it naturally followed we would need to integrated StructureMap into the channel stack to let it handle the creation of our service instances.  Jimmy Bogard has an excellent post on this subject, and we followed that guidance closely, though we updated the StructureMapServiceHostFactory to use ObjectFactory.Initialize as was recommended by the excellent ObsoleteAttribute usage in the latest StructureMap.

Source Control : GIT

Even within a group of people as passionate about creating great technology as we have at Improving, there are certain debates that deeply divide us.  Source Control is definitely one of them.  We have a certain segment of the company that are passionate advocates for Team System, obviously including Chris Tullier our resident Team System MVP.  But there are others who are passionate believers in Subversion.  Still others are not happy with either of those options, and still seek the “better mouse trap” for Source Control.  We discussed the pros and cons of various solutions and decided in the end to try GIT, because of its distributed model, and see how we liked it in comparison to the others.  It is an experiment, and we shall see.

Logging : log4net

Really, is there another option?  The definitive logging library for .NET, it does what it needs to and does not bring along any additional baggage.  As we are also using StructureMap, we found this blog post by John Rudolf Lewis helpful in discussing how to inject log4net using StructureMap (or Ninject) without losing fidelity in the logs.

Conclusion

So there are a few of our technology decisions, things I’ll be learning on in the coming months more and more.

Dallas DevCares – Parallelism in .NET 4.0

Posted on Thursday, June 25 2009 by The Admin

Dallas TechFest is behind me, and now it is time to look forward.  Forward to Visual Studio 2010, Forward to .NET 4.0.

Tomorrow (Friday, June 26th) I will be presenting at the Dallas DevCares event on Parallelism in .NET 4.0.  This talk is one I’ve given before, but two things will be different this time.  First, I will be presenting with the use of Visual Studio 2010 Beta 1, so you will see how this actually works on actual .NET 4.0 bits.  Second, I will be presenting for a somewhat longer time than my usual User Group talk, we will be have time to take lots of questions, and to cover some fundamentals that I might not normally cover at this talk.

I’d love to see any of my readers and followers there, so cruise over to their website and register.

Register For Dallas TechFest, Win a Mac Mini

Posted on Thursday, June 04 2009 by The Admin

No, you read that correctly.  If you follow the link below and register for Dallas TechFest 2009 between now and June 14th, 2009 you will be entered into a drawing to win a Mac Mini.  We've got lots of space around, so spread around the code to all your friends. Oh, and you'll also be getting $20 off the full ticket price on top of that.

Why tell your friends?  Because if your friends tell us on their registration that you referred them, then you get an entry into the drawing as well.  So spread the word on Twitter, your blog, your company's internal list, or anywhere else you think there are folks who would want to go to Dallas TechFest.

http://tinyurl.com/WinAMacMini

But wait ... you're telling me I'm losing out because I registered early?  Not at all!

Nope, we're giving away another Mac Mini as well, as a special thank you to all those who registered early.

 

Speaking at Northwest Arkansas Code Camp 2009, and you can join remotely

Posted on Saturday, April 25 2009 by The Admin

At 3:30 today I’ll be speaking at the Northwest Arkansas Code Camp 2009 about Concurrency in .NET 4.0.  Not in NWA?  No worries.  These guys have all the rooms setup with LiveMeeting, and are going to be making the content available during the day. If you’d like to join, just enter the LiveMeeting associated with each room at the Code Camp, you can find the links to them here.

Come, join in the fun, ask questions, and learn something today!

Solution Clone v1.1

Posted on Thursday, April 09 2009 by The Admin

A quick update to Solution Clone was posted today to handle some new file types created in the BizTalk Deployment Framework v5.0.  You can find it here.

Unit Testing in BizTalk – TestFile v2.0

Posted on Wednesday, April 08 2009 by The Admin

Some time ago I made a post about using external file dependencies with NUnit. That post was about using a class called TestFile, which implemented IDisposable, to temporarily store files to disk, and then clean them up afterwards. While learning my way around the BizTalk unit testing capabilities in BizTalk 2009, I realized that this class could use some minor initial modifications to make life easier. To that end, I present to you that updated class. The most important new feature is the ability to support having it generate the file name as a temp file, and the ability to load resources from any Assembly in the AppDomain.
public class TestFile : IDisposable
{
    private bool _disposedValue = false;
    private string _resourceName;
    private string _fileName;

    public TestFile(string resourceName) : this(null, resourceName) { }

    public TestFile(string fileName, string resourceName)
    {
        if (fileName == null)
        {
            this.FileName = Path.GetTempFileName();
            File.Delete(this.FileName);
        }
        else 
            this.FileName = fileName;

        using (Stream s = LoadResourceFromAppDomain(resourceName))
        using (StreamReader sr = new StreamReader(s))
        using (StreamWriter sw = File.CreateText(this.FileName))
        {
            sw.Write(sr.ReadToEnd());
            sw.Flush();
        }
    }

    private Stream LoadResourceFromAppDomain(string resourceName)
    {
        Assembly[] appDomainAssemblies = AppDomain.CurrentDomain.GetAssemblies();
        Stream outStream = null;

        foreach (var lAssem in appDomainAssemblies)
        {
            outStream = lAssem.GetManifestResourceStream(resourceName);
            if (outStream != null) return outStream;
        }

        throw new Exception(string.Format("Unable to find resource stream {0}",resourceName));
    }

    public string FileName
    {
        get { return _fileName; }
        set
        {
            _fileName = value;
        }
    }
    

    protected virtual void Dispose(bool disposing)
    {
        if (!this._disposedValue)
        {
            if (disposing)
            {
                if (File.Exists(_fileName))
                {
                    File.Delete(_fileName);
                }
            }
        }
        this._disposedValue = true;
    }

    #region IDisposable Members

    public void Dispose()
    {
        // Do not change this code.Put cleanup code in Dispose(bool disposing) above.
        Dispose(true);
        GC.SuppressFinalize(this);
    }

    #endregion
}

BizTalk Server 2009 on MSDN

Posted on Wednesday, April 08 2009 by The Admin

I’m thrilled to announce that BizTalk Server 2009 has become available on MSDN, as of last Saturday.

The 2009 release includes many cool things, but I’d like to highlight the unit testing capabilities that have been added to the product.  With this release, there is now support for unit testing of Maps, Schemas and Pipelines.  While not perfect, these features are a great initial down payment on bringing BizTalk development in line with state of the art practices in other development areas.  I’m so thrilled that these features have been added that I will be doing a post series over the next several weeks on reducing the friction in unit testing these features, and you can look forward to the first installment shortly.

Intro to WCF for the AZ.NET User Group

Posted on Wednesday, March 11 2009 by Tim

I'm in Arizona currently, specifically Phoenix, and last night I had the chance to speak at the AZ.NET User Group thanks to the wonderful folks at INETA.  I promised the folks there that the slides would be posted last night, so I'm only about 8 hours late.  The talk was an Introduction to Windows Communication Foundation, and the demos focused on showing a simple service being setup from nothing to running.

You can download the slides here, or the final code here.

Improving Myself

Posted on Friday, February 27 2009 by Tim

ImprovingEnterprises Those who have known me for any amount of time, know that I have always been a vocal proponent of my employer, Sogeti.  For over 2 years they have been the vehicle by which I’ve advanced my career, and reached out to the developer community.  Unfortunately, the time has come for that relationship to end, and a new one to begin.  The choice was mine alone, and the leadership at Sogeti did their very best to get me to reconsider turning the page, but this is simply the right time for me to begin a new chapter in my career.

In this new chapter, it is time for me to continue to improving myself, and it so happens that improving is exactly what my new employer is all about.  In a few shoud weeks I will be joining the ranks of Improving Enterprises, a consulting firm based in Dallas that provides consulting, training, mentoring, and rural sourcing.  I am thrilled that with this move I will have the chance to help bring the Improving style to BizTalk and WCF projects around the region.  I am also thrilled that I will be joining some of the brightest people I know on their staff.  The list of MVPs alone is enough to boggle the mind, with Caleb Jenkins, David O’Hara, Jef Newsom, and Todd Girvin all on Improving’s rock star staff, and that’s just the MVPs.

I wish everyone at Sogeti nothing but the best, and as always anyone who would like to reach me can do so at Tim@TimRayburn.net.