Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3] Implement new Concept Exercise: classes-intro #942

Closed
rishiosaur opened this issue Apr 22, 2020 · 6 comments
Closed

[V3] Implement new Concept Exercise: classes-intro #942

rishiosaur opened this issue Apr 22, 2020 · 6 comments
Assignees

Comments

@rishiosaur
Copy link
Contributor

This issue describes how to implement the class concept exercise for the JavaScript track.

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:

Please also watch the following video:

Goal

This exercise's goal is to teach the student about the function of classes in Javascript, why they exist, and how to implement them.

Learning objectives

  • Understand the constructor function
  • Understand how this works
  • Know how to effectively create prototypal properties

Out of scope

  • The new keyword
  • Initializing classes (this exercise will only teach students how to implement classes in this exercise, not how to use them).
  • Factory functions
  • Class expressions (declaring a class with a var statement)
  • Static properties & static methods
  • extends keyword
  • Class inheritance with super

Concepts

  • Creating private properties in the constructor function
  • Creating public functions that consume the properties defined in the constructor
  • Using this to access class-wide properties

Prerequisites

  • booleans
  • strings
  • functions
  • objects

Resources to refer to

Hints

After

Representer

No changes required

Analyzer

No changes required

Implementing

See the implementation guide for JavaScript for more detail.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

@rishiosaur
Copy link
Contributor Author

I'll be creating a new branch on my fork for this.

@SleeplessByte
Copy link
Member

Nice! I'm excited about this.

I'm guessing you'll initialize classes in the tests, but not in the user code, so that they don't need to learn about new etc?

  • Will you teach constructors?
  • Inheritance / super?
  • extends?

@rishiosaur
Copy link
Contributor Author

All of those will be in the lessons to follow :) Lemme add them to the issue

@SleeplessByte
Copy link
Member

@rishiosaur how's this going :) ? Need help?

@SleeplessByte SleeplessByte changed the title [JavaScript] Implement new Concept Exercise: concept/classes-intro [JavaScript] Implement new Concept Exercise: classes-intro Jul 10, 2020
@shubhsk88
Copy link
Contributor

I would like to contribute to this issue or @SleeplessByte maybe you open some new issue related to it

@mikedamay mikedamay transferred this issue from exercism/v3 Jan 28, 2021
@mikedamay mikedamay changed the title [JavaScript] Implement new Concept Exercise: classes-intro [V3] Implement new Concept Exercise: classes-intro Jan 28, 2021
@junedev
Copy link
Member

junedev commented Feb 26, 2021

A replacement issue for this one was created to fit the target learning curve: #1015 Please go there if you still want to contribute to the classes concept exercise.
This issue will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants