Tag : design-patterns

I have been studying software architecture and design patterns for the past weeks, and for a week now I can’t stop thinking about the performance problems that come with the flexibility of the data mapper pattern. In the book written by Martin Fowler, he gives an example of the pattern with some find methods and just one delete method, one update method and one insert method. So, when he has to update multiple objects, he takes multiple “trips” to the database. I started reading about the Unit Of Work pattern in the same book, but it looks like by its implementation that it doesn’t solve this problem e..

Read more

Read more