195 reputation
6
bio website
location
age
visits member for 1 year, 11 months
seen May 6 at 21:31

Feb
15
comment How do I make a domain model that doesn't violate OOP?
I'm starting to wonder if the domain model fits into my application at all. Terms like "business rules," "business logic," "business objects" all suggest... businesses.
Feb
15
awarded  Commentator
Feb
15
comment How do I make a domain model that doesn't violate OOP?
While the Wikipedia article mentions both uses for encapsulation, the rest of the article is entirely about the first. I've always found the primary benefit from encapsulation in this paragraph: Hiding the internals of the object protects its integrity by preventing users from setting the internal data of the component into an invalid or inconsistent state. A benefit of encapsulation is that it can reduce system complexity, and thus increases robustness, by allowing the developer to limit the inter-dependencies between software components. How do you reconcile this to your answer?
Feb
15
revised How do I make a domain model that doesn't violate OOP?
Readability
Feb
15
comment How do I make a domain model that doesn't violate OOP?
Wow, that explains a lot. I had it completely backwards! So should I keep my Sprite class the way it was, with JsonProperty attributes, private properties and public methods? Would it make more sense to make the properties public because it is basically an entity? Wouldn't that cause encapsulation problems? Do I need to change anything?
Feb
15
suggested suggested edit on How do I make a domain model that doesn't violate OOP?
Feb
15
comment How do I make a domain model that doesn't violate OOP?
I agree, but can you give me anything more specific? You basically just gave me another rule.
Feb
15
asked How do I make a domain model that doesn't violate OOP?
Jan
9
awarded  Nice Question
Jan
9
comment Is it possible to loosely couple an application to its framework?
Hah: sitepoint.com/…
Jan
9
comment Is it possible to loosely couple an application to its framework?
@VaughanHilts people seem to agree with you but I'm not sure what you mean. Can you elaborate?
Jan
9
awarded  Editor
Jan
9
revised Is it possible to loosely couple an application to its framework?
Readability, grammar
Jan
9
suggested suggested edit on Is it possible to loosely couple an application to its framework?
Jan
9
comment Is it possible to loosely couple an application to its framework?
Your usage of the term "proxy framework" helped clarify the issue for me.
Jan
9
comment Is it possible to loosely couple an application to its framework?
That's really good advice!
Jan
9
comment Is it possible to loosely couple an application to its framework?
Changing from PHP to .NET is probably not realistic as you pointed out. I'm thinking at a very high level, abstract, possibly lucid.
Jan
9
asked Is it possible to loosely couple an application to its framework?
Dec
31
comment Loose coupling and shuffling dependencies
Thanks for that. I had no idea what composition root was, and you mentioning led me down a new path of discovery.
Dec
31
awarded  Student