Skip navigation
Currently Being Moderated

organising document class?

Aug 5, 2012 11:23 PM

Hi team,

I am using a document class for a project to keep the code off the main timeline - only problem is now my document class is running to almost 2000 lines of code and becoming unwieldy to scroll through and find stuff.  Is there any way I can better organise this? Or should I be building in some other way?

I am really not very sure on how classes actually work.  I have got this document class working but that is about as good as it gets. Any help would be greatly appreciated.

cheers

Sub

 
Replies
  • Currently Being Moderated
    Aug 6, 2012 5:27 AM   in reply to subtlefly72

    When you are getting into thousands of lines of code, there is not alot you can do to avoid having to scroll thru it to find things, though you can do things to reduce the amount of scrolling needed. 

     

    What you could do is go thru the code and organize it into functional sections.  To aid in the need to scroll to find things, you can make use of keywords as comments in combination with the Find tool (the magnifying glass in the toolbar), and use it to jump to sections.

     

    You could probably break it all down into separate class files, but then it might be even moreso unwieldy for you to have to remember which file you need to look at for different things.  Still, for major functional divisions this can be useful.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points