I am working on a javascript, client side, web application and the interface and functionality could potentially get complex and I decided to split things up into separate "modules" that listen for events for when to render and append its own html, javascript includes and CSS all using the mediator patterns below.<p>So far its been really good at breaking things up so that everything isn't in one or two files for coding and style. Though is there another way to go about this? Is relying to much on jquery dom manipulation for interface layout dangerous as the project gets larger?<p>http://www.fancybread.com/blog/post.cfm/mediator-pattern-applied-to-javascript<p>http://arguments.callee.info/2009/05/18/javascript-design-patterns--mediator/<p>Thanks for any advice.
First time posting
(How do I get this question in the Ask Section)