226 reputation
1614
bio website
location Monterrey, Mexico
age 28
visits member for 2 years, 8 months
seen Apr 7 at 16:19

Living in Monterrey, Mexico.


2d
awarded  Notable Question
Nov
23
awarded  Famous Question
Oct
4
accepted In DOM, why is childNodes defined in the Node interface if only some node types can have childNodes?
Oct
1
comment In DOM, why is childNodes defined in the Node interface if only some node types can have childNodes?
Check my update, my point is why define something in the interface that not every Node will be capable to do it.
Oct
1
revised In DOM, why is childNodes defined in the Node interface if only some node types can have childNodes?
added 62 characters in body; edited title
Sep
30
awarded  Commentator
Sep
30
comment Shall I separate the admin part from the rest of the war
Also keep in mind that if the WARs need to comunicate to each other they will have to do so by webservices/EJB alike and that means serialization/deserealization which adds overhead.
Sep
30
asked In DOM, why is childNodes defined in the Node interface if only some node types can have childNodes?
Sep
6
comment Do MVC web frameworks favor anemic domain model in order to avoid duplication?
Anyway, even with this you still have to duplicate validation in the view model and the domain objects, suppose that you have a business rule that says that "Member" can only be age > 18, if you had used View Model you would have a field "age" in the View Model and also in the domain object, then you would have also the same validation in both the domain and the view model, that's a lot of duplication and if the business rule changes you would have to update all the view models that contain that validation.
Sep
6
comment Do MVC web frameworks favor anemic domain model in order to avoid duplication?
The problem with view model is that you have to duplicate a lot of fields, and that's a lot of maintenance but the counter argument is that it is worth because if the model changes you don't have to update the views and also gives you more security ensuring that the view can't update fields that are not supposed to be updated in that view.
Sep
6
comment Do MVC web frameworks favor anemic domain model in order to avoid duplication?
It's interesting that concepts that are used in some technology are not used in another one, for example the View Model you talk about is not known in Java (I've never heard it before either) and in Java, frameworks advice to bind directly to the domain objects. I've been reading about this in .NET (ASP.NET MVC) and the opinion is the total opposite, they say that you shouldn't bind directly to the domain objects and create what you said "view models". Very interesting how the opinions change depending on the technology.
Aug
12
revised Do MVC web frameworks favor anemic domain model in order to avoid duplication?
added 3 characters in body
Aug
12
revised Do MVC web frameworks favor anemic domain model in order to avoid duplication?
added 399 characters in body
Aug
12
asked Do MVC web frameworks favor anemic domain model in order to avoid duplication?
Apr
3
awarded  Notable Question
Feb
25
awarded  Caucus
Feb
5
comment How can I deal with a team member who dislikes making comments in code?
+1 but I think this doesn't apply to API doc which is very important because you need to have well documented what the function/method does and return.
Jan
21
awarded  Civic Duty
Jan
21
awarded  Popular Question
Jan
18
awarded  Investor