Coding best practice

noclass1980

Active Member
Licensed User
Longtime User
Hi, This is a simple question and the answer may be obvious but my Activity_Create sub is becoming quite large so is it good practice to separate the code into a number of subs and call them from Activity_Create? I assume that this wouldn't significantly add to the time to start the app? Thanks
 

DouglasNYoung

Active Member
Licensed User
Longtime User
Simple answer is, as you've identified, YES!

Generally it is a good idea to break up program logic imto discrete blocks either in Sub-routines, or seperate Activities and Subroutines, ideally with a naming convention which makes it obvious the purpose of each discrete block.

Douglas
 
Upvote 0

noclass1980

Active Member
Licensed User
Longtime User
Simple answer is, as you've identified, YES!

Generally it is a good idea to break up program logic imto discrete blocks either in Sub-routines, or seperate Activities and Subroutines, ideally with a naming convention which makes it obvious the purpose of each discrete block.

Douglas

Thanks for the confirmation.
 
Upvote 0
Top