Microsoft.AspNet.Web.Optimization Minifies Mediaqueries wrong

Yngve Bakken Nilsen

Update: The bug mentioned here is now fixed in both WebGrease (making sure there are leading spaces) and in Chrome (making sure it parses mediaqueries without leading spaces in front of keywords). However, since this is a proposal in the future CSS spec that spaces are mandatory, I'll leave the…

Implementing the C(ommand) in CQRS

Yngve Bakken Nilsen

In this post I'll show how easily you can implement the Command-part of CQRS in your application. If you don't know what CQRS (or Command Query Responsibility Separation for "short") is, you can read about it over at Martin Fowler, but the short story is that you want to separate…

Implementing Domainevents in your application

Yngve Bakken Nilsen

Disclaimer: This is not some invention by me. The code I'm presenting is written by me, but inspired by the work of others. I'm not taking credit for this approach, but simply conveying the principle :) Make sure to check out my post on Commands as well for a nice supplement…

Creating a reusable base for WP7 apps - Commands

Yngve Bakken Nilsen

Commands In Part 2 we looked at how we could solve navigation in a managable way. I did this by the assumption that one view would have one viewmodel, and apparently this caused some disagreements and a great blogpost by my friend and former colleague (and now colleague again), Olav…

Creating a reusable base for WP7 apps - Navigation

Yngve Bakken Nilsen

Navigation In Part 1 we covered the basic stuff like ViewModels, setting up the project structure. In this part we'll move forward, and see how we can implement navigation and commands in our application Navigation the old fashioned way Normally when navigating in a Windows Phone 7 application we utilize…