Re: [Audacity-devel] How about resurrecting scripts/reindent?
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Dominic M. <do...@au...> - 2006-01-16 09:00:10
|
On Jan 15, 2006, at 1:57 AM, Leland Lucius wrote: > Case-by-case meaning file-by-file? Yes...only when needed. Luckily most of us are pragmatic and realize that one of the strengths of Audacity is that many people with many different backgrounds contribute code. As a result, we're quite tolerant of different coding style, as long as it's readable and not too unusual. > As modifications are made, should a secondary task be to "standardize" > the modified file to one style? I can certainly go back and reformat > the things I've done, but what format should be used if there's > already > a couple of different ones? > > Basically, which format do you code in and that's what I'll do... :-) 1. Mandatory - use spaces, never tabs. Any files you've checked in with tabs, please fix! 2. Strongly preferred - use 3 spaces for indentation. Using 2 or 4 is OK if an entire file is consistent. 3. Braces: either of the following is fine, but please be consistent within each method or group of methods, i.e. if you edit a file I wrote, please use style "A", if you edit a file Markus wrote, use style "B": A: if (condition) { statement; } else { something_else; } B: if (condition) { statement; } else { something_else; } Exceptions: anything in lib-src is obviously allowed to have its own coding style! By the way, what editor do you use? Could you check to see if there's a way to provide "hints" in the file that tell it what style of indentation to use? - Dominic > Leland > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Audacity-devel mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-devel > |