Any good reason for NOT using interface?

  • Thread starter Thread starter Marius Horak
  • Start date Start date
TT (Tom Tempelaere) said:
Then your interface is not designed well.

It's not my interface. Guys who wrote it had no OOP experience at all. They
bought a number of books and wrote the system.
Now they left and I have to fix it.
As a guideline, your interface should not contain a lot of methods and
each method should be logically consistent with the others.

You mean 12 methods in an interface are too many?
What about 37?!!!
How would you solve this problem without interfaces?
Inheritance.


Having this experience I will never use interface in my code.

Rather odd. Perhaps you are using interfaces where you shouldn't. Have you
thought about that?

Of course. It's why we are having this fun. Never used, very unlikely I will
ever use.

MH
 
You know you really are the most obnoxious poster I've ever seen on this
newsgroup? Especially since I don't think you're actually trying to be a
troll!

Anyway, not long now, its quarter to five.

Andres
 
Marius Horak said:
Inheritance.

You'd have to be able to inherit from multiple abstract classes, which of
course you can't in C#, to accomplish the same thing.
 
Marius said:

The fun of asking a stupid question then, when someone replies blatantly
hinting, for _your_ own benefit, that you qualify your question, blast
him and everyone else too?

I wouldn't call that fun.
is over.
Bye!

Go back to work (I mean you, I'm going home, it's after 16:00).

Your attitude is awful.
 
Marius Horak said:
message news:[email protected]...

It's not my interface. Guys who wrote it had no OOP experience at all. They
bought a number of books and wrote the system.
Now they left and I have to fix it.

Ok, I see.
each method should be logically consistent with the others.

You mean 12 methods in an interface are too many?
What about 37?!!!
Ouch.


Inheritance.

But what did you solve then? Your problem stays. You will have to refactor.

Cheers,
 
“Would you tell me, please, which way I ought to go?”
- "Alice"
“That depends a good deal on where you want to get to?”
- "Cheshire Cat"
“I don’t much care where.”
- "Alice"
“Then it doesn’t matter which way you go.”
- "Cheshire Cat"
from “Alice’s Adventures in Wonderland” by Lewis Carroll, Ch 6
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top