You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Minimize initial complexity in user-facing code
42
+
### Avoid using final
44
43
45
-
> Minimize (within reason) the number of Java language constructs a user is exposed to simultaneously at the beginning of the track. Instead, introduce those constructs with examples and hints in an appropriate later exercise. Specific applications of this policy include:
46
-
> - avoiding use of the `public` keyword in user-facing class declarations, method signatures, and parameter signatures;
47
-
> - avoiding use of the `final` keyword in user-facing class declarations, method signatures, and parameter signatures.
44
+
> Avoid using `final` in user-facing code. Liberal use of the `final` keyword remains controversial. It adds little value to test suites, and if included in starter implementations, places implicit restrictions on user solutions.
45
+
46
+
### Adhere to best practices
47
+
48
+
> Ensure that all Java code adheres to the best practices listed below:
49
+
> - minimize the accessibility of classes and members ([Effective Java, item 13](http://jtechies.blogspot.com/2012/07/item-13-minimize-accessibility-of.html))
0 commit comments