-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
ES6 Classes: General language/structure touch-up #28947
Conversation
At this point in time, the good/bad controversies aren't so prevalent given it's now been 9 years since ES6 release. Many of the resources around criticising or analysing pros/cons of class syntax appear to be within a year or two of ES6 release, and before additional features were added, like private properties. This content has led to several doubts about whether it's worth learning class syntax and whether it's "bad and shouldn't be used", despite it now being somewhat commonplace.
Removed mixins - common pain point as it goes a lot deeper than necessary at this point
More relevant topics in that lesson as opposed to class syntax.
To match assignment structure
Less focus on "using classes might not be good" and more focus on how the underlying mechanics are still the same prototypal inheritance with different syntax.
Original intention was to reduce external doc assignments and have more in-house content, but given the lesson's focus should mostly be on new syntax, that felt too close to just reproducing documentation. A less dramatic approach felt more effective here - we can always revisit if we notice new patterns of pain points in the community. |
Section goes out of scope for this TOP lesson.
Original wording could be misinterpreted to mean that Player.prototype actually is the same object as Person.prototype, instead of inheriting from it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting this in!
Because
It's not too uncommon that I find people in the community expressing frustration at the complexity of the documentation in the ES6 classes lesson, despite the intro saying there's not much extra to learn. The current verbiage has also led many to question if classes are "bad" and wonder if they shouldn't be used at all/shouldn't learn about them if they're "so controversial". This may have been more relevant around ES6 release but now they're far more common and with more features added since.
It would be beneficial to rephrase some of those parts of the lesson, while also rethinking some of the assignments to try and narrow the focus on "new syntax for concepts you already know about", with extra focus on "no need to dig too deep right now either".
This PR
Issue
Closes #28797
Closes #29061
Additional Information
Pull Request Requirements
location of change: brief description of change
format, e.g.Intro to HTML and CSS lesson: Fix link text
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section