Guidelines for better code writing

יום שני, ספטמבר 24, 2012

Hey. In the last few weeks I have seen code written by many developers, each one have it’s own style and almost the same code can be written in different ways by different developers. some asked me what are my guidelines for writing code, without further ado, here it is, divided in categories: Goals: Robust – The code you write shouldn’t fail unexpectedly and stop, only when you intend it to stop it will do so. Only what you...
3 תגובות

How to test generic methods using Microsoft.Fakes

יום חמישי, אוגוסט 9, 2012

I have started using the Microsoft.Fakes, one of the new testing future in VS2012, some time ago and I found this tool to be very very powerful and many of my new test are written with the help of Stubs and Shims. If you don’t know what I am talking about you can read about Stubs in here, about Shims in here and you can watch the a very good lecture about it (and more new futures on testing in VS2012) in here. At some point I wanted to detour using Shims a generic method, but I couldn’t...
תגובה אחת