06-25-2023, 11:39 PM
(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 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.
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:
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.