337 reputation
312
bio website dicasdotnet.blogspot.com
location
age
visits member for 3 years, 8 months
seen Jul 11 at 16:09

Jul
5
awarded  Nice Answer
Apr
16
comment How to make my code decide which class to instantiate based on a parameter?
Yes, I used string in my example for sake of simplicity, but the idea is to use an ENUM. Java is OK, the important is the concept, not the implementation. Thanks a lot :)
Apr
16
accepted How to make my code decide which class to instantiate based on a parameter?
Apr
15
revised How to make my code decide which class to instantiate based on a parameter?
added 279 characters in body
Apr
15
comment How to make my code decide which class to instantiate based on a parameter?
Sure, I have queries that are going to be called against a database. I want to have the same flow for the queries that do not have any business logic applied to it (ex: get all users, get all students, and so on)
Apr
15
asked How to make my code decide which class to instantiate based on a parameter?
Mar
6
awarded  Benefactor
Mar
6
accepted My architecture has a problem with views that required information from different objects. How can I solve this?
Mar
6
comment My architecture has a problem with views that required information from different objects. How can I solve this?
Perfect explanation! Thanks! I marked the post as answer, but I have to wait 2 hours to give you the bounty ;)
Mar
6
comment My architecture has a problem with views that required information from different objects. How can I solve this?
ps: the question was made before I read the links you sent because I would like to clear this and give you the points, then take my time to read everything :)
Mar
6
comment My architecture has a problem with views that required information from different objects. How can I solve this?
wow, while I know some of the concepts you talked about, there is a lot to read, so it will take a while, so one last question before I accept this answer (the points in this question will be the best points ever spent here :) ): I would receive the DTOs in my BL. So if I have a method foo() called by 2 views, I will have foo(DTOView1) and foo(DTOview2), each would instantiate a new BO object and populate it and then call the "real" foo(). Correct? This would cause my BL to have many foo's, is this correct?
Mar
6
comment My architecture has a problem with views that required information from different objects. How can I solve this?
Hey! thanks for the answer. I will read it during the day and get back to you! Tks! One last question (I'm still reading you answer, so sorry if you already answered): Would you agree with w/ @AndrewM when he says that BO should be created on the view layer? If so, how would you solve the issue that my business layer be coupled with my DTO's and, therefore, to my view layer, since DTO's represent the set of information required for a specific view?
Mar
5
revised My architecture has a problem with views that required information from different objects. How can I solve this?
added 195 characters in body
Mar
5
awarded  Promoter
Mar
5
comment My architecture has a problem with views that required information from different objects. How can I solve this?
I've edited the question with a reply for you. :)
Mar
5
revised My architecture has a problem with views that required information from different objects. How can I solve this?
added 709 characters in body
Feb
28
comment My architecture has a problem with views that required information from different objects. How can I solve this?
This pattern deals with the idea of collaboration and staleness. (Please see the edit). When you say to create a new model, you have the same idea of my adapter object. The problem is that this would be a "disguised DTO", it would be attached to the VIEW needs and I could require many different combinations of informations, causing my system to have many different objects, one for each request.
Feb
28
revised My architecture has a problem with views that required information from different objects. How can I solve this?
added 706 characters in body
Feb
27
comment My architecture has a problem with views that required information from different objects. How can I solve this?
That looks interesting, I will take a look tonight and get back to you ASAP :D
Feb
27
asked My architecture has a problem with views that required information from different objects. How can I solve this?