Hi,
I have a couple of questions regarding the coding conventions
1. Across in AvalonProject I see that use is made of the final word for
method parameters such as
private void foo (final String foo1, final String foo2)
Is this something that should be adopted for Turbine?
2. Is there a preference for return values? ie an Empty String instead of
null??
Colin
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
[Turbine-dev] Coding Conventions
| Tweet |
|
Search Discussions
Discussion Posts
Follow ups
- Henning P. Schmiedehausen: "Colin Chalmers" writes: I prefer "null" over the empty string, because the empty string might be a valid value e.g. for a string property. Regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/ Java, perl, Solaris, Linux, xSP Consulting, Web Services freelance consultant -- Jakarta Turbine Development -- hero for hire --------------------------------------------------------------------- To unsubscribe, e-mail:
- Colin Chalmers: Here's the answer I got from Avalon newsgroup when I posted the same question a while ago It is generally recomended that pass-by-value parameters to methods are not reassigned in the method/function body because it can cause uneeded complexity when reading code. The advantage of using final to mark these parameters is that it enforces this rule. -- Cheers, Peter Donald --------------------------------------------------------------------- To unsubscribe, e-mail:
Related Discussions
Discussion Overview
| group | dev
|
| categories | turbine |
| posted | Apr 24, '03 at 5:50p |
| active | Apr 25, '03 at 5:21a |
| posts | 3 |
| users | 2 |
| website | turbine.apache.org |
