From 94b707fb32b9606d383468ee70e1d4f59413527a Mon Sep 17 00:00:00 2001 From: xinri Date: Mon, 10 Nov 2025 21:15:32 +0100 Subject: [PATCH] add the design.md for the jedliksToyCar --- exercises/concept/jedliks-toy-car/.meta/design.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/exercises/concept/jedliks-toy-car/.meta/design.md b/exercises/concept/jedliks-toy-car/.meta/design.md index f99cef1f7..2a1b40eb1 100644 --- a/exercises/concept/jedliks-toy-car/.meta/design.md +++ b/exercises/concept/jedliks-toy-car/.meta/design.md @@ -28,3 +28,15 @@ - `strings`: know how to do basic string interpolation. - `numbers`: know how to compare numbers. - `conditionals`: know how to do conditional logic. + +## Analyzer + +This exercise could benefit from the following rules in the [analyzer]: + +- `essential`: Verify that the solution keeps the void type for the drive function. +- `essential`: Verify that the solution has fields in the class +- `actionable`: If the solution defines the fields as `public`, instruct the student to use `private` and explain the encapsulation principle. +- `informative`: If the solution does not use a primitive as a type for the fields, inform the student to use it. + Explain that the values cannot be null and it is less error-prone + +[analyzer]: https://github.com/exercism/java-analyzer