I'm building a new site with Bootstrap and it is fun fun fun! I was pulling in images from an api that were various sizes and dumping them into a Boostrap carousel using an AngularJS repeater. … more
It can be confusing get the actual definitions of these terms straight in your head. Dependency Inversion and Dependency Injection are related but mean different things, let’s discuss. … more
Here are a few questions regarding MS SQL Server indexes that I have been asked in interviews. This is important stuff, read on!!
What is a primary key?
A unique index that identifies … more
Another question that gets asked during interviews is "What is the difference between a static class and a singleton?" or "When would you use a static class vs a singleton?".
The … more
I was asked this interesting question at a job interview this week. Can you inherit from multiple interfaces if those interfaces have the same signatures? Here's an example:
public interface … more
In Visual Studio 2012, C# code inside MVC views does not get compiled in the normal build process. This can lead to runtime bugs... yucky!
Thankfully, you can force Visual Studio to … more
The linq expression FirstOrDefault is nifty if you are trying to get the First value in a sequence and you don't want a pesky InvalidOperationException if there are no elements returned. … more