Skip to content

Commit 6cfa806

Browse files
authored
Add design.md jedliksToyCar (#3047)
1 parent 4571be0 commit 6cfa806

File tree

1 file changed

+12
-0
lines changed
  • exercises/concept/jedliks-toy-car/.meta

1 file changed

+12
-0
lines changed

exercises/concept/jedliks-toy-car/.meta/design.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,15 @@
2828
- `strings`: know how to do basic string interpolation.
2929
- `numbers`: know how to compare numbers.
3030
- `conditionals`: know how to do conditional logic.
31+
32+
## Analyzer
33+
34+
This exercise could benefit from the following rules in the [analyzer]:
35+
36+
- `essential`: Verify that the solution keeps the void type for the drive function.
37+
- `essential`: Verify that the solution has fields in the class
38+
- `actionable`: If the solution defines the fields as `public`, instruct the student to use `private` and explain the encapsulation principle.
39+
- `informative`: If the solution does not use a primitive as a type for the fields, inform the student to use it.
40+
Explain that the values cannot be null and it is less error-prone
41+
42+
[analyzer]: https://github.com/exercism/java-analyzer

0 commit comments

Comments
 (0)