The nameof() operator has been so commonly used by the developers that one could not be called guilty if he assumes it was there since C# was born. Despite that, there are days it might still surprise you. What would be your reply if I asked you to predict the output of the following. No … Continue reading Evil Code #009 : nameof Operator
Month: May 2019
GOF: Composite Pattern
Composite Pattern, in a way, literally takes of from where Decorator Pattern ends. One might be inclined to think of it as a specialized case of Decorator Pattern which composes one or more instances of similiar objects and manipulate them uniformly. This allows the client to work on a single entity or composition of entity … Continue reading GOF: Composite Pattern
3 Rules for TDD
I couldn't help but share this. There couldn't be a better way to summarize the unwritten rules of TDD, than the one wrote by Uncle Bob in his famous book 'Agile Principles, Patterns and Practices in C#''. Don't write any production code until you have written a failing unit test. Don't write more of a … Continue reading 3 Rules for TDD