07-17-2012, 04:26 AM
it works
Some refactoring needed?
|
07-17-2012, 04:26 AM
it works
07-17-2012, 04:41 AM
(07-17-2012, 04:25 AM)xoft Wrote: - Too many small files. Makes compilation take (quite a lot) longer. I´ll try to stick to the last 2 proposals. But about those many small files: I have no idea how to speed them up. Putting them all back in one file wouldn´t be a solution, because it would mess everything up again.
07-17-2012, 04:48 AM
I think a simple grouping will be a benefit. For example, group together growables, tools, redstone-related, travel etc.
07-17-2012, 05:40 AM
Is the cutback in compilation time really so extreme and fatal that we have to take this limitation?
07-17-2012, 06:01 PM
I don't know, I just feel that files that have a total of 10 lines of code aren't worth it, it's better to have "dense" files. One-file-per-class-no-matter-at-what-cost feels too java-ish to me.
Also, I'd expect that most changes are done not to a single block, but to a naturally related group of blocks, which makes the naturally grouped files reasonable.
07-17-2012, 10:54 PM
I'm afraid there's one more problem with the refactoring - now the project won't compile on Mac OS X, and possibly other *nixes. GCC complains that it cannot pass a temporary cItem object to a function expecting a cItem reference:
Code: In file included from source/items/Item.cpp:10: |
« Next Oldest | Next Newest »
|