Click here to Skip to main content
15,891,744 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
led mike20-Nov-07 6:10
led mike20-Nov-07 6:10 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
Brady Kelly20-Nov-07 6:29
Brady Kelly20-Nov-07 6:29 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
led mike20-Nov-07 8:26
led mike20-Nov-07 8:26 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
Brady Kelly20-Nov-07 9:20
Brady Kelly20-Nov-07 9:20 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
led mike20-Nov-07 9:56
led mike20-Nov-07 9:56 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
Brady Kelly20-Nov-07 10:41
Brady Kelly20-Nov-07 10:41 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
Tristan Rhodes22-Nov-07 5:43
Tristan Rhodes22-Nov-07 5:43 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
led mike26-Nov-07 4:50
led mike26-Nov-07 4:50 
Tristan Rhodes wrote:
Does that guy really advocate not using properties?

It's slightly more complicated than that. If you read Holub's article I would start by saying he has far more experience and skill than I will ever have. Also his writing is far superior to mine, therefore my attempt to clarify his words seems silly but here goes.

I work with people who think that just because the code they write has classes in it they are doing object oriented programming. Nothing could be further from the truth. That is what Holub's point is. Just because you write a class doesn't mean you are doing object oriented "design".

Holub points out that many people are doing just that. They write a class making the attributes private (data hiding) good start, but then they expose them, and worse "use them" from other classes thereby reversing the "hidden" aspect of the data.

Again the point is not to not use properties it's to wake up and try to understand the point of "data hiding", what the benefits are and why it's a "principle" of Object Oriented Design. Basically all you do when resort to using public properties is give up on that principle of OOD and fall back to procedural design. Along with that decision you incur the technical debt[^] that comes with it. The technical debt is the reason it's bad, it's not a religious argument it's a practical argument. That's why it doesn't matter if you or anyone else agrees with Holub, all that matters is reality and he has a better grip on it, when it comes to software development, than most of us.

Well that's my two cents worth and that's about all it's worth, I doubt it is helpful to you or anyone else.



GeneralRe: Child Objects Inheriting Property Values from Parents Pin
Tristan Rhodes28-Nov-07 1:14
Tristan Rhodes28-Nov-07 1:14 
GeneralRe: Child Objects Inheriting Property Values from Parents Pin
led mike28-Nov-07 6:22
led mike28-Nov-07 6:22 
QuestionScaling out transaction processing Pin
Anubis33316-Nov-07 7:50
Anubis33316-Nov-07 7:50 
AnswerRe: Scaling out transaction processing Pin
led mike19-Nov-07 4:50
led mike19-Nov-07 4:50 
GeneralRe: Scaling out transaction processing Pin
Anubis33327-Nov-07 10:29
Anubis33327-Nov-07 10:29 
GeneralRe: Scaling out transaction processing Pin
led mike27-Nov-07 11:17
led mike27-Nov-07 11:17 
GeneralRe: Scaling out transaction processing Pin
Anubis33328-Nov-07 4:09
Anubis33328-Nov-07 4:09 
QuestionArchitecture for implementing locking Pin
Simon P Stevens15-Nov-07 2:00
Simon P Stevens15-Nov-07 2:00 
AnswerRe: Architecture for implementing locking Pin
cmf-DBA15-Nov-07 11:19
cmf-DBA15-Nov-07 11:19 
GeneralRe: Architecture for implementing locking Pin
Simon P Stevens16-Nov-07 3:28
Simon P Stevens16-Nov-07 3:28 
GeneralRe: Architecture for implementing locking Pin
cmf-DBA16-Nov-07 9:24
cmf-DBA16-Nov-07 9:24 
GeneralRe: Architecture for implementing locking Pin
Simon P Stevens19-Nov-07 10:21
Simon P Stevens19-Nov-07 10:21 
GeneralRe: Architecture for implementing locking Pin
cmf-DBA20-Nov-07 3:17
cmf-DBA20-Nov-07 3:17 
QuestionWrapping Composite Controls Pin
Tristan Rhodes14-Nov-07 3:12
Tristan Rhodes14-Nov-07 3:12 
AnswerRe: Wrapping Composite Controls Pin
led mike15-Nov-07 4:45
led mike15-Nov-07 4:45 
GeneralRe: Wrapping Composite Controls Pin
Tristan Rhodes15-Nov-07 22:44
Tristan Rhodes15-Nov-07 22:44 
GeneralRe: Wrapping Composite Controls Pin
led mike19-Nov-07 12:00
led mike19-Nov-07 12:00 

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.