Perfect your code
With built-in code review tools, GitHub makes it easy to raise the quality bar before you ship. Join the 36 million developers who've merged over 200 million pull requests.
Sign up for free See pricing for teams and enterprisesadd internal documentation #26665
Conversation
nodejs-github-bot
added
the
doc
label
Mar 14, 2019
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Seems OK to me, but here are the relevant questions for @nodejs/collaborators
|
This comment has been minimized.
This comment has been minimized.
|
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? |
This comment has been minimized.
This comment has been minimized.
|
Thanks for adding more docs for internals! @Trott I think for now, |
joyeecheung
reviewed
Mar 14, 2019
|
Can you move this into |
doc/internal/index.md Outdated
This comment has been minimized.
This comment has been minimized.
|
@Trott Like @joyeecheung said I think the place for this is in |
This comment has been minimized.
This comment has been minimized.
|
@danbev There are other undocumented things besides this |
This comment has been minimized.
This comment has been minimized.
|
@aymen94 There already are several internal docs under |
This comment has been minimized.
This comment has been minimized.
|
Why not just actually document our CLI options? I can never remember the name of 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. |
ryzokuken
reviewed
Mar 16, 2019
|
Don't want to be the naysayer here, but the downsides of having extensive internal documentation in my opinion:
|
This comment has been minimized.
This comment has been minimized.
|
@ryzokuken If not traced, many contributors will forget or do not know that there are. |
This comment has been minimized.
This comment has been minimized.
|
Maybe we should rename |
This comment has been minimized.
This comment has been minimized.
Contributors will forget that certain options exist? I think that seems unlikely. |
This comment has been minimized.
This comment has been minimized.
|
@ryzokuken It's for new contributors like me? |
This comment has been minimized.
This comment has been minimized.
I'm the same but have started using bash completion ( |
thefourtheye
reviewed
Mar 17, 2019
| --> | ||
|
|
||
| Activate inspector on `host:port` and break at start of the first internal | ||
| JavaScript script executed when the inspector is available. |
This comment has been minimized.
This comment has been minimized.
thefourtheye
Mar 17, 2019
Contributor
Double script sounds redundant to me. Perhaps, JavaScript code?
This comment has been minimized.
This comment has been minimized.
joyeecheung
Mar 18, 2019
Member
statement is probably more accurate (it won't break on the first declaration).
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
@danbev I use zsh, but bash things often work, I'll give it a try, thanks. |
This comment has been minimized.
This comment has been minimized.
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 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. |
This comment has been minimized.
This comment has been minimized.
|
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? |
This comment has been minimized.
This comment has been minimized.
|
(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.) |
This comment has been minimized.
This comment has been minimized.
|
I don't feel strongly about this, I'm fine either with documenting this and fine if we don't. |
This comment has been minimized.
This comment has been minimized.
|
I am +1, but I think it should be in |
This comment has been minimized.
This comment has been minimized.
|
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. |
addaleax
referenced this pull request
Mar 21, 2019
Closed
tls: add debugging to native TLS code #26843
This comment has been minimized.
This comment has been minimized.
|
When reading the comments it sounds like the common opinion is to add the documentation, but only to |
Trott
reviewed
Mar 25, 2019
| @@ -0,0 +1,17 @@ | |||
| # we assume no responsibility | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Trott
Mar 26, 2019
Member
That's requesting a disclaimer along the lines of "These flags are for Node.js core development usage only. Do not use these flags in your own applications. These flags are not subjected to semantic versioning rules. The core developers may remove these flags in any version of Node.js."
This comment has been minimized.
This comment has been minimized.
Trott
Mar 26, 2019
Member
(In other words, not a legal disclaimer of no liability, but a disclaimer to not use these flags if you're doing it for internal Node.js core development.)
Trott
reviewed
Mar 26, 2019
doc/guides/internal/index.md Outdated
Trott
requested changes
Mar 26, 2019
|
Can you rename the file to something descriptive? |
This comment has been minimized.
This comment has been minimized.
|
Thanks for your patience with all of this. Last set of nit-picks, I think. These are optional because someone else can do them later if they really want to. But I think it would marginally improve this doc:
|
Trott
approved these changes
Mar 26, 2019
This comment has been minimized.
This comment has been minimized.
I would also suggest adding a |
BridgeAR
approved these changes
Mar 27, 2019
vsemozhetbyt
added
the
author ready
label
Mar 27, 2019
aymen94
added some commits
Mar 28, 2019
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I guess we can also land it as is and change the rest later? |
This comment has been minimized.
This comment has been minimized.
|
@richardlau @Trott are you fine with landing this as is? |
This comment has been minimized.
This comment has been minimized.
¯\_(ツ)_/¯ No objections if other collaborators find this useful. |
This comment has been minimized.
This comment has been minimized.
Yes. Preferable if comments are addressed, but not required. |
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Apr 15, 2019
This comment has been minimized.
This comment has been minimized.
|
Landed in 7938238 |
aymen94 commentedMar 14, 2019
•
edited
Added internal documentation for contributors.
#26639
If it's accepted, I'll add more.