Click here to Skip to main content
15,914,406 members
Home / Discussions / C#
   

C#

 
GeneralRe: Breaking Up Classes Pin
PIEBALDconsult27-Jan-11 14:13
mvePIEBALDconsult27-Jan-11 14:13 
AnswerRe: Breaking Up Classes PinPopular
Luc Pattyn27-Jan-11 13:07
sitebuilderLuc Pattyn27-Jan-11 13:07 
GeneralRe: Breaking Up Classes Pin
inayathussaintoori27-Jan-11 14:04
inayathussaintoori27-Jan-11 14:04 
GeneralRe: Breaking Up Classes Pin
musefan28-Jan-11 5:58
musefan28-Jan-11 5:58 
GeneralRe: Breaking Up Classes Pin
Luc Pattyn28-Jan-11 6:14
sitebuilderLuc Pattyn28-Jan-11 6:14 
AnswerRe: Breaking Up Classes Pin
PIEBALDconsult27-Jan-11 14:09
mvePIEBALDconsult27-Jan-11 14:09 
AnswerRead this ebook from los techies about the SOLID principles Pin
i.j.russell28-Jan-11 1:36
i.j.russell28-Jan-11 1:36 
AnswerRe: Breaking Up Classes Pin
Alan Balkany28-Jan-11 3:07
Alan Balkany28-Jan-11 3:07 
One of the goals of programming is clarity. Clarity facilitates software maintenance, and makes code more reliable since it's easier to spot errors. Another (sometimes contradictory) goal is efficiency.

So, if your class split improves clarity or efficiency, it could be the right thing to do.

One measure of clarity is the amount of interaction between the two split classes, called "coupling". If every method in one class depends on, and interacts with something in the other class, the classes are coupled, and this impairs clarity. E.g. to understand a method in one class, you constantly have to bring the other class up on the screen. This breaks your train of thought, and makes consequences of changes less clear.

If the two split classes are independent, with little coupling, splitting them is probably the right thing to do. Small classes are easier to work with than large classes, so this improves clarity.
AnswerRe: Breaking Up Classes Pin
fjdiewornncalwe28-Jan-11 4:12
professionalfjdiewornncalwe28-Jan-11 4:12 
QuestionUSB device detection upon program startup Pin
Blubbo27-Jan-11 9:51
Blubbo27-Jan-11 9:51 
AnswerRe: USB device detection upon program startup Pin
Luc Pattyn27-Jan-11 11:02
sitebuilderLuc Pattyn27-Jan-11 11:02 
GeneralRe: USB device detection upon program startup Pin
Blubbo27-Jan-11 16:46
Blubbo27-Jan-11 16:46 
AnswerRe: USB device detection upon program startup Pin
Luc Pattyn27-Jan-11 17:25
sitebuilderLuc Pattyn27-Jan-11 17:25 
Questionproblem with dynamic ips when using sockets. Pin
prasadbuddhika27-Jan-11 6:25
prasadbuddhika27-Jan-11 6:25 
AnswerRe: problem with dynamic ips when using sockets. Pin
Yusuf27-Jan-11 6:30
Yusuf27-Jan-11 6:30 
AnswerRe: problem with dynamic ips when using sockets. Pin
Richard MacCutchan27-Jan-11 7:15
mveRichard MacCutchan27-Jan-11 7:15 
GeneralRe: problem with dynamic ips when using sockets. Pin
prasadbuddhika27-Jan-11 19:23
prasadbuddhika27-Jan-11 19:23 
GeneralRe: problem with dynamic ips when using sockets. Pin
Richard MacCutchan27-Jan-11 22:45
mveRichard MacCutchan27-Jan-11 22:45 
AnswerRe: problem with dynamic ips when using sockets. Pin
jschell27-Jan-11 8:37
jschell27-Jan-11 8:37 
QuestionEquivalent way to achieve const or readonly return type from method Pin
bob1697227-Jan-11 5:09
bob1697227-Jan-11 5:09 
AnswerRe: Equivalent way to achieve const or readonly return type from method Pin
_Erik_27-Jan-11 5:33
_Erik_27-Jan-11 5:33 
AnswerRe: Equivalent way to achieve const or readonly return type from method Pin
Luc Pattyn27-Jan-11 5:36
sitebuilderLuc Pattyn27-Jan-11 5:36 
AnswerRe: Equivalent way to achieve const or readonly return type from method PinPopular
jschell27-Jan-11 8:45
jschell27-Jan-11 8:45 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
fjdiewornncalwe27-Jan-11 8:49
professionalfjdiewornncalwe27-Jan-11 8:49 
GeneralRe: Equivalent way to achieve const or readonly return type from method Pin
bob1697227-Jan-11 8:56
bob1697227-Jan-11 8:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.