When to use functional programming approach and when not? (in Java)
let’s assume I have a task to create a Set
of class names. To remove duplication of .getName()
method calls for each class, I used org.apache.commons.collections.CollectionUtils
and org.apache.commons.collections.Transformer
as follows:
Is it better to define all routes in the Global.asax than to define separately in the areas?
I am working on a MVC 4 project that will serve as an API layer of a larger application.
Can the following Domain Entity contain logic for creating/deleting other entities?
a) As far as I understand it, in most cases Domain Model DM doesn’t contain code for creating/deleting domain entities, but instead it is the job of layers ( ie service layer or UI layer ) on top of DM to create/delete domain entities?
Design patterns frequently seen in embedded systems programming [closed]
Closed 9 years ago.
Design patterns frequently seen in embedded systems programming [closed]
Closed 9 years ago.
Design patterns to manage multiple windows/screens?
Supposed there is an application with multiple windows, like:
Separating validation from persistence in models?
Models in an MVC application gets kind of hard to test when validation of data and persistence of data is baked together in the model. I would like to test those separately to prevent doing integration testing instead of actual unit testing.
How can I design my classes to include calendar events stored in a database?
I’m developing a web calendar in php (using Symfony2) inspired by iCal for a project of mine.
At this moment, I have two classes: a class “Calendar” and a class “CalendarCell”.
Concurrency pattern of logger in multithreaded application
The context:
We are working on a multi-threaded (Linux-C) application that follows a pipeline model.
How to manage long running background threads and report progress with DDD
Title says most of it. I have found surprising little information about this. I have a long running operation of which the user wants to see the progress (as in, item x of y processed). I also need to be able to pause and stop the operation. (Stopping doesn’t rollback the items already processed.)