Re: Is this too much OOP?




Daniel T. wrote:
"topmind" <topmind@xxxxxxxxxxxxxxxx> wrote:
Daniel T. wrote:
"topmind" <topmind@xxxxxxxxxxxxxxxx> wrote:
Daniel T. wrote:
"topmind" <topmind@xxxxxxxxxxxxxxxx> wrote:
Daniel T. wrote:

If you want to bash OO, by all means start a thread and do it.
Don't try to trash other threads.

I am just giving counter points. One-sided point of views are the
type one gets in Iran.

At least I am criticising only ideas, not people. Thus, one could
do a lot worse.

What you didn't do though, is make any attempt to answer the OPs
question. There wasn't anything to criticize, there was simply a
question to answer. Criticizing people's behavior is appropriate
when the behavior is destructive to social intercourse.

This all started when I simply offered some alternative opinions on
case statements and OO's alleged betterment. I didn't create the
original opinions, you did. I simply gave counterpoints to them. How
that makes me bad, I don't know.

You might want to review this thread again. It was never about case
statements. You brought up case statements in an attempt to hijack the
thread.

Quote: "The key is to use structured programming practices to remove
duplicated
code, and OO practices to remove duplicated structure (decision code.)"

That usually means case-statements or IF statements.


My original opinion was that the OP should remove duplication,

Duplication of "decision code" (your words). This generally means to
replace IF and CASE statements with polymorphism. If there is an
alternative interpretation, I would enjoy seeing it.

And, it does not really remove duplication, but just puts it in a
different spot or grouping. It is a shell game of sorts.

by
whatever means works. You didn't address that at all, instead you
created a new opinion to "simply give counterpoints" to.


-T-

.