My experience with design patterns is almost zero but I am starting to get acquainted with the Model View Controller pattern. I am approaching a website with this pattern and I was wondering if there might be any other patterns more suitable for this.
It might depend however in what my website does but I am asking for a general guideline.
Everything on my website is going to be coded so there is nothing on stage. Should I apply the addChild method for every element on their respective view classes, or should I do it from the document class?
Also when the menu is animated, for example, I need to remove the event listeners of everything so this animation is not interrupted. Should I create this method then on the controller class?
Any guidance would be greatly appreciated.
Thanks you all,