Short circuit your code, for science!

I think that the topic of short-circuiting is an under-appreciated one. In short, short-circuiting is simply ending an evaluation the instant it becomes false:

In this example, the second condition doesn’t get evaluated in either case. In the first example, the compiler sees that both conditions have to be …

No really; why should I bother with interfaces? (interfaces in c# part 3)

This is a follow up to my 2 video tutorial “Interfaces in C#”. There were some comments left on the YouTube thread suggesting that some folks are understanding how interfaces work, but still don’t see the point in using them. As always, I say that exposure is the best answer. …

Liskov Substitution Principle

What is the Liskov Substition Principle (LSP)? Well, honestly, it’s a lot of things and I’m not going to try and explain them all in this article because I’m not even sure I understand it all lol. However, the one part of it I get is this: If T is …