Skip to content

Monthly Archives: March 2010

Writing better code: it’s imperative that you are declarative

21-Mar-10

Most C# developers are very familiar with writing imperative code (even though they may not know it by that name). In this article, I will introduce you to an alternative style of programming called declarative programming. Proper declarative code is easier to read, understand, and maintain. As professionals, we should be striving to write better [...]

All types are not compared equally (part 2)

18-Mar-10

In part 1 of this series I explained the difference between reference equality and value equality. In this article I am going to demonstrate how to compare two reference types using value equality semantics. Override Object.Equals Every time you use the binary equality operator (==) or the Equals method on a reference type you are [...]