Questions tagged [generalization]
6 questions
20
votes
5 answers
Does unit testing lead to premature generalization (specifically in the context of C++)?
Preliminary notes
I'll not go into the distinction of the different kinds of test there are, there are already a few questions on these sites regarding that.
I'll take what's there and that says: unit testing in the sense of "testing the smallest…

Martin Ba
- 7,578
- 7
- 34
- 56
5
votes
2 answers
Does UML Use Case allow "use case polymorphism"?
I have two Actors: User and Admin that will interact with my system. Admin uses generalization to inherent use cases from User. I have a use case named authenticate that should have two different behaviors. The post-condition for this use case is:…

JChris
- 161
- 4
5
votes
3 answers
Generalized VS Specialized technical solution; what to take into account?
We recently had a discussion in the office because of conflicting views between developers. One side (side S) argued technical solutions -generally- need to be a specific as possible, while the other side (side G) argued generalized solutions are…

mark
- 171
- 6
0
votes
1 answer
Affiliate Marketing - How to track all sales on 3rd party website made via my application
I'm looking forward to the possibility of an algorithm or a way to track how much sale has been made on 3rd party's website because of my client so I can get the commission.
For example if a user "A" jumps onto my application and finds a product "Z"…
0
votes
1 answer
What abstraction to use for hiearchical sum from ordered list
I am looking for an abstraction from which to solve a class of problems similar to the following:
I have this ordered ResultSet (in this case sorted for NATION,REGION,DISTRICT,COUNTRY):
CITY' Table
| NATION | REGION | DISTRICT | COUNTRY | …

Forcuti Alessandro
- 11
- 1
-1
votes
2 answers
Java generalization
I have a question regarding generalization. I know when it is needed to be done, but is it worth having an extra class for 1 field?
e.g.:
StatisticsCustomer has fields: Customer customer and int projectCount
StatisticsCountry has fields: Country…

Nikola
- 367
- 1
- 9