Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions on style
#9
(06-25-2023, 09:25 PM)justsomeguy Wrote: I appreciate the feedback. Since we are talking about style of large projects. I would like to share a tip that I use to keep track of sub and functions in large monolithic source files.

I like to put Dummy Subs in my code. Like this:
Code: (Select All)
'**********************************************************************************************
'  Main Loop
'**********************************************************************************************
SUB _______________MAIN_LOOP (): END SUB

So when I use the F2 key to look at the Subs and Functions I'l see this:

[Image: IDE-Tip.png]

To me it makes it easier to navigate the larger code bases. I hope this helps. When I was playing with the QB64 source, it sure could have benefited from doing something like this.
I noticed that right away when digging through your code. I think I'm going to adopt this practice. Easier than naming related subs/functions with three letter indicators as I usually do, or creating multiple .BM files with related code that need to be included in other .BM files. When I write a library I always strive for one .BM file and one .BI file if possible.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Questions on style - by justsomeguy - 06-25-2023, 06:18 AM
RE: Questions on style - by bplus - 06-25-2023, 01:12 PM
RE: Questions on style - by Kernelpanic - 06-25-2023, 01:25 PM
RE: Questions on style - by bplus - 06-25-2023, 02:05 PM
RE: Questions on style - by justsomeguy - 06-25-2023, 07:09 PM
RE: Questions on style - by OldMoses - 06-25-2023, 08:30 PM
RE: Questions on style - by justsomeguy - 06-25-2023, 09:25 PM
RE: Questions on style - by TerryRitchie - 06-25-2023, 11:39 PM
RE: Questions on style - by OldMoses - 06-25-2023, 11:22 PM
RE: Questions on style - by Ultraman - 06-26-2023, 11:32 AM
RE: Questions on style - by justsomeguy - 06-26-2023, 12:05 PM
RE: Questions on style - by Ultraman - 06-26-2023, 12:17 PM
RE: Questions on style - by madscijr - 06-27-2023, 02:56 PM
RE: Questions on style - by Ultraman - 06-26-2023, 12:29 PM
RE: Questions on style - by CharlieJV - 06-28-2023, 08:31 PM
RE: Questions on style - by bplus - 06-26-2023, 03:47 PM
RE: Questions on style - by madscijr - 06-27-2023, 02:49 PM
RE: Questions on style - by TerryRitchie - 06-27-2023, 04:18 PM
RE: Questions on style - by madscijr - 06-27-2023, 08:15 PM
RE: Questions on style - by SMcNeill - 06-27-2023, 04:48 PM
RE: Questions on style - by SMcNeill - 06-27-2023, 04:52 PM
RE: Questions on style - by bplus - 06-27-2023, 08:29 PM
RE: Questions on style - by Gets - 06-27-2023, 08:52 PM
RE: Questions on style - by justsomeguy - 06-27-2023, 09:32 PM



Users browsing this thread: 3 Guest(s)