Add prerequisites to Practice Exercises
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Actualiza las entradas exercises.practice del archivo config.json, usando las especificaciones vinculadas de practice-exercise y concepts como punto de partida. Asigna las practices y prerequisites de cada ejercicio, elimina topics una vez definidos esos campos y asegúrate de que cada concepto referenciado aparezca en el array concepts de nivel superior. El ejemplo y la incidencia de seguimiento v3 proporcionan la estructura y el contexto previstos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This issue is part of the migration to v3. You can read full details about the various changes here.
Exercism v3 introduces a new type of exercise: Concept Exercises. All existing (V2) exercises will become Practice Exercises.
Concept Exercises and Practice Exercises are linked to each other via Concepts. Concepts are taught by Concept Exercises and practiced in Practice Exercises. Each Exercise (Concept or Practice) has prerequisites, which must be met to unlock an Exercise - once all the prerequisite Concepts have been "taught" by a Concept Exercise, the exercise itself becomes unlocked.
For example, in some languages completing the Concept Exercises that teach the "String Interpolation" and "Optional Parameters" concepts might then unlock the two-fer Practice Exercise.
Each Practice Exercise has two fields containing concepts: a practices field and a prerequisites field.
Practices
The practices key should list the slugs of Concepts that this Practice Exercise actively allows a student to practice.
- These show up in the UI as "Practice this Concept in: TwoFer, Leap, etc"
- Try and choose 3 - 8 Exercises that practice each Concept.
- Try and choose at least two Exercises that allow someone to practice the basics of a Concept.
- Some Concepts are very common (for example
strings). In those cases we recommend choosing a few good exercises that make people think about those Concepts in interesting ways. For example, exercises that require UTF-8, string concatenation, char enumeration, etc, would all be good examples. - There should be one or more Concepts to practice per exercise.
Prerequisites
The prerequisites key lists the Concept Exercises that a student must have completed in order to access this Practice Exercise.
- These show up in the UI as "Learn Strings to unlock TwoFer"
- It should include all Concepts that a student needs to have covered to be able to complete the exercise in at least one idiomatic way. For example, for the TwoFer exercise in Ruby, prerequisites might include
strings,optional-params,implicit-return. - For Exercises that can be completed using alternative Concepts (e.g. an Exercise solvable by
loopsorrecursion), the maintainer should choose the one approach that they would like to unlock the Exercise, considering the student's journey through the track. For example, the loops/recursion example, they might think this exercise is a good early practice ofloopsor that they might like to leave it later to teach recursion. They can also make use of an analyzer to prompt the student to try an alternative approach: "Nice work on solving this via loops. You might also like to try solving this using Recursion." - There should be one or more prerequisites Concepts per exercise.
Although ideally all Concepts should be taught by Concept Exercises, we recognise that it will take time for tracks to achieve that. Any Practice Exercises that have prerequisites which are not taught by Concept Exercises, will become unlocked once the final Concept Exercise has been completed.
Goal
Practices
The "practices" field of each element in the "exercises.practice" field in the config.json file should be updated to contain the practice concepts. See the spec.
To help with identifying the practice concepts, the "topics" field can be used (if it has any contents). Once prerequisites have been defined for a Practice Exercise, the "topics" field should be removed.
Each practice concept should have its own entry in the top-level "concepts" array. See the spec.
Prerequisites
The "prerequisites" field of each element in the "exercises.practice" field in the config.json file should be updated to contain the prerequisite concepts. See the spec.
To help with identifying the prerequisites, the "topics" field can be used (if it has any contents). Once prerequisites have been defined for a Practice Exercise, the "topics" field should be removed.
Each prerequisite concept should have its own entry in the top-level "concepts" array. See the spec.
Example
{
"exercises": {
"practice": [
{
"uuid": "8ba15933-29a2-49b1-a9ce-70474bad3007",
"slug": "leap",
"name": "Leap",
"practices": ["if-statements", "numbers", "operator-precedence"],
"prerequisites": ["if-statements", "numbers"],
"difficulty": 1
}
]
}
}
Tracking
- Lenguaje dominante
- Lua
- Estrellas
- 49
- Forks
- 61
- Merge medio
- 1 h 57 min
- PR fusionados (30 d)
- 2
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de exercism/lua
-
Update the README.mdAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 30/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Todos los issues de exercism/lua
Issues similares
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nickjvandyke/opencode.nvim#336 ·
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
coder/claudecode.nvim#321 ·
-
Bug Forever Module - Quest Needs testing/reproduction
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
enhancement help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
version-fox/vfox#711 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
codymikol/multiverse.nvim#330 ·
Los mantenedores suelen responder en 8 días