Is there an abstraction for the following three words?
- Order confirmation
- Quotation
- Invoice
I want to create a base class for the above but I can't find a word that describes all three.
|
Is there an abstraction for the following three words?
I want to create a base class for the above but I can't find a word that describes all three. |
|||||||||||||||||
|
|
With respect, you don't actually want a synonym, you want an abstraction that encompasses the general case. You say as much yourself when you talk about a "base class". So why not look at what is common in these three things? Each of them is a communication of information about an order, between two or more parties. Each of them will have a date, a sender, an order reference, and one or more recipients. Sounds awfully like we are talking about a letter. Or more generally, a communication. Or maybe correspondence. As a programmer, I'd probably go for something like order-correspondence. Then, when I realise that I also need a class for receipt I've got a ready-made base class. On the other hand, given such a problem, I'd probably go back to the design board and have a good think about what data I have to deal with, and for what purposes, and hope that having a serious think about the design would lead me naturally to the identification of good entity names. In other words, if the names aren't obvious, the design probably needs more thought. |
|||||||||||
|
|
Though we can see relations between these three, I doubt you'll find a satisfying synonym to encompass the meaning of all since, similarities aside, they actually do stand for quite different things. The closest I could posit might be receipt, since each of these have the same property of being received by the person going through the order process. So, in terms of programming a base class, this could make sense, but I guess we might need more information and a different location to discuss this aspect in much more detail. |
|||||||||||
|
|
They all sound like documents to me. So, I would use document. |
|||||||||
|
|
How about paper trail?
Wiktionary |
|||
|
|
|
|||
|
|
|
Your program should obviously match the business model of the process it's supposed to facilitate / record. So call the base class SALE. It's still 'potentially' a sale even at the Quotation stage, and the business itself only cares about that stage if it leads to an actual sale anyway. |
||||
|
|
|
How about procurement phase or procurement paperwork? |
|||
|
|
Though answered already, some may find that a relevant hypernym for their case is:
the singular and plural forms. |
|||
|
|