Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A methodology that enables a system to be modeled as a set of objects that can be controlled and manipulated in a modular manner
3
votes
Is "avoid the yo-yo problem" a valid reason to allow the "primitive obsession"?
The other answers have talked about OO domain modelling and using a richer type to represent your value.
I don't disagree, especially given the example code you posted.
But I also wonder if that ac …
9
votes
When to move a common field into a base class?
I'm going to play devil's advocate here.
Right now you should do nothing.
Is it DRY? No. But it's better to have a little duplication than a premature abstraction that you can't easily back out of l …
3
votes
How far can you push Object Oriented Programming?
I almost responded with an answer similar to this on the other question and decided not to. I've been tempted twice, I'll bite.
What are we even arguing about here?
Why do we do Object Oriented progra …
5
votes
Return considered harmful? Can code be functional without it?
This entire question strikes me as a 'level violation'.
You have (at least) the following levels in a major project:
The system level e.g. e-commerce platform
The sub-system level e.g. user validat …