Skip to main content

Posts

Showing posts from 2011

Book: The Art of Unit Testing: With Examples in .Net

I finished the reading of  The Art of Unit Testing: With Examples in .Net  book before a week. The book was categorized as an agile book so you can forget as the book is something like the bible of unit testing . It just summarizes the agile and pragmatic point of view to unit testing more then programmer's manual how to write correctly unit tests. First chapters define unit testing basis , point to differences between unit and integration testing. The problem is that such text doesn't highlight those differences enough and the reader couldn't understand why the isolation is so much necessary. It's followed by the expression of stubs and mocks and the list of mock frameworks . The rest of the content is sort of novel about importance of unit testing, the purpose of testing in the company. The most valuable chapter is almost last one which describes how to implement unit testing as a new feature in your company. Such text is applicable for any new technology you

HD2: Windows Phone 7.5 vs Android

My HD2 cell phone gain the time. 4.3'' 800x480 ppi display, 1GHz processor, all facilities like Wifi, GPS, SDHC cards are the properties of new cell phones but also the characteristic of my two years old HD2. The best part of this cell phone is the set of operation systems which you can deploy to this device. Windows Mobil 6.5 was the original, Windows Phone 7.5 Mango is now available since yesterday as well as various version and customizations of Android . Note that you can also install MeeBo and Ubuntu to you HD2 but it doesn't seem as a common use-case. I'd love to share my feeling since I've used Windows Phone 7.5 Mango for a week as well as I'd like to compare it to HD2's Android. HD2 and Windows Phone 7.5 Mango I've started to use famous Yuky Back to the future ROM having basic Windows Phone 7 system available to standard upgrade via Zune. Simple instalation followed by mentined updates brought my phone into pre-release Windows Phone 7.

Using of GUID as primary key in MS SQL is antipattern

We've decided to persist our domain model into database probably a year ago so beside the xml persistence our product uses any database system as a primary storage. The next step was key failure because we've designed the database schema according to current state of our domain model . Why not as NHibernate is so powerful that you are able to map almost every relation type, every scope of accessibility etc. Beside slow performance, I've already written those articles before, which we've fixed yet the another major issue appeared before a few months. The performance of MS SQL database during continuous insertion of medium-large rows slows down until the system appears almost dead. Why? As I've already written above, we've decided to not adjust the model according common database recommendations and just persist it. The lifecycle of our domain model needn't be usually coupled with database persistence. So all primary keys in all domain entities were absolu