by Carlos Ble | Nov 24, 2015 | Agile, aida, Clean code, Software Development
Last week I was lucky to host my good friend Peter Kofler in his visit to Gran Canaria, where he came to facilitate the Glodal Day of Code Retreat and also to work together a couple of days in our biggest project at the moment. We’ve been working in the same...
by Carlos Ble | Oct 16, 2015 | Architecture, Clean code
C#, Java and other languages have the same behaviour when it comes to reference types. public class SomeClass { public string someField; } var instance1 = new SomeClass(); // instance1 is a reference to an object in memory var instance2 = instance1; // instance2 is a...
by Carlos Ble | Sep 18, 2015 | Architecture, Clean code, Software Development
How to communicate different pages of a Windows 8 App? How to manage the life cycle of the pages? Pages are instantiated by the framework when asked to navigate: *.xaml.cs: frame.Navigate(typeof(MyPage)); It will be a new instance of MyPage everytime unless the pages...
by Carlos Ble | Aug 12, 2015 | Clean code
There are many ways to work with collections. We are following Microsoft Guidelines for Collections plus some ideas that Kent Beck explains in Implementation Patterns. I’ve created a repository with code examples so that anyone can play with them. All the unit...
by Carlos Ble | Jul 23, 2015 | Clean code, Test Driven Development, Testing
Among other qualities good tests should be easy to read, quick to understand. When the test requires complex data structures to be sent to the SUT or to be part of a stubbed answer, it takes longer to read. Moreover those structures use to evolve as the production...
by Carlos Ble | Jun 23, 2015 | Clean code, Software Development
The default generation of Equality members provided by Resharper let you choose three different implementations when overriding the “Equals” method in a class (Alt+Insert -> Equality Members): The default choice is “Exactly the same type as...