GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — doc: documentation of sync methods links now to async methods by iwko · Pull Request #21243 · nodejs/node Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This seems unnecessary given the immediately previous sentence.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would greatly prefer we stick with the wording used elsewhere:
This is the synchronous version of [`fs.exists()`][].
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Many of these contain links we should definitely add while many others of these changes also seem to add unnecessary sentences, as they often repeat the information in the sentence that comes right before them.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi, @iwko! Welcome, and thanks for the pull request! Documentation changes can often attract a lot of review comments. I hope you'll be patient and not be discouraged. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
cc @joyeecheung to chime in. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Also I was confused when I got started with fs documentation as well. There are no clear indications that you should click the link to find out more information e.g. about what the arguments actually mean. Just listing arguments without any explanation following by Maybe a better way to fix this would be instead of saying But I guess the point of saying |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@joyeecheung Something like that would make sense to me. But given what you wrote, I guess the current version of this is still an improvement. I'll remove my request for changes. This can always be iterated on going forward. @nodejs/documentation |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So, should I change my changes to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI-lite: https://ci.nodejs.org/job/node-test-pull-request-lite/874/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I would say yes, but let's see what other people from @nodejs/fs @nodejs/documentation think. With that style we will lose the emphasis on making the async versions the perferred APIs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
How should we proceed? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I hate to do this but this is more than a week old and has attracted very little attention from @nodejs/documentation so I'm going to do the dreaded @nodejs/collaborators... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The text LGTM as is |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@iwko Thank you for this PR! Here are some comments.
We could prefix this document with "The asynchronous version of APIs documents parameters. The synchronous version indicates only the return value and exceptional behavior.". That would only help someone who bothers to read the complete document though. I would prefer merging the two into a single sentence as @Trott proposed: "For detailed information, see the documentation of the asynchronous version of this API:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@davisjam I agree that merging the sentences would more better, but we can probably leave the @iwko Can you update the PR according to the suggestions above? Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@joyeecheung Sure thing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@joyeecheung done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI-lite: https://ci.nodejs.org/job/node-test-pull-request-lite/890/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I am a little confused now. So documentation for fs.chmod() should look like this?
Synchronously changes the permissions of a file. Returns undefined. For detailed information, see the documentation of the asynchronous version of this API: [fs.chmod()][]. See also: chmod(2).
?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@iwko Yes, that's my understanding
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@joyeecheung done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've done all changes. What do You think? @vsemozhetbyt @Trott @davisjam @joyeecheung |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@iwko I will have time to look today or tomorrow. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is it worth to completely skip these notes? We usually do not state anything if a function returns undefined.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nit: this one should go after the next reference, ABC-wise.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
When this PR will be merged? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@iwko Can you address the two nits from @vsemozhetbyt? Specifically, there's no need to indicate that Once that's done, we can run CI and probably land this promptly. (There may be an issue with the merge commit recently added to the branch. Our CI setup does not like merge commits, or at least didn't used to. But we'll deal with that when we get there.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Trott I've made changes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI-lite: https://ci.nodejs.org/job/node-test-pull-request-lite/905/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
038be2d to
9921a76
Compare
|
Looks like CI failed because of the merge commit. I've squashed out the merge commit. CI: https://ci.nodejs.org/job/node-test-pull-request-lite/906/ Would probably be good for people who have approved this to look it over again and make sure they still approve. I don't expect anyone to rescind their approval but this has nonetheless gone through substantial evolution. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vsemozhetbyt @joyeecheung @davisjam @TimothyGu @jasnell Are you still ok with those changes? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Still LGTM) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Add links to async methods and make wording consistent. PR-URL: nodejs#21243 Refs: nodejs#21197 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Jamie Davis <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
|
Landed in 65208d0. Thanks for the contribution! 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Add links to async methods and make wording consistent. PR-URL: #21243 Refs: #21197 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Jamie Davis <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.