When should we consider creating sub-modules? There are several factors to consider:
- First, we could consider the size of the application. Size is an abstract concept and can be measured in several ways, some of which are mentioned here:
- Number of lines of code: This is the simplest measure to understand the size of an application. The more lines of code in the source files, the larger the application. This is analogous to the number of pages in a book. It takes more time for you to read and understand the content for a book that has more pages.
- Number of functions: When there are too many functions in a single module, it is more difficult to understand and learn all those functions. When there are ...