|
|
|
@ -98,8 +98,8 @@ The main advantage is separation of concerns. For example, in this case `Report`
|
|
|
|
|
does not know anything about specific implementations of `Json` and `Text`,
|
|
|
|
|
whereas the output implementations does not care about how data is preprocessed,
|
|
|
|
|
stored, and fetched. The only thing they have to know is a specific
|
|
|
|
|
trait to implement and its method defining the concrete algorithm implementation processing
|
|
|
|
|
the result i.e,`Formatter` and `format(...)`.
|
|
|
|
|
trait to implement and its method defining the concrete algorithm implementation processing
|
|
|
|
|
the result, i.e., `Formatter` and `format(...)`.
|
|
|
|
|
|
|
|
|
|
## Disadvantages
|
|
|
|
|
|
|
|
|
|