Author Archives: Derik Whittaker

Fix your code, don’t disable static analysis

Maybe it is my OCD, maybe it is that I would like to think I try to always write clean code, maybe it is something else entirely. But I always cringe when I see people turn off or disable static … Continue reading 

Posted in Clean Code | Tagged | Leave a comment

Merge Headache — Don’t Re-Purposes a class, create a new one

Merging code does not have to be the frustrating process that many people experience, if done right. I have learned during my career that if I pull from my master branch daily, if not more often, my merges are almost … Continue reading 

Posted in Git, Uncategorized | Tagged | 3 Comments

Typescript Support in Atom Editor for Windows

Recently I was trying to get TypeScript support working inside the Atom editor on windows. In my attempt to get things working I went to the Atom site and found the TypeScript package. Per the documentation I did ‘apm install … Continue reading 

Posted in Uncategorized | 3 Comments

JavaScript Code Coverage using Karma-Coverage w/ Grunt

As part of our ongoing effort at my client to setup a testing environment for our JavaScript code I wanted to also setup the ability to do code coverage on our files. To accomplish this I am going to integrate … Continue reading 

Posted in Grunt, Jasmine, Testing | 3 Comments

Forcing MVC Model State to invalid for Unit Tests

Unit testing ASP.Net MVC applications is easier than every today. But how do you force ModelState.IsValid to be false in a unit tests? The simple thought would be to simply create an invalid object and pass that into your action … Continue reading 

Posted in MVC | 3 Comments