Selasa, 21 September 2010
Implementing a ‘Money’ type in an ASP.NET MVC and NHibernate application.
Years ago I read Kent Beck’s seminal Test Driven Development. The first third of the book is a complete worked example of building a Currency type using TDD and I remember thinking at the time that this was an incredibly powerful technique. Rather than using basic data types - int, string, DateTime - we could define what we actually meant. Rather than having a property Age of type int, we would
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar