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

  • Home
  • SEARCH
  • 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 8332017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:35:47+00:00 2026-06-09T02:35:47+00:00

I am developing fairly complex webapps/dashboards, mostly in Javascript. I like to use mongo

  • 0

I am developing fairly complex webapps/dashboards, mostly in Javascript. I like to use mongo and node on the server, but on the client there is usually an application-specific chaos of libraries and scripts.

My current project includes a combination of bootstrap, jquery, jquery-ui, D3, leaflet, crossfilter and some obscure stuff, and it is fair to say that, although the application is awesome, the code has become an unholy mess. Especially code for D3 and crossfilter is quite verbose, see e.g. source of the official crossfilter demo for a typical example.

So the question: What are good tools and best practices of organizing large javascript applications?

I already avoid global variables and try to organize namespaces with closures, but I am afraid I need some more structure than this. On the server there is npm which is quite nice, but is there something similar in the browser?

I have looked into require.js, backbone.js and coffeescript, but I am not quite sure if these will really solve the problem or only add complexity.

  • 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-09T02:35:50+00:00Added an answer on June 9, 2026 at 2:35 am

    Sounds like you’re already on the right path, but here’s a few tips:

    1. Use a framework. Backbone is popular right now, but there’s others too. It will significantly help with code organization. In fact, a framework is an absolute must to avoid spaghetti code if your app is of any size at all. Other popular frameworks include Ember and Knockout.

    2. If you decide not to use one of those frameworks, do at least use templating. Such as Mustache or the one built in to underscore.

    3. Combine and minify your files. Mostly to optimize load times. Ideally you’ll find something to add to your backend that will do this for you. Rails’ “Asset pipeline” for example uses something called Sprockets.

    4. I do hear people raving about coffeescript. It doesn’t really add functionality, but those who like it say it makes their code cleaner.

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

Sidebar

Related Questions

I'm developing a responsive e-commerce website. It's fairly tough but I like it :)
I'm developing a fairly simple C project for an embedded device. I'd like to
I know this is a fairly contentious issue amongst programmers, but when developing I
I'm developing an iPhone app that needs to display fairly complex information, and I
I'm developing a fairly large page with several external javascript files. In IE6, the
I'm developing a webapp with fairly complex DOM interactions. Is IE9's IE8 document mode
I am currently in the process of developing a fairly large and complex user
I'm developing a solution for a client, who is dealing with a fairly typical
I am fairly new to developing C/C++ code in MSVS but one of the
I have a fairly well project that I am developing right now, but I

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.