# Design Patterns for websites

**URL:** https://forum.kirupa.com/t/design-patterns-for-websites/289889
**Category:** Uncategorized
**Created:** [June 6, 2009, 10:38am UTC](https://forum.kirupa.com/t/design-patterns-for-websites/289889 "2009-06-06T10:38:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![andriusain](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@andriusain](https://forum.kirupa.com/u/andriusain)
#### Post date: [June 6, 2009, 10:38am UTC](https://forum.kirupa.com/t/design-patterns-for-websites/289889/1 "2009-06-06T10:38:37Z")

</div>

Hello all.

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,

Andres.
