Something frustrating I learned today about my favorite Mocking tool today, or at least in version 4.0 that I have installed, it can’t handle anonymous objects in method parameters. This is very depressing in web programming where it doesn’t make much sense to create a static DTO …
read moreWhy Resharper? Code Formatting
While Visual Studio is often made fun of for being bloated, and has more functionality than a single developer could hope to create in a career, it still has a few missing features. This is where Resharper from JetBrains steps in.
In particular today I want to talk about just …
read more3 frameworks to evaluate for your next .NET project
In software development today there is always a stream of new technologies, languages, frameworks, paradigms, and stacks to evaluate. Even if you narrow your scope to C# web stacks, there are plenty of new developments in development tech. I’ve seen and read about a lot of them, but I …
read moreAngularJS Readonly Dropdown
HTML select’s don’t implement the readonly attribute, so the only way to prevent them from being edited is to use the disabled attribute. Doing so however prevents them from being posted on submission. The standard solution for this is create a hidden input field, which you have to …
read moreHow I did it: Sql Server Transactional Replication
Configuring SQL server replication isn’t something I do every day, so I thought I might enjoy some breadcrumbs to follow the next time I travel down this path.
My client needed to have a number of tables and views replicated to a reporting server. The reporting server needed near …
read moreWhy does SourceTree fail to connect to my Git repo on Windows?
I’m a big fan of SourceTree by Atlassian. While purists might scoff at a GUI for Git, I find my normal workflow much improved by a few pretty pictures. And for the tough stuff, the Terminal is dedicated button on the main repo view.
What stinks about SourceTree, at …
read moreOverloaded Inheritance in C#
class Foo { public void Who( int i ) { Console.Write("Foo"); } } class Bar : Foo { public void Who( double d ) { Console.Write("Bar"); } } var bar = new Bar(); bar.Who( (int) 1 ); //Outputs "Bar" to the Console
Why does the compiler use the double version of the method when we passed an integer …
read more