On Wed, Feb 07, 2001 at 07:41:44PM +0100, Jens Ivar Jordre wrote: > > I'd just like to point out a useful program for our coding and different > conventions. The program is called Artistic Style. It does indention > and formatting of raw C, C++ and Java code. These programs are a dime a dozen. Nothing to get excited about. > If used, it will make our code easier to read. I rather doubt this claim. The best way (the only way) to make code easy to read is to *write good code*. Linus Torvalds wrote quite a few excellent assays on this. Besides, shuffling around already written and debugged code has a good chance of breaking it and makes it harder for the *author* to read it. It also breaks the "cvs annotate" functionality by changing "every line in every file". > It has some built in styles. Maybe we could settle upon one of these. Coding styles, "spaces per tab", the only right place to put the curly braces, underscores versus mixed-case in variable names, kConstant versus UPPER_CASE_CONSTANT. Being there done that. Do we get to vote on each feature? (Yawn...) > A link to its sourceforge web page is put on the regular private area > computing page: http://www.rhic.bnl.gov/brahms/WWW/private/computing.html > The direct link is: http://astyle.sourceforge.net > > Do try it out!!! Don't waste your time. Go and write some good code instead. -- Konstantin Olchanski Physics Department, Brookhaven National Laboratory, Long Island, New York olchansk@bnl.gov
This archive was generated by hypermail 2b29 : Wed Feb 07 2001 - 13:24:20 EST