Re: sale.submit() or submitter.submit(sale)



greatlord_5@xxxxxxxxxxx wrote:

I am a newbie to OOD.

The basic philosophy says, prefer methods that inform the object of
external state changes.

There is a sale that has to be posted to a ledger. The ledger is on a
mainframe and the sale comes from the web. The operation of submitting
the sale to the ledger is a big one and can be successful, failed or
undefined.

A basic handshake protocol will suffice. No need to add a submitter
class is there?
.