the_reaper, on 17 January 2012 - 11:20 AM, said:
...but large programs/scripts are usually said to be thousands to millions of lines, which can be different based on the style of brace used. Although...I believe they're meant to discount empty lines, lines with comments, and lines with only braces.
Yes. Usually a "7,500 line" program means that the compiler reported processing 7,500 lines of actual working code. Otherwise a programmer could cheat on his productivity, just by adding lots more white space, or waffling on his comments!
On the other hand, a physical line such as
expression1;
expression2;
expression3; would be reported by the compiler as 3 lines of code.
In college, a teacher will probably see a line of code such as "
expression1;
expression2;
expression3;" and squeal in horror, "But there's no white space! It is unreadable." But on rare occasions, I have done exactly that, and to make the code more comprehensible at a later date too. If a section of logic can all fit onto the computer screen at one time, it is much easier to read and comprehend. (Or at least, that is what experience has taught me.)