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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:07:36+00:00 2026-06-18T14:07:36+00:00

I was thinking … when I code a web app using Backbone.js , most

  • 0

I was thinking … when I code a web app using Backbone.js, most of the time I duplicate the models : one version for the backend in language X, using ORM Y, one for the frontend using Backbone. A lot of validation in common, same sh*t for generating urls, etc … I just started with Node.js, and I thought that since you can run a lot of the same code on the backend and frontend, why not using Backbone.js models for the backend as well, so that there would be less code duplication ? I couldn’t find info about that … any pointers ? Is it a bad idea and why ? I can only guess that in that case you’d have to write your Backbone.sync for database persistence.

EDIT

Practical issues that need to be solved to achieve that :

  1. Backbone.sync to work with mongodb (or whatever database is used).
  2. building the client-side javascript file with node.js files, possible solution : browserify
  • 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-18T14:07:38+00:00Added an answer on June 18, 2026 at 2:07 pm

    After trying out for a while building the backend with Backbone, I found it was total overkill, and brought more problems than simplifications. Instead I rolled back to using simple wrappers around mongodb.

    My initial thought in using Backbone was sharing url generation and model validation between backend and frontend. But as a matter of fact you don’t need Backbone for that.
    So I wrote reusable functions for validation and url generation, and used browserify to make them available client-side.

    Of course this might all change in the future if more people build tools for running Backbone backend-side … but at the time of the writing, Backbone is definitely not made for that, and there’s no library to help adapt it.

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

Sidebar

Related Questions

Thinking about avoiding code replication, I got a question that catches me every time
I'm thinking of doing a language identification program using C language. I already searched
Using Thinking Sphinx in my rails app, I set it up to allow partial
Im thinking about learn to develop app for iOS. I had a lot of
Just thinking of implementing Guice in scala Any sample code ?
I'm thinking about pushing my Android app to github, but is there any information
After thinking for long, I have decided to build my data app for the
I`m thinking of using POCO instead of automatically generating the entities, cause i don't
Just thinking about my page titles and wondering which one to have keyword |
currently thinking on a possibility to sniff at the same interface using only pcap

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.