Dave Zych

View compilation in ASP.NET 5 with the RazorPreCompileModule

In MVC versions up to and include version 5, you could compile your Razor views by adding the attribute in the csproj file. But in ASP.NET 5 there is no more csproj file, so how we compile views for MVC 6? Why? If you've never compiled views and

Unit Testing Entity Framework 7 with the In Memory Data Store

Entity Framework 7 [https://github.com/aspnet/EntityFramework] includes a new InMemory [https://github.com/aspnet/EntityFramework/tree/dev/src/EntityFramework.InMemory] store which is fantastic for unit testing. No more mocking DbContext or doing other dumb things! Here's how Start by creating a new class library project using the

Programmers and sleep

For most programmers, sleep is an afterthought. It gets in the way of coding. Of inspiration. Of progress. But sleep is an important part of your mental and physical health and is essential in keeping your body running smoothly. Most programmers I know have some trouble sleeping, a disorder or

The SOLID design principles applied to an actual Swiss Army Knife

The term swiss army knife is thrown around a lot when discussing the SOLID principles. Dave, that class looks like a swiss army knife. We need to refactor that shit. Yeah. Whatever. You know what, how about we see how a real swiss army knife stands up against the SOLID

The Internet, text encodings and making an ass out of you and me

HTML, by it's design, is incredibly liberal in what it accepts. Which is kind of cool, but sometimes it's definitely not and it bites you. And it can bite you in many ways, including the character encoding used on a page. (I.e. ascii vs unicode vs whatever. Read this

Dave Zych © 2026