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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:46:03+00:00 2026-06-01T13:46:03+00:00

The thing is that I have a very large JS file, with more than

  • 0

The thing is that I have a very large JS file, with more than 5.000 lines of code, which holds several objects (some inherit from others), functions and so on.

but if you try to find something, you need much time, because it is so big and my IDE (Netbeans) does not really represent it clearly enough.
I.e. the navigation does not support JS very well, and merges variables with same names, although they are local vars and occure in different objects.

I don’t really want to split it into many files (i.e. for each object one), because I have to merge them again on the live server.

how do you structure your JS files?
have you found a well naming scheme or something?

UPDATE:

So far I found, that splitting into many files is a good idea… How do you name your files? how do u organzie them?

  • 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-01T13:46:04+00:00Added an answer on June 1, 2026 at 1:46 pm

    My setup has separate files for each object. This is ideal for me because it makes finding things very easy.

    It’s also very easy to have a simple ‘build’ script that concatenates all the files together in the proper order. I also have my script run the concatenated file through the Closure Compiler which makes an unreadable mess, but compacts my scripts to about 1/3 the original size.

    In my opinion, it’s worth the minimal effort of making a ‘build’ script to have all the clarity of separate files.

    EDIT:

    Another benefit of this is that I have two versions of my script. The concatenated ‘debug’ version that is human-readable and the minified ‘production’ version that is definitely not.

    When I’m trying things out, the page links the readable version; when it goes live, the page links the minified version for faster loading (and readability is no longer important).

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

Sidebar

Related Questions

I have one very large text file(27GB) that I am attempting to make smaller
So i have been creating this framework thing that basically puts together source code
simple thing which I need to do is, that I have a pdf document
I have an application which uses the microsoft kinect device. The thing is that
I have a very large XML file (If you care, it's an AIXM file
I have a large text file ( data ) which has the following layout:
I'm in need of a distributed file system that must scale to very large
We have large sets (10+) of very large files (> 1 GB) that we
I am trying to write a very thin hypervisor that would have the following
I don't know if the title is right. The thing is that I have

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.