backbone-express-spa icon indicating copy to clipboard operation
backbone-express-spa copied to clipboard

apps or modules?

Open joafeldmann opened this issue 11 years ago • 1 comments

What do you think of renaming what you call an app to module? Further there could be a "common" module to place views,models,collections shared by multiple other modules.

And what do think of renaming the app.js (in each app folder) to something like module-controller.js? If I get you right this should be the place to create collections, views and control the module flow, right?

joafeldmann avatar May 10 '13 11:05 joafeldmann

Both module and application (and controller if you like) are highly overused terms. Someone call them module or widget, but I really like term - application.

Because I see that as kind of independent part of product (in 'TheMailer' - mails, contacts, tasks) are all different applications. Application have an entry point. Entry point is responsible for fetching the data and firing up MainView.

As for me, controller is something that handles some incoming requests. Application handles nothing, is just a object with run function (btw, it could be simple function as well)

alexbeletsky avatar May 10 '13 13:05 alexbeletsky