🔒 Locked
Cpp file size
Advertisement
Original Post
usually less than 100 lines of actual code.
around 200-300 when you include comments.
around 200-300 when you include comments.
I normally have about 100 - 200 lines w/o comments however I have a couple of 800 line files. Because of the way I have set up my project they are all header files. I have one cpp file - 388 lines and I have one model file, 2726 lines. But that doesn''t count
------------------------------
Baldur K
------------------------------
Baldur K
For the game i''m doing at the moment, the largest file i''ve got is 2711 lines long(including comments), but it doesn''t get changed. The rest are about.. 300-600 lines(including comments) in length
-= DarkStar =-
-= DarkStar =-
I usually have one header and one source file per class (interface + implementation), unless there are a few very small classes or structures that closely related to each other. File size will vary with the classes, but well-designed classes shouldn''t be super-mega-huge. I usually try to keep things around 1-2 thousand lines at most (LOTS of whitespace included), and much smaller if possible.
I''m like "hey, I''m going to reply to this" and then I see "Mithrandir" and I''m like "WTF!!!"
took me a few seconds... then...
NECRO!
took me a few seconds... then...
NECRO!
Usually 200+ without comments and blank lines, 300+ with comments and blank lines. My biggest header file is around 900 lines without comments and blank lines.
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement