Alaska Software Inc. - Re: Workbench Project and Editor Issues
Username: Password:
AuthorTopic: Re: Workbench Project and Editor Issues
Andreas Gehrs-Pahl

View the complete thread for this message in:

Re: Workbench Project and Editor Issues
on Mon, 16 Mar 2015 15:46:22 -0400
Andreas,

>Andreas, you have 250 source files with 40 header files in one project.
>Can you give me an idea about how many functions, classes you have
>in one file? What is the average length of your source file.

There are currently 5 *.exe targets, 36 *.ch files and 252 *.prg files in 
my main project. The 36 header files include add-on components but don't 
include standard Alaska Xbase++ header files, of which there are probably 
about another 40 or so. Many of the program and header files are shared 
between the five targets.

The 252 program files currently contain 52 Classes (with 988 Methods), 
2,001 Functions, and 3,380 Procedures in total.

In total, the 36 header files are 838,254 bytes in length, consisting of 
15,534 lines of code, including remarks and white space. The size of the 
header files ranges from 2,147 bytes to 139,361 bytes, with the majority 
between 5,000 and 25,000 bytes. 

In total, the 252 program files are 9,217,602 bytes in length, consisting of 
207,010 lines of code, including remarks and white space. The size of the 
program files ranges from 815 bytes to 290,203 bytes, with the majority 
between 20,000 and 40,000 bytes. 

This means that -- on average -- there are: 
*  1 Class in every fifth program file;
* 19 Methods per Class;
*  4 Methods in every program file;
*  8 Functions in each program file;
* 13 Procedures in each program file;
* 432 lines of source code in each header file, including remarks;
* 820 lines of source code in each program file, including remarks;
* 23,284 characters in each header file, including remarks and white space;
* 36,580 characters in each program file, including remarks and white space.

The five resulting target exe files are between 5 MB and 25 MB in size. All 
this doesn't sound extremely large to me, but it is a good sized project.

Hope that helps,

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas.GP@Charter.net
web:   http://www.Aerospace-History.net