October 30, 2025, 11:43:39 AM

News:

IWBasic runs in Windows 11!


Software/Project Orginization

Started by Rock Ridge Farm (Larry), July 03, 2006, 05:10:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rock Ridge Farm (Larry)

Is it better to keep all code in one .src mod or break it up.
What would be the standard for breaking it up - each function/subroutine in it's own module?
I know the compiler does not care but it is eaiser to support if broken up.
I was always told to breake code up into small blocks with each block in a separate module.
I am looking for opinions.

Zen

Well when i am making projects, i put class definitions in one file, each seperate method in its own file and subroutines in there own seperate files also.

Lewis

J B Wood (Zumwalt)

break it up into logical blocks and have the logical blocks be in there own src file
at most you should keep your src files down to less than 5000 lines of code (prefferably under 2500)
you are right the compiler doesn't give a dang, its for ease of use and understanding