De: "Miguel" <[EMAIL PROTECTED]>

>But I will remind you that *every* line of code used to be formatted
>'correctly' and automatically.
>
>That is no longer the case.
>
>I can overlook some things, but I cannot live with much of what Eclipse
>seems to be doing.
>
>I *must* have the following:
> - 80 character lines
> - newline at the end of the file
> - 2 space indentation
> - no tabs
> - no blank space line at the top of the file
> - no comments that start with /** unless they are javadoc


Agreed with all of them


>If I see files that do not conform to this then I will reformat them every
>time.
>
>If you feel that we should change these rules then we can talk about that.


These rules seem really fine to me. And I try to follow them.

Eclipse formatter is very powerful and very configurable BUT :

- I have not spent much time to configure it, so only basic rules really match 
Jmol coding style. Maybe in the future I will take the time to correctly 
configure the formatter (or if someone else is interested in doing so ...)

- I like the autoformatting when I am modifying the code, so that the code 
looks like mostly correct automatically and I only have a few things to modify 
BUT I never use the "reformat file" feature because too many things are 
modified, especially some things that can't be easily specified in the 
formatter rules (human brain is much more evolved than simple rules: for 
example, some alignments are neat to the eyes but can't be specified).
On a project I'm working at the office, I have specifically requested the 
people that work for me that they should NEVER use the "reformat file", because 
using it caused more trouble than what it was worth.

Nico



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to