GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add internal documentation by aymen94 · Pull Request #26665 · nodejs/node

Conversation

@aymen94

@aymen94 aymen94 commented Mar 14, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Added internal documentation for contributors.

#26639

If it's accepted, I'll add more.

  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aymen94 and bricss reacted with thumbs up emoji aymen94 and bricss reacted with rocket emoji
All reactions
  • 👍 2 reactions
  • 🚀 2 reactions
@aymen94
doc: add internal documentation
0a05c0b
Signed-off-by: Aymen Naghmouchi <[email protected]>
@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to Node.js documentation. label Mar 14, 2019
@aymen94

aymen94 commented Mar 14, 2019

Copy link
Copy Markdown
Member Author

@Trott

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Mar 14, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Seems OK to me, but here are the relevant questions for @nodejs/collaborators

  • This documents an internal-use flag but does it outside of the API documentation (so it won't appear on the nodejs.org website, for example). It's still a public document though, available on GitHub and in the source code. Do we want to document internal-use flags? Or is it actually best to just not have them documented anywhere at all because doing so will invariably encourage people to use them, which is exactly what we don't want? @bnoordhuis

  • We already have internal docs in doc/guides. I dislike that directory name and maybe we can change it some time. But for now, does it make sense to split this into another directory like it is here (doc/internal) perhaps with the hope of moving everything there eventually? Or should we keep it with everything else in doc/guides?

  • While it seems more-or-less OK to me (as in: better than not having it documented at all), I feel like the documentation for this flag is not quite correct, or at least could stand some significant improvements that wouldn't be that big of a problem to add. It should mention bootstrap code, no? @danbev @joyeecheung

addaleax, vsemozhetbyt, and aymen94 reacted with thumbs up emoji
All reactions
  • 👍 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mscdex

mscdex commented Mar 14, 2019

Copy link
Copy Markdown
Contributor

If it's internal-only it's typically only used in tests right? If so, it might be better to place it in the tests documentation?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Mar 14, 2019

Copy link
Copy Markdown
Member

Thanks for adding more docs for internals!

@Trott I think for now, doc/guides is the best place for this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

joyeecheung
joyeecheung reviewed Mar 14, 2019
View reviewed changes

@joyeecheung joyeecheung left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

Can you move this into doc/guides? I guess then a name like internal-flags.md (if we focus this document on flags) or developing-core.md/debugging-internals.md would be more suitable.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread doc/internal/index.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung @aymen94
Update doc/internal/index.md
2dafa67
Co-Authored-By: aymen94 <[email protected]>
@danbev

danbev commented Mar 15, 2019

Copy link
Copy Markdown
Contributor

@Trott Like @joyeecheung said I think the place for this is in doc/guides which was suggested in the original pr.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aymen94

aymen94 commented Mar 15, 2019

Copy link
Copy Markdown
Member Author

@danbev There are other undocumented things besides this --inspect-brk-node.
Is my opinion: I think we should add an internal doc, Also to remember that there are in the code.
@Trott @joyeecheung

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Mar 15, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@aymen94 There already are several internal docs under doc/guides, this just adds some more for the CLI flags, so it should be there as well.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github

sam-github commented Mar 15, 2019

Copy link
Copy Markdown
Contributor

Why not just actually document our CLI options? I can never remember the name of --expose-internal and every time I grep the test source to find its name I ask myself "why?". If we don't want to be pinned down on the feature, call it experimental.

If this CLI option, which I've never heard about (probably because its not documented!) does what it sounds like, I wish I'd know about it before.

Wrt. the text proposed here, I think the option allows debugging the javascript js built into node during its initial evaluation, right? That isn't clear enough, I think, because I'm not absolutely certain that's what its for.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ryzokuken
ryzokuken reviewed Mar 16, 2019
View reviewed changes

@ryzokuken ryzokuken left a comment

Copy link
Copy Markdown
Contributor

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.

Don't want to be the naysayer here, but the downsides of having extensive internal documentation in my opinion:

  1. It adds to the time and effort required for making code changes. It is one thing to document the changes to the public API, and a completely different thing altogether to ask people to document the internals. Most contributors would either end up overextending themselves or not reaching some vague undocumented standards.
  2. As rightly pointed out by @Trott, this would inevitably lead to the ecosystem getting a know a lot about the internals (read: implementation details) of Node.js. Since we've set a terrible precedent regarding breaking code that relies on implementation details or experimental features (I've have to deal with it myself while working on #21573, for example), I'm afraid this might end up revealing too much and it might significantly affect our ability to improve the codebase unless we explicitly agree that it's fine to change anything that's not a part of our public API, even if it might break someone's code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aymen94

aymen94 commented Mar 16, 2019

Copy link
Copy Markdown
Member Author

@ryzokuken If not traced, many contributors will forget or do not know that there are.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@richardlau

richardlau commented Mar 16, 2019

Copy link
Copy Markdown
Member

Maybe we should rename --inspect-brk-node? It's not obvious at all that it's not intended for general use.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ryzokuken

ryzokuken commented Mar 16, 2019

Copy link
Copy Markdown
Contributor

@ryzokuken If not traced, many contributors will forget or do not know that there are.

Contributors will forget that certain options exist? I think that seems unlikely.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aymen94

aymen94 commented Mar 16, 2019

Copy link
Copy Markdown
Member Author

@ryzokuken It's for new contributors like me?
Only looking at the source code, I see that they are there.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev

danbev commented Mar 17, 2019

Copy link
Copy Markdown
Contributor

I can never remember the name of --expose-internal and every time I grep the test source to find its name

I'm the same but have started using bash completion (--completion-bash flag) which I think helps. You might not be using bash but though I'd mention it just in case.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thefourtheye
thefourtheye reviewed Mar 17, 2019
View reviewed changes
Comment thread doc/internal/index.md
-->

Activate inspector on `host:port` and break at start of the first internal
JavaScript script executed when the inspector is available.

@thefourtheye thefourtheye Mar 17, 2019

Copy link
Copy Markdown
Contributor

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.

Double script sounds redundant to me. Perhaps, JavaScript code?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@joyeecheung joyeecheung Mar 18, 2019

Copy link
Copy Markdown
Member

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.

statement is probably more accurate (it won't break on the first declaration).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@antsmartian

antsmartian commented Mar 18, 2019

Copy link
Copy Markdown
Contributor

I agree with most of the points mentioned out by @Trott . Wanted to give a few more ideas like if we agree on creating these documentation, then we can open up a issue (should be a help-wanted and good-first-issue) so that we can get contribution(like this one), which will eventually grow and cover all these internal used stuffs. Then, we can add those documentation in new contributions list or somewhere, so that new people coming to read our source code can get benefited by. I guess its a win-win situation.

aymen94 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github

sam-github commented Mar 18, 2019

Copy link
Copy Markdown
Contributor

@danbev I use zsh, but bash things often work, I'll give it a try, thanks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Mar 21, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

As rightly pointed out by @Trott, this would inevitably lead to the ecosystem getting a know a lot about the internals (read: implementation details) of Node.js.

I don't think adding internal documentations really makes a difference here. For people who want to hack internals, they'll be able to find out about these things either by reading code or by reading blog posts etc. (TBH our doc folder may be the last place they'll ever look at). If we really want to hide all the internals, we might as well never write explanatory comments in the code, but that hardly benefits anyone. We just need to be very clear that these are not features, but helpers for debugging and are likely to go away without any prior notice.

Either way, It'll probably take some time before documentation like this show up in significant places of the search results, if it ever gets there - if you don't know about the keywords, it's probably hard to find out about the document, but if you already do, then you may already have a better source of knowledge than this document.

lpinca reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Mar 21, 2019

Copy link
Copy Markdown
Member

Lots of people have commented, and there's been debate about details like whether this documentation should go in one directory or another, but no Collaborator has come on with a strong +1 or -1 just for the general concept of documenting our internal-use-only flags someplace for ourselves. Where do individual Collaborators stand on that?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Mar 21, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

(I would interpret joyeecheung as being +1, ryzokuken as being -1, danbev as +1, etc., but those are inferences on my part and I could very well be wrong. I'm asking people to be explicit.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev

danbev commented Mar 21, 2019

Copy link
Copy Markdown
Contributor

I don't feel strongly about this, I'm fine either with documenting this and fine if we don't.

Trott reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Mar 21, 2019

Copy link
Copy Markdown
Member

I am +1, but I think it should be in doc/guides, or it should be together with other documents under doc/guides (the folder can be renamed, not necessarily in this PR)

Trott reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Mar 21, 2019

Copy link
Copy Markdown
Member

I'm +1 as well. If we are afraid that people might mistake it for general documentation, we can add a clear disclaimer at the top of the document.

aymen94, BethGriggs, and Trott reacted with thumbs up emoji
All reactions
  • 👍 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax mentioned this pull request Mar 21, 2019
tls: add debugging to native TLS code #26843
Closed
2 tasks done
@BridgeAR

BridgeAR commented Mar 25, 2019

Copy link
Copy Markdown
Member

When reading the comments it sounds like the common opinion is to add the documentation, but only to doc/guides. @aymen94 would you mind moving the file accordingly and to add a disclaimer as suggested?

aymen94 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aymen94
change directory, add a disclaimer
4ced477
Signed-off-by: Aymen Naghmouchi <[email protected]>
@Rednickle Rednickle mentioned this pull request Mar 8, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#15
Open
This was referenced Mar 11, 2021
[Snyk] Fix for 6 vulnerabilities Dmarch28/node#8
Open
[Snyk] Fix for 6 vulnerabilities Dmarch28/node#9
Open
This was referenced May 25, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#21
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#22
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.2.13 to 2.6.31 kissofire/node#35
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 sitedata/node#25
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.2.13 to 2.6.31 meghasfdc/node#35
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#33
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 baby636/node#10
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#22
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#25
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 137717unity/node#26
Open
This was referenced Apr 7, 2022
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#61
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#47
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 137717unity/node#52
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#53
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#54
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 baby636/node#49
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 molllyn1/node#43
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 wedataintelligence/node#28
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 turkdevops/node#364
Closed
@snyk-bot snyk-bot mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#89
Open
@wedataintelligence wedataintelligence mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#73
Open
@snyk-bot snyk-bot mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities kissofire/node#94
Open
@molllyn1 molllyn1 mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities molllyn1/node#76
Open
@snyk-bot snyk-bot mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities 137717unity/node#93
Open
@baby636 baby636 mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities baby636/node#88
Open
This was referenced Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities ron-a20/node#93
Open
[Snyk] Fix for 1 vulnerabilities Rednickle/node-1#70
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@joyeecheung joyeecheung joyeecheung left review comments
@Trott Trott Trott approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
+2 more reviewers
@thefourtheye thefourtheye thefourtheye left review comments
@ryzokuken ryzokuken ryzokuken left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. doc Issues and PRs related to Node.js documentation.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

14 participants

@aymen94 @Trott @mscdex @joyeecheung @danbev @sam-github @richardlau @ryzokuken @antsmartian @targos @BridgeAR @thefourtheye @vsemozhetbyt @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.