Browse by Tags

Syntactic Sugar for Thrown Exception Checking with Generics

Using attributes like [ExpectedException] can obscure intent because they apply to the whole method instead of a specific call you're checking. To make intent totally clear and prevent unexpected bugs, you should wrap just the statement you're expecting Read More...

Functional Programming and Unit Testing

These code samples are from: http://www.ayende.com/Blog/archive/2008/06/06/Scratching-an-itch-NMemcached.aspx public class SystemTime { public static Func<DateTime> Now = () => DateTime.Now; } At first I was wondering what the point of that was. Read More...

SQL 2008 Feb CTP6 Query Workaround

If you're like me and always change the default install directories, you've probably run into this. A workaround is here . Share this post: Email it! | bookmark it! | digg it! | reddit! Read More...

Good Overview of Types of Testing and TDD

Test-driven development, Unit Test, VSTS, NUnit, TestDriven.NET, whats all this? Good Overview of Types of Testing and TDD Share this post: Email it! | bookmark it! | digg it! | reddit! Read More...

Testing Theories Part 4 - TypeMock Isolator - The Dark Horse of Unit Testing?

Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Testing Theories Part 3 - IoC Containers (Castle Windsor, Spring.NET), AutoMocking Containers

Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Testing Theories Part 2 - Unit Testing with Inversion of Control Pro's/Con's

Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Testing Theories Part 1 - Classical vs Mock Testing

I'll begin a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Software Engineering

What do software engineer's do? A well written description notably devoid of terms like "code monkey". Share this post: Email it! | bookmark it! | digg it! | reddit! Read More...

Assigning Responsibilities

It’s All about Assigning Responsibilities This example really hit home for me. I am faced with a very similar legacy code design where some processing takes place and an e-mail is sent out. My current tests consist of integration tests that outright send Read More...

Philly Dot Net Code Camp

http://www.phillydotnet.org/ This Saturday I attended the Philly Dot Net Code Camp. It was very well organized, especially considering it was a free, volunteer run conference. I spent most of my time in the ALT.NET track and really found some excellent Read More...

tempdb contention and trace flag 1118

It has been recommended for SQL 2000 and 2005 to enable trace flag 1118 to disable mixed extent allocation. Recently a hotfix came out for SQL Server 2005 SP2 that resolved a potential contention issue with the flag itself: http://support.microsoft.com/kb/936185 Read More...

Creative Queries

Two interesting techniques I came upon: http://www.sqlteam.com/article/sql-sever-2005-using-over-with-aggregate-functions Retrieve aggregate data using OVER(Partition by ...) rather than doing another join http://weblogs.sqlteam.com/jeffs/archive/2007/06/12/60230.aspx Read More...

Promises and Paradigms

I've always tried to make it a point to read a lot about the industry and constantly shifting and improving methods and best practices. Sometimes the buzz dies down after a bit -- I was particularly amused to find people tired of the lofty promises of Read More...

Community

Ever since I started x86 programming, I've always found communities of individuals sharing knowledge and collaborating from the early days on local BBS's and FidoNet to forums and blogs today. It's quite ironic considering all the jokes about anti-social Read More...