Re: Subversion Repository for Euphoria
- Posted by Robert Craig <rds at RapidEuphoria.com> Nov 26, 2006
- 566 views
Chris Bensler wrote: > Firstly, if you are using TAB chars, then how big a tab is should be > irrelevant. > That's the whole point of using TAB instead of hard spacing. That's true as long as people use only tabs for indenting. Once they start mixing tabs and spaces, then things will be messed up when viewed with a different tab setting. For example, the problem Matt had when viewing code that I saved with ed. > You will never get everyone to agree on how big an indent should be or how > code > should be formatted. People have argued about code style since programming was > invented. That's true. Everyone likes his own coding style and does not want to be forced to follow someone else's. > Of course, style guidelines can be imposed for the project, but I think it > would > be more practical to create a tool that reformats any contributed code in a > standard way. Perhaps we could run a C and/or Euphoria "beautifier" on the code once in a while. I read that there are some negatives for running a beautifer script on each SVN check-in. Also, we might want certain standards that go beyond what a beautifier can handle. > Second, what is the purpose of so much whitespace anyways? > Why do most people agree on 4 space TAB. What's wrong with 2 or 3 spaces? I've used 3, 8 and for the last several years, 4. It's purely a subjective thing, but I find that with 8 you have a lot of lines running off the right side of the screen. With 2, it's visually harder to line up the levels of indentation over a long routine. Especially in C, where '}' is the only block terminator, not "end if" "end while" etc. > What about varying size based on context and purpose? I've never seen much point in varying the indent size. Consistency promotes readability. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com