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

Issue 1341 inheritance concept #1447

Merged
merged 30 commits into from
Oct 18, 2021

Conversation

jakewitcher
Copy link
Contributor

@jakewitcher jakewitcher commented Oct 17, 2021

Fixes #1341

Copy link
Member

@SleeplessByte SleeplessByte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you make the formatting change first (to all .md files) it's easier to review too.

concepts/errors/about.md Outdated Show resolved Hide resolved
concepts/errors/introduction.md Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

Dear jakewitcher

Thank you for contributing to the JavaScript track on Exercism! 💙
You will see some automated feedback below 🤖. It would be great if you can make sure your PR covers those points. This will save your reviewer some time and your change can be merged quicker.

  • 📜 The following files usually contain very similar content.

    • concepts/<concept>/about.md
    • concepts/<concept>/introduction.md
    • exercises/concept/<exercise>/.docs/introduction.md

    Please check whether the changes you made to one of these also need to be applied to the others.

  • ✍️ If your PR is not related to an existing issue (and is not self-explaining like a typo fix), please make sure the description explains why the change you made is necessary.

  • 🔤 If your PR fixes an easy to identify typo, if would be great if you could check for that typo in the whole repo. For example, if you found Unicdoe, use "replace all" in your editor (or command line magic) to fix it consistently.

Dear Reviewer/Maintainer

  • 📏 Make sure you set the appropriate x:size label for the PR. (This also works after merging, in case you forgot about it.)

  • 🔍 Don't be too nit-picky. If the PR is a clear improvement compared to the status quo, it should be approved as clear signal this is good to be merged even if the minor comments you might have are not addressed by the contributor. Further improvement ideas can be captured in issues (if important enough) and implemented via additional PRs.

  • 🤔 After reviewing the diff in the "Files changed" section, take a moment to think about whether there are changes missing from the diff. Does something need to be adjusted in other places so the code or content stays consistent?

Automated comment created by PR Commenter 🤖.

Copy link
Member

@SleeplessByte SleeplessByte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. A few nit-picks.

@junedev what do you think?

concepts/inheritance/about.md Outdated Show resolved Hide resolved
Comment on lines 49 to 62
class Pet {
constructor(name) {
this.name = name;
}
}

class Dog extends Pet {
constructor(name, breed) {
super(name);
this.breed = breed;
}
}

let dog = new Dog('Otis', 'Pug');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like inconsistent indentation. I think we use 2 spaces everywhere. After this review, I will run format on your PR and it should auto-update.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format fixed it, see this commit

concepts/errors/introduction.md Outdated Show resolved Hide resolved
concepts/inheritance/about.md Outdated Show resolved Hide resolved
concepts/inheritance/about.md Outdated Show resolved Hide resolved
concepts/inheritance/introduction.md Outdated Show resolved Hide resolved
exercises/concept/factory-sensors/.docs/introduction.md Outdated Show resolved Hide resolved
exercises/concept/factory-sensors/.docs/introduction.md Outdated Show resolved Hide resolved
exercises/concept/factory-sensors/.docs/introduction.md Outdated Show resolved Hide resolved
exercises/concept/factory-sensors/.docs/introduction.md Outdated Show resolved Hide resolved
@SleeplessByte
Copy link
Member

/format

@SleeplessByte
Copy link
Member

Sidenote, according to configlet lint, the following errors are present:

  1. The Concept Exercise factory-sensors has inheritance in its concepts, which is not a slug in the top-level concepts array: /home/runner/work/javascript/javascript/config.json
  2. /home/runner/work/javascript/javascript/concepts contains a directory named inheritance, which is not a slug in the concepts array. Please add the concept to that array: /home/runner/work/javascript/javascript/config.json

Both can be solved with the same change.

@SleeplessByte
Copy link
Member

(Closing and re-opening so that the CI checks run again)

.gitignore Outdated
@@ -2,3 +2,4 @@
/bin/configlet
/pnpm-lock.yaml
/yarn.lock
/.idea
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a global gitignore file on your local machine for excluding editor/IDE related folders. We don't want this file to grow with each new editor a contributor brings along.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed from the project .gitignore and added to global .gitignore

@junedev
Copy link
Member

junedev commented Oct 17, 2021

@SleeplessByte I trust your review of the content. I double checked the general structure, looks all good (besides the missing concept entry the linter mentioned).

@jakewitcher Well done overall, thanks a lot!

@junedev junedev added hacktoberfest-accepted Opt-in to hacktoberfest x:size/medium Medium amount of work labels Oct 17, 2021
@jakewitcher
Copy link
Contributor Author

I believe I have addressed all of the outstanding issues, let me know if there's anything I have missed. Thanks for all of your feedback and patience, this was my first non-trivial PR for an Exercism language track and it was really helpful for learning about the overall structure of the track code bases and the PR expectations.

@junedev junedev merged commit 5ac1fb3 into exercism:main Oct 18, 2021
pertrai1 pushed a commit to pertrai1/javascript that referenced this pull request Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Opt-in to hacktoberfest x:size/medium Medium amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Concept Exercise "Factory Sensors": Add Concept inheritance
3 participants