| > ps: and line 666??? who the hell keeps a single source-code file that big? no wonder bugs are around... Why would you expect there to be a relationship between source file size and bugs? Suppose a program has 100 functions, and each function is 10 lines plus on average 4 lines of comments. If I organize it as a single file, it will be about 1500 lines. If I organize it as 10 files, they will each be about about 150 lines. But when I'm actually working on the program I'll be seeing it through a window that shows the same amount regardless of whether the program is one big file or 10 smaller files. Since I see essentially the same thing in both cases, I don't see how the bug rate will be different. Don't get me wrong...I'm not saying it is OK to always put everything in one file. There are times when good design requires multiple files. For example if a program must use global variables and the language supports globals that can only be references within the file containing them, then organizing files around which globals functions need access to might be a good idea and help avoid bugs. But in that case it is not the size of the files that matters. It is their data access needs. |