Modularizing web applications

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-02T02:59:00Z Indexed on 2010/03/12 6:27 UTC
Read the original article Hit count: 289

Hey all,

I was wondering how big companies tend to modularize components on their page. Facebook is a good example:

There's a team working on Search that has its own CSS, javascript, html, etc..

There's a team working on the news feed that has its own CSS, javascript, html, etc...

... And the list goes on

They cannot all be aware of what everyone is naming their div tags and whatnot, so what's the controller(?) doing to hook all these components in on the final page??

Note: This doesn't just apply to facebook - any company that has separate teams working on separate components has some logic that helps them out.

EDIT: Thanks all for the responses, unfortunately I still haven't really found what I'm looking for - when you check out the source code (granted its minified), the divs have UIDs, my guess is that there is a compilation process that runs through and makes each of the components unique, renaming divs and css rules.. any ideas?

EDIT 2: Thanks all for contributing your thoughts - the bounty went to the highest upvoted answer. The question was designed to be vague- I think it led to a really interesting discussion. As I improve my build process, I will contribute my own thoughts and experiences.

Thanks all! Matt Mueller

© Stack Overflow or respective owner

Related posts about architecture

Related posts about web-applications