Yeah, I'd have to agree with that. There are some things that extending and fiddle around with should be discouraged.
Simetrical-3 wrote:
On Sun, Apr 6, 2008 at 6:18 AM, tstarling@svn.wikimedia.org wrote:
- Use protected instead of private. Private should not be used ever.
That's a pretty strong statement. If you use protected, you can't freely change around the methods unless you're sure nobody's actually extended the class (in which case, what harm would there have been in using private to start with?). If you use private, you can always change it to protected later if it's useful, but not vice versa.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l