X
X
xaam2018-01-31 09:08:07
OOP
xaam, 2018-01-31 09:08:07

How to enclose a part of a subsystem with a facade? Or something else?

Hello.
Tell me about patterns and architecture.
Given: there are several classes each containing an instance(s) of the previous one.
A course contains lessons, a lesson contains a test, a test contains questions, a question contains answers.
Decided that it is necessary to make a subsystem/module out of this.
It seems like they do it as a facade, as I understand it.
I made a facade, transferred the max logic there from the controllers.
It turned out to be over many methods
in my opinion, it didn’t get much better. removed this façade.
I'm wondering how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hydra_13, 2018-01-31
@hydra_13

The question is not entirely clear. Why is improvement needed, for what purpose?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question