TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby MonkoftheFunkabout 14 years ago
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)

no comments

no comments