Skip to content

Ask HN: Mediator Pattern for Modular Interface and Functionality Development?

2 pointsMonkoftheFunkdiscuss
On HN

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.

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?

http://www.fancybread.com/blog/post.cfm/mediator-pattern-applied-to-javascript

http://arguments.callee.info/2009/05/18/javascript-design-patterns--mediator/

Thanks for any advice. First time posting (How do I get this question in the Ask Section)

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.