One part of my program fetches data from many tables and columns in my database for processing. Some of the columns might be null
, but in the current processing context that is an ..
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..
I am considering how to set precise boundaries of bounded contexts. Considering that a bounded context is a solution space, sometimes it is very difficult to set what exactly is your solution ..
Closed 5 years ago
In my application I have a class, and each instance of this class shares part of an unmanaged resource. Sharing is facilitated by a manager o..
Let’s say that I have an ArrayList of class Person and I have two objects that are generated from two different classes which read and write to this Arra..
Disclaimer: I am going to write in Python and in the context of web development with Django, but this question is not language nor framework spe..
Should a DAO save()
method set the id/pk of the instance that is to be saved and return the instance or should it just return t..
About the app: This is an android app. The app has two components/ two different users, scorers who score the game and fans who view commentary of the ..
I’ve seen Singleton design pattern represented like below. Always with just getInstance() method.
My doubt is: once I get the instance of the object I need, if I would like to modify it don’t I need to add other methods to the Singleton class? Like setField( Type something) ? Or is against the pattern? In this case which is the right way to get a single instance and modi..