is it advisable to build very large domaini objects with hundreds of attributes??
sum_ban2004
2006-07-11 14:06:56 UTC
is it advisable to build very large domaini objects with hundreds of attributes??
Three answers:
Claim The Earth
2006-07-11 14:12:00 UTC
An object is supposed to "do one thing only, and do one thing very well". It is almost never a good idea to have an object having too many attributes. When a object grows big it is time to consider "refactoring". You can Google terms, such as "code refactoring", "high cohesion, low coupling" to learn more about "thinking in objects" -- Oh, this last one is a good term to Google too.
Popocatepetl
2006-07-11 23:43:19 UTC
You have to build an object according to what you need, of course the best designs is the more simple you can have.
The rule i always follow, that the teachers mentioned all the time is Divide and Conquer.
marissa m
2006-07-11 21:08:36 UTC
i love it when it rains
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.