Questions tagged [overuse]
4 questions
5
votes
2 answers
Observer pattern - when to
We have been arguing back and forth at my work place about the use of the Observer pattern for one of the problems. I somehow smell "overuse" but am open to ideas. So the requirement is
We have a hierarchy of objects -> an order and multiple line…

JNovice
- 165
- 2
- 7
3
votes
2 answers
Java: repetition, overuse -- problem?
I try to be as minimalist as possible. Repetition is a problem. I hate it. When is it really a problem?
what is static-overuse?
what is field-method overuse?
what is class-overuse?
are there more types of overuse?
Problem A: when it is too much to…

hhh
- 50,788
- 62
- 179
- 282
1
vote
6 answers
Exceptions: When to use, timing, overall use
I'll try and ask my question so it doesn't end as a simple argumentative thread.
I've jumped into an application coded in C# recently and I'm discovering the exception mechanism. And I've had a few bad experiences with them such as the following
//…

Andy M
- 5,945
- 7
- 51
- 96
0
votes
1 answer
Over-using mutable to enhance security?
Suppose I have a class that has an array of pointers, and I have a method that dereferences a pointer and returns it as a reference. I want to allow the method caller to call non-const methods of the object the pointer is pointing to, but also want…

Agrim Pathak
- 3,047
- 4
- 27
- 43