In programming, laziness can often be an asset. It has been said that it is a good trait for programmers themselves. It has to be a forward-thinking laziness, not a short term avoidance of work. Being methodical in the reduction of how much work you have to do via automation or streamlining of processes over…
Linq Cheat Sheet
Linq lets us express collection transformations really nicely much of the time, but its names for operations are sometimes not the most obvious, so sometimes it helps me to write out the most common operations and what they mean as a cheat sheet. This is a list in order that I find them most common/useful:…
yield, IEnumerator and the iterator pattern in C#
I have been programming in C# for around ten years now. Before that, I worked in C++. My education was games-focused and at the time, C++ was pretty much the only serious option for programming games. Some poor souls still insisted that C was still the better choice. I thought they were insane at the…