Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question