06-10-2012, 12:41 AM
Do you need a hard set limit? I prefer to use "human brain" for the decision - if the line feels too long, I break it. Since most of the time I'm on a 1280 px wide screen, the lines aren't that long
And sometime wrapping the line is undesirable. A fine example of that is the documenting comment for functions, starting with "///" - it doesn't work well aesthetically if wrapped into multiple lines; and since it is mostly for the machine to read and display as an IntelliSense tooltip anyway, why bother?
I've just checked the source, there are 521 lines that are over 120 chars wide. Not that many.
Let's not derail this thread any further, if you feel it necessary to discuss line lengths further, may I recommend starting a new thread?
STR_Warrior, if the CPU issue persists, let me know, I'll make a special build for you that can measure performance of individual functions in the server.
And sometime wrapping the line is undesirable. A fine example of that is the documenting comment for functions, starting with "///" - it doesn't work well aesthetically if wrapped into multiple lines; and since it is mostly for the machine to read and display as an IntelliSense tooltip anyway, why bother?
I've just checked the source, there are 521 lines that are over 120 chars wide. Not that many.
Let's not derail this thread any further, if you feel it necessary to discuss line lengths further, may I recommend starting a new thread?
STR_Warrior, if the CPU issue persists, let me know, I'll make a special build for you that can measure performance of individual functions in the server.