2 Jul
2010

Using TransactionScope with SQLite

Category:UncategorizedTag: :

Earlier this week I ran into a little quirk with SQLite. Take a look at the following code snippet: using(var transaction = new TransactionScope(TransactionScopeOption.Required)) { using(var connection1 = new SQLiteConnection(_connectionString)) { connection1.Open(); … // Do stuff with the open connection } // Closes the connection (so we think …) using(var connection2 = new SQLiteConnection(_connectionString)) { […]

Read More
2 Jul
2010

Book Review: Switch – How to Change Things When Change is Hard

After hearing about this book in an interview with Mary and Tom Poppendieck, I decided to immediately purchase the audio version on Audible and listen to it during my daily commute to and from work. This book is all about how to enable and inspire change in all kinds of environments, be it at work, […]

Read More
1 Jul
2010

Software Craftsmanship and Giving Back

This spring I had the distinct honor of teaching a .Net programming course at Boise State University.  Going into the course I was definitely unsure of what to expect. From David Starr’s horror stories of burning ERD’s to cautious skepticism from other professors I entered this senior level class half wondering if I’d be teaching […]

Read More
25 Jun
2010

Learning JavaScript – Checking The Declaration of a Variable

Judging from my previous post, some people might have come to the conclusion that I?m in the process of learning a wonderful programming language called JavaScript. Well, they?re right! It is a fascinating programming language although it has its quirks and pitfalls. Have a look at the following piece of code: var someString = "Hi […]

Read More
21 Jun
2010

Pluralcast 18 : BDD in .NET with StoryQ

Category:General PostTag: :

   Listen to this episode! [31:03] This episode is a visit with Rob Fonseca-Ensor, the HCIC (Head Craftsman in Charge) of StoryQ, a BDD testing framework for .NET. I used StoryQ in this talk at TechEd 2010 and have used it in production for awhile now. I really like this framework as a vehicle for […]

Read More
20 Jun
2010

Prefer Additional Methods Over Additional Overloads

If you have ever written code that is going to be used as an API for other programmers, you may start to think about writing code in a different viewpoint from what you normally do. Most of us write code for the purpose of achieving a goal.  If we practice writing elegant code, we are […]

Read More