From: Freek D. <sf_...@ma...> - 2008-05-25 22:08:43
|
Erik Vos wrote: > Coding rules: I have written most of the code, and am using 4-space indents. > Things go wrong when Brett reformats with his (I believe) 3-space indents > ... ;-) > Indeed we have never settled that and it sometimes looks ugly. I propose 4 > spaces.... > (Tabs or spaces: does it matter? Should I care? Not sure how to control it). I don't care, as long as it is consistent. Let's look at the statistics of *.jave files in the rails directory: 39194 lines of code 30748 lines with some sort of indentation 2542 lines combining tabs and 2 or more spaces (That should exclude lines with extra space to indent /* */ comments) 18245 lines with tabs only 9825 lines with spaces only 69 lines with 3 spaces 4008 line with 4 spaces 82 lines with 5 spaces (huh?) 53 lines with 6 spaces 68 lines with 7 spaces 2404 lines with 8 spaces 43 lines with 9 spaces 1 line with 10 spaces 54 lines with 11 spaces 1442 lines with 12 spaces etc So it seems most popular is tabs, then 4-spaces, then 3-spaces. >> saving of preferences between games, > > What preferences? I can imagine a UI to manage my.properties might come in > handy, althoug I wouldn't consider it a priority. Saving the my.properties based on the last settings. For example, if the last time I started a game of 18Kaas with John, Joe and Jane as players, and unlimited D-trains, it would be nice to see those options as the default the next time the program is run. Regards, Freek |