The Amazing Race

I’ll never forget the first time I heard someone mention a “Race Condition”.  In my younger years when I was more worried about what people thought of me I was to embarrassed to admit that I didn’t really know what they were talking about.  I knew it had something to do with multi-threaded programs and…

1

Less is More

I am a musician. Over the years I have played keyboards in many bands, traveling and performing mostly as a hobby. I’ll never forget what one of my mentors taught me. He said “The rest is just as important as the note” The rest is the part of the song where you don’t play. Young…

6

How to use LINQ in a Workflow

Question Can I use a LINQ Query such as the following in a Workflow? private static void ShowQueryWithCode(IEnumerable<string> names){ Console.WriteLine("Linq Query in Code – show names that start with ‘R’"); // Assuming there are no null entries in the names collection var query = from name in names where name.StartsWith("R") select name; // This is…

1

How to make a library portable and data binding friendly at the same time?

Here is the challenge.  Create a portable library that could be used by almost anything including Console Apps, Windows Phone, ASP.NET, Xbox 360 Make it data binding friendly for targets like WPF, Silverlight and Windows 8 XAML Metro Apps by supporting property and collection changed notifications. Make it efficient so that users who don’t need…

2

My Essential Development Tools

There are a few development tools that I just can’t live without. ReSharper A few years ago I was sitting in Glenn Block’s office when I noticed some strange additions to Visual Studio.  When I asked him about it he said “That’s ReSharper” and I was hooked.  I had to have it. ReSharper helps me…

12

What’s Up With Ron

Nearly every day I get email from someone asking for help.  I wish I had time to answer every question.  I used to answer more of them but recently I was diagnosed with Adiposis Dolorosa. Adiposis dolorosa, or Dercum disease, is a rare condition that is characterized by multiple, painful fatty lipomas (benign, fatty tumors)…

13

Three Simple Rules for Better Debugging with WorkflowApplication

Developers often say that there is a steep learning curve with Windows Workflow Foundation (WF4).  I won’t deny that… instead, allow me to share three simple rules that will help you to get over that curve sooner and to make them easy to remember, they all begin with “U” which is appropriate because they do…

3

What State is my StateMachine in?

Recently saw this question in the MSDN Workflow Forum Is there a (SetState) in the new StateMachine Activity? Many users of Workflow in .NET 3.5 took advantage of the StateMachineWorkflowInstance class to determine what state a workflow is in, and also to force it to a new state.  Some people use this class as a…

7

Extending ASP.NET MVC Account Registration with Workflow (WF4)

One thing that many web sites do is to verify email addresses by sending you an email to complete registration.  I decided to build a Registration system for ASP.NET MVC using Windows Workflow Foundation. When you create a new ASP.NET MVC web site, the site comes with a simple account controller that integrates with ASP.NET…

7