php - Which web application modular structure is better? -


backend/      module1      module2      module3  frontend/      module1      module2      module3 

or

modules/        module1/               frontend                              backend        module2/               frontend                              backend        module3/               frontend                              backend 

the choice depends on want achieve. first architecture sort of layering , second 1 components. similar struggle goes mvc versus components (as in desktop gui etc.). layers enable isolate modules layer layer, means, can build on existing layers. used in io/osi tcp/ip stack. on other hand components more granular , can reused such - e.g. can compose desktop guis "widgets". better web? loooking @ mainstream, imho mvc, first layers architecture seems used more. maybe question rlated asking if asp.net better sp.net mvc...


Comments

Popular posts from this blog

Delphi Wmi Query on a Remote Machine -