Magic numbers in .NET

Numbers are all the way and around us. Here we will also talk about numbers. Moreover, in this post we will try to gather valuable constants for our knowledge. The main idea is to make a kind of handbook of interesting and useful numbers for .NET developers.

Continue reading “Magic numbers in .NET”


Zen of Unit Testing

Zen of Unit Testing

Ability to write good unit tests is an important feature of any developer. But how to understand that your unit tests are correct? Good unit test is like a good chess game. In our case chessmen are the approaches which we are going to discuss in this post. There is no best chessman in a chess game because everything depends on the positions (and a player). Likewise, in unit testing you don’t have to distinguish only one approach. In other words, you should use all approaches together to get the best result. So, if you want to win this game, then welcome under the cut.

Continue reading “Zen of Unit Testing”

LinQ to Objects deep inside (Part II)

In the previous article we tried to understand how linq extension methods work on the example of linq Select method by revealing all its magic and writing our custom AwesomeSelect method. Today we will understand how linq functions work along with others and talk about the difference between deferred and immediate execution in linq to objects.

Continue reading “LinQ to Objects deep inside (Part II)”