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

Guide to contributing in lib/ folder? #16514

Closed
Ginden opened this issue Oct 26, 2017 · 2 comments
Closed

Guide to contributing in lib/ folder? #16514

Ginden opened this issue Oct 26, 2017 · 2 comments
Labels
question Issues that look for answers.

Comments

@Ginden
Copy link

Ginden commented Oct 26, 2017

As I'm working on pull request for #16178, I noticed that limited usage of certain ES2015+ features in lib/**/*.js code. My thoughts were confirmed while reading doc/guides/writing-tests.md.

For performance considerations, we only use a selected subset of ES.Next features in JavaScript code in the lib directory.

I think that publishing guide "what is preferred in codebase" would be preferred, because I was not able any description of such "selected subset".

Things that I would like to see:

  • class vs. util.inherits
  • closures
  • _* modules - what is difference between them and internal/* modules?
  • const vs. var vs. let
  • arrow functions
@mscdex mscdex added the question Issues that look for answers. label Oct 26, 2017
@Fishrock123
Copy link
Contributor

I had a start at #6885 but never got very far with it. Maybe it is of some use but quite probably outdated in some ways.

@Trott
Copy link
Member

Trott commented Oct 18, 2018

Many of these issues are now handled by our lint rules.

It seems like perhaps this should be closed. Feel free to re-open (or leave a comment requesting that it be re-opened) if you disagree. I'm just tidying up and not acting on a super-strong opinion or anything like that.

@Trott Trott closed this as completed Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

4 participants