DDD Melbourne -lessons leant
Posted
by Michael Freidgeim
on Geeks with Blogs
See other posts from Geeks with Blogs
or by Michael Freidgeim
Published on Tue, 18 May 2010 12:47:50 GMT
Indexed on
2010/05/18
13:11 UTC
Read the original article
Hit count: 650
Filed under:
I've attended DDD Melbourne and want to list the interesting points, that I've leant and want to follow.
To read more:
* Moles-Mocking Isolation framework for .NET. Documentation is here. (See also Mocking frameworks comparison created October 4, 2009 )
* PluralSight http://www.pluralsight-training.net/offers/default.aspx?cc=trial
* VS UI Test Recorder -see posts Visual Studio 2010 Coded UI Test User Guide. Note that Microsoft Test Manager (MTM) toolis a separate application, that can be started from Program files/VS 2010 menu.It is not a menu inside Visual Studio.
* CodeContract- seems great in Debug. Will be good if in production will be possible runtime configuration, ability to log instead of throw exception.
Current recommendation to customize Debug.Assert is not trivial
The programmer is free to use the customization provided by Debug.Assert using assert listeners to obtain whatever runtime behavior they desire (e.g., ignoring the error, logging it, or throwing an exception).// Clears the existing list of assert listener (the default pop-up box)System.Diagnostics.Debug.Listeners.Clear();// Install your own listenerSystem.Diagnostics.Debug.Listeners.Add(MyTraceListener);
Note that you can't catch specific ContractException, but can catch generic Exception(see How come you cannot catch Code Contract exceptions?)
Books recommended "Working effectively with legacy code" by Michael Feathers (corresponding article)
Fowler, Martin Refactoring: Improving the Design of Existing Code, slides http://jaoo.dk/jaoo1999/schedule/MartinFowlerRefractoring.pdf
© Geeks with Blogs or respective owner