Monthly Archives: April 2012

iBooks EPUB Cover

The EPUB format supports specifying a cover image. This is the first page that is displayed when the book is opened. iBooks also takes the cover image and shrinks it down to 100×150 for display on the iBooks bookshelf. You … Continue reading

Posted in EBooks | Tagged , , | Leave a comment

mstest Test Categories!

NUnit and xUnit.net have more regular releases than mstest. This is understandable since they are both small, opensource projects whereas mstest is part of Visual Studio which is far from a small project and far far from an opensource one. … Continue reading

Posted in C#, Unit Testing | Tagged , | Leave a comment

Design Patterns are Everywhere

If you’ve been programming for some time, you have likely worked with many design patterns without realizing it. Design Patterns are simply patterns of writing code that developers have noticed over time. Very often Design Patterns are best-suited or commonly … Continue reading

Posted in Architecture | Tagged , | Leave a comment

API Usability

I recently read an interesting chapter from Making Software: What Really Works, and Why We Believe It┬áby Adam Oram & Greg Wilson. It discusses the topic of API usability, which is not something I have encountered in the past. Microsoft … Continue reading

Posted in Architecture | Tagged | Leave a comment

Reading an Excel .xlsx file from C#

I have often written code to parse CSV files. Excel supports editing CSV files so this seemed to be a good method of managing moderate-sized data sets. I have not bothered to parse the Excel file directly because that seemed … Continue reading

Posted in C# | Tagged , , , , | 10 Comments

WCF Data Service Tribulations

WCF Data Services is an implementation of the OData Protocol. OData makes it easy to access and modify data from any data source. WCF Data Services makes it easy to expose a rich SQL Server data source by leveraging the … Continue reading

Posted in Architecture | Leave a comment

Service Architecture: DRY vs SRP Principles

When building n-tiered services, the Single Responsibility Principle (SRP) appears to violate the Don’t-Repeat-Yourself (DRY) Principle. This can best be seen when comparing an OData/Entity-Framework service and a more traditional service. Traditional Service In a traditional service, to expose a … Continue reading

Posted in Architecture | Tagged , , , | Leave a comment