Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7734095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:09:51+00:00 2026-06-01T07:09:51+00:00

I am building a small administrative application, and I want to use Backbone.js on

  • 0

I am building a small administrative application, and I want to use Backbone.js on the client.

Now I am having some trouble on understanding how I should model my pages. I will give an example.

Lets say I have 2 pages: products, orders.

Now I understand on the products page I have a products model, collection, and view. Same goes for the orders page. That is pretty straight forward.

The problem I have is with the other sections on the page. My application has authentication, So there is a small section with the details of the user, and logout buttons. There is a small section with messages that the user has, with links to view them.

Besides that I have the menu’s of the application, and all the pages also have there own small menu.

Now how do I model such a page. I was thinking of creating a model/view for the page. Or do I create small models like menuModel, currentUserModel, messagesModel.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:09:52+00:00Added an answer on June 1, 2026 at 7:09 am

    “The secret to building large apps is never build large apps. Break your applications into small pieces. Then, assemble those testable, bite-sized pieces into your big application” –
    Justin Meyer, author JavaScriptMVC (quoted from http://addyosmani.com/largescalejavascript/ )

    🙂

    The point of the quote, in your context, is that you should take the approach that you suggested at the very end of your post.

    You should build many small “applications” for your over-all application. Each section of the page that you describe – authorization, menu, messages, main content area – should be it’s own small set of code that you encapsulate and separate from the rest of the overall application.

    Once you have all of these small pieces in place, there are a handful of ways that you can make them communicate. You can use a mediator, as Addy Osmani suggests in that link. You can use an event aggregator as I typically use and describe here: http://lostechies.com/derickbailey/2011/07/19/references-routing-and-the-event-aggregator-coordinating-views-in-backbone-js/ And there are still other patterns that can be used, of course.

    By taking the approach of building many small applications – one for each of the functional areas of the over-all page that the user is interacting with – you’ll create code that is properly decoupled, well organized, and easier to maintain in the long run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a small Backbone.js application and added some custom getters to one
I'm building a small application with Nancy I want to have a kind of
I'm building a small application in netbeans,I use a JSpinner component to set the
Im building a small application and I have some click events binded to some
I´m building a small application with Jquery and PHP. Jquery (index.html) adds Form Fields
Background: I'm building a small application that will be run daily, pulling data from
I'm building small one page application with rails 3.1 mongodb and backbonejs. I have
Im building a small MVC system and i want my controllers to be Singletons.
I building a small application uploading documents on Google Docs. Is there any API
Hi I am building a small simple JS framework for University. I am having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.