123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|501|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Question of the Day -> QOTD : How many files?

Posted : Friday, 05 November 2010, 10:45
JL235
I am currently building an editor, and you'll have multiple files open. So I'm curious to know how many files have your games/projects taken up?

I have in mind the kind of things people would build in this; but I'm unsure how many files people would typically create. I know full well this number depends greatly on the project and how it's built; but I'm interested in the answer anyway.

So please name/describe the project and state how many files it's strewn across (but skip any build/config files, I'm only interested in source code).

Thanks!

-=-=-
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Posted : Friday, 05 November 2010, 11:21
Jayenkai
Everything in one, or at least, until I built the framework.. since then it's been in 4.
1. Framework.
2. Music stuff (I think I've pretty much abandoned this, though!)
3. Wordlist
4. Actual game, all in one great big clump.

-=-=-
''Load, Next List!''
Posted : Friday, 05 November 2010, 11:32
waroffice
I generally split up type declaration, reusable code and main game code up, so would be around 4-5 files.

In my RPG i have 5 files.

Main game, Type decs, map editor code, reusable windows, map functions.


Posted : Friday, 05 November 2010, 16:09
Evil Roy Ferguso
I have one file for each class / interface, and for related groups of free functions - so I end up with quite a few. The Domino game thing I have up somewhere on here is split across 30+ source files (although it's a bit more mature than when it was posted here -- probably were far fewer at that time).

Average length is probably only about 100-odd lines, though, and the longest file is under 400.
Posted : Friday, 05 November 2010, 19:45
mindstorm8191
Yeah I use a lot of files too (at least for Blitz projects). Using a lot of modules will do this to you. A typical project could grow into 10 or so files, plus however many modules I attach to it. I have added as many as 12 modules to one project - and those may be several files in themselves.

But typically I only keep about 10 or 12 files open at a time. Any more than that and things get confusing.

-=-=-
Vesuvius web game
Posted : Wednesday, 19 January 2011, 07:06
dantheman363
My C# project contains at least 20 source files, but I usually only have 1 - 5 files open at a time.

-=-=-
Extraterrestrial Grail