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 4255168
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:10:59+00:00 2026-05-21T05:10:59+00:00

Although I’m following backbone.js for some months and worked through a plethora of tutorials,

  • 0

Although I’m following backbone.js for some months and worked through a plethora of tutorials, I’m still not confident enough in backbone (or my skills regarding it) to use it in a larger project.

My experience is that the backbone.js tutorials vary greatly in quality, some are terribly outdated (especially the sample todo app from the backbone docs).

So I’d like to know about your backbone.js best practices/recipes? How do you handle nested collections/views? JSON serialisation? More complex queries between models?

  • 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-05-21T05:11:00+00:00Added an answer on May 21, 2026 at 5:11 am

    Here is a list of questions you seem to have asked:

    backbone.js best practices/recipes
    My number one practice/recipe is to dive into the backbone.js code and read it, step through it with js debugger even. The code is well documented and is an excellent example of what modern JS code should be.

    How do you handle nested collections/views?
    Afaik there is no “simple way” to handle nested collections and handling events that happen in a sub-collection. You’d have to implement it. I haven’t had to deal with a collection of collections yet though, so maybe you can avoid it by restructuring your “data model”. A model that has a collection of models in itself satisfies most of the requirement of a nested model.

    As far as views go, you’re basically in control how they get rendered. A view as provided by backbone is nothing but a mechanism to get changes in corresponded model to your render code. You implement the rendering. So if you want nested views, you can use template engine that supports partials(If i understand correctly what you mean by nested views).

    JSON serialisation
    Whats your question? The backbone doc says “it’s highly recommended to include json2.js”

    More complex queries between models?
    Again, whats your question? Backbone provides you structure to do your own thing, you have to implement the complexities yourself

    Relations between models
    Again, you are implementing the models. Your models can contain other models. What you do with them and how you interact is up to you. In my experience its wasn’t necessary to replicate the backend data model in javascript. Its quite possible that your front-end models will be simpler than the backend ones.

    Model inheritance
    By using backbone.js you are already using model inheritance. This is what happens when you write var MyModel = Backbone.Model.extend…

    Sorry for not going into more detail, but like Thomas Davis said, the questions were very vague. You’d get more detailed answer on a more detailed question describing a specific problem you’re having.

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

Sidebar

Related Questions

No related questions found

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.