LB Booster
« Jump to functions, subs and labels »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:44am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Jump to functions, subs and labels  (Read 353 times)
Hans
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 31
xx Jump to functions, subs and labels
« Thread started on: Mar 3rd, 2015, 07:34am »

The syntax coloring in v3.00 makes code much more readable. Also the enhancement of the find function of the editor makes it easier to find your way in a large code.

For me the only real thing missing in the editor now is a Jump To listbox/dropbox like in LB, showing the functions, subs and labels. This would make navigating through the code much more eassier.


Hans
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Jump to functions, subs and labels
« Reply #1 on: Mar 3rd, 2015, 08:52am »

on Mar 3rd, 2015, 07:34am, Hans wrote:
For me the only real thing missing in the editor now is a Jump To listbox/dropbox like in LB, showing the functions, subs and labels.

I don't know how to create that at an acceptable speed. As you know, the LBB IDE is coded in BBC BASIC - itself a relatively slow interpreted language - and when I tried scanning a large program (with more than 50,000 lines) to generate such a list it took a several seconds!

So I don't think it is going to be practical to add that feature; sorry.

Richard.
User IP Logged

Hans
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 31
xx Re: Jump to functions, subs and labels
« Reply #2 on: Mar 3rd, 2015, 09:41am »

My largest code is about 5000 lines. I don't think I will ever get to the 10000. I think this is true for most users. LB Builder has a solution that the user decides if or when to use this feature (an update button).

Hans
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Jump to functions, subs and labels
« Reply #3 on: Mar 3rd, 2015, 10:18am »

on Mar 3rd, 2015, 09:41am, Hans wrote:
My largest code is about 5000 lines. I don't think I will ever get to the 10000.

Cabinet Planner (main program) is over 60,000 lines! As one of the most important current applications for LBB, every feature I add must work acceptably well with that program (it had major implications for the Syntax Colouring and the right-click Jump To feature):

http://www.cabinetplanner.com/

I do not personally share your opinion that a list of functions, subs and labels would "make navigating through the code much easier". In my experience if you want to jump to a specific place in the program it is usually because the code you are currently viewing contains a reference to it (maybe a function call, or an event target). In that case the right-click Jump To feature provides a quick and convenient way of getting there (and back) without needing a list.

The recent suggestion of incorporating a 'table of contents' in your program is also an excellent one, if there are specific labels, subs and functions that you commonly want to visit. You can format that however you like, providing effectively a highly customisable equivalent of the list you are asking for!

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls