question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Separate `rest-and-spread` into its own new concept exercise (concept exists)

See original GitHub issue

Getting started

Here you can read about what Concept Exercises are and how they are structured:

If you have not done so yet, it is probably also helpful to do a couple of “Learning Exercises” (this is how they are called on the site) yourself. You can also look at the code of an existing concept exercise like bird-watcher (concept for-loops) for reference.

Goal

The goal is to create new concept exercise that teaches the use of the rest and spread operator in the context of functions (rest parameters), arrays and objects.

Motivation

Currently, the concept exercise “Elyses Destructered Enchantments” teaches array destructing and the rest and spread operator (...) which also includes object related content. In the future we also want to teach object destructering as a concept. Since it would be too much to also add that into the same exercise, we want to have a new split. In the future, we want to change “Elyses Destructered Enchantments” so that it focuses on array and object destructering in the context of extracting individual elements/properties. In turn, rest and spread should be covered by a new exercise that the student will complete after “Elyses Destructered Enchantments”.

Please note that updating the existing exercise “Elyses Destructered Enchantments” is out of scope for this issue. There will be a separate issue for that later.

Concepts

The concept rest-and-spread already exists but feel free to improve the content or add more advanced content to the about.md file as you see fit.

https://github.com/exercism/javascript/tree/main/concepts/rest-and-spread

Learning Objectives

The student should learn what is covered in the existing concept: https://github.com/exercism/javascript/blob/main/concepts/rest-and-spread/introduction.md

Prerequisites

The following things should be assumed and defined as prerequisites for the exercise.

  • functions
  • array-destructering (in the context of extracting individual elements, no rest operator)
  • Although this concept is not available yet, you can assume the student also already knows about object destructering (in the context of extracting individual properties)

Story

Here some hints what can help to come up with a story for the exercise.

  • Think about/write down some tasks you would like the student to do (just generic tasks, no story), sometimes that already sparks an idea for a story to wrap the tasks.
  • Browse through the existing stories https://exercism.org/docs/building/tracks/stories (click on the individual story in the menu on the left), usually you won’t find an exact match but some story might spark your inspiration for some general theme.
  • In the end, you can make nearly every story fit every concept so just picking some theme and rolling with it also works.

Help

You can choose to do this solo-style, or collaborate with multiple people on this. The suggested approach is to

  1. First accept this issue by saying “I’d like to work on this” (no need to wait for a response, just go with it) and optionally request that someone works with you (and wait for a second person to accept your request).
  2. Use this issue to discuss any questions you have, what should be included in the content and what not and to collect reference material.
  3. Create a PR and set “exercism/javascript” as reviewers. Additionally you can write in #maintaining-javascript that your PR is ready for review. Once you incorporated any critical feedback that the reviewer might give you and the PR is approved, it will be merged by a maintainer.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
meatball133commented, Nov 8, 2022

I would very much appricate feedback and I would personally say this covers all of the topics in the syllabus.

0reactions
meatball133commented, Nov 11, 2022

Added a first iteration of the files. I would like to get some feedback this far and then I will continue to finish up the rest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tag: Exercise-Concept - Clueless Political Scientist
The doctrines of positive freedom are exercise-concepts. That's to say, they are concerned with a view of freedom which involves essentially ...
Read more >
Rest parameters and spread syntax
In old times, rest parameters did not exist in the language, and using arguments was the only way to get all arguments of...
Read more >
Political Theory Test Review Flashcards - Quizlet
When concepts become real through their own conceptualization. Ex)Food desert already existed, but when concept emerges it allows for people to deal with...
Read more >
The React Handbook – Learn React for Beginners
SECTION 1: MODERN JAVASCRIPT CORE CONCEPTS YOU NEED TO KNOW TO USE REACT. Find out if you have to learn something before diving...
Read more >
What Does Liberty Mean? - Constitution of The United States
The concept of the right to liberty is something that is etched into the mind ... human being and exists between each individual,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found