On 7/24/11 2:01 AM, Johnathan Meehan wrote:
On Sun, 2011-07-24 at 00:38 +0200, Emmanuel Lecharny wrote:
I personally think that this issue is clearly addressed by the use of
immutable objects. Once all the classes you draft are immutable, using
final for parameters is, well, totally useless.
Right. I typed a little too quickly back there, and confused protection
of an object reference with protection of its attributes.
Note that it's an offside discussion. If you rather prefer to use final,
it's your call.
Your proposal for coding standards seems pretty reasonable to me. The
DEFT project coding standards should not necessarily follow any other
project coding standard, what is important is to allow someone to jump
into the code, but still having the previous coders to feel at home with
the new comer formatted code.
The best when you come with a agreement is to use a formatter for your
IDE. One of the most painful issue is when you check out some commit to
see what's inside and you have to go through hundreds of modified lines
just because the commiter has changed the format for the committed
file... (like added new line everywhere, or switched from spaces to tabs)
Alos remember :
"rules, when you break them, don't sue you in court"... So don't be too
stiff :)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com