DTOs, Business Entities and Persistency

24 באוקטובר 2009

When designing an application, one can easily confuse DTOs, Business Entities and Persistency. Using the following simple examples I will demonstrate design considerations and thoughts that will dispel some mists. Consider that you want to represent an audio or a movie located on a web page. When you visualize such an object, the first thing you probably see is the data that characterizes it. No surprise here. You applied, without knowing it, an "Information Expert" pattern when you visualized the object's knowledge responsibilities. So, what are they? Clearly such an object will have: Uri - object's URL Content - object's content DateCreated - object's creation date Etc... I will...
תגיות: , ,
אין תגובות

Notes on C++/CLI

4 באוקטובר 2009

If you asked for my opinion whether to develop an application using (unmanaged) C++, I would strongly advise you to reconsider. Unless you deal with real time applications (or near real time applications), you should better utilize the managed world. Sure, there are times for old good C++; especially when the application's memory footprint is an issue, but needless to say, you have better chances in productivity, ease of development and maintainability in the managed applications (C#, Java and etc...) than in the unmanaged world. Sometimes, obviously, the above advice is impractical. When dealing with complex algorithmic issues, which...
תגיות: , ,
אין תגובות