Modularizing web applications

后端 未结 10 1984
孤城傲影
孤城傲影 2021-01-31 19:28

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 it

10条回答
  •  礼貌的吻别
    2021-01-31 20:06

    If you really want to know, just open up firebug and go spelunking through the facebook site.

    30 seconds later you'll find out they rarely apply css to divs through IDs; and instead use a lot of the dot class notation.

    Once you go down this path, separating dev groups into functionality is a whole lot easier. You can have one core group that is responsible for the main "shell" using ID's. Everyone else you force to use dot classes.

    You can further restrict this by giving each group a prefix to work in.

提交回复
热议问题