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

doc: change e.g to for example #18397

Closed
wants to merge 5 commits into from

Conversation

sreepurnajasti
Copy link
Contributor

Refs: #18369

Checklist
Affected core subsystem(s)

doc

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. labels Jan 26, 2018
@@ -168,7 +168,7 @@ What it says in the title.

## Ownership and Smart Pointers

"Smart" pointers are classes that act like pointers, e.g.
"Smart" pointers are classes that act like pointers, for example:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The : is fine for the parenthetical stuff but it's a problem in ordinary prose like this. I don't think we want to do a global find/replace on this. We want to evaluate each item independently. For example, this instance should probably be changed to such as rather than for example:.

Nit: Get rid of the scare quotes in this sentence and instead italicize the term being defined:

"Smart" pointers -> _Smart pointers_

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Trott Done. Please review.

@@ -176,8 +176,7 @@ V8 Inspector integration allows attaching Chrome DevTools to Node.js
instances for debugging and profiling. It uses the [Chrome Debugging Protocol][].

V8 Inspector can be enabled by passing the `--inspect` flag when starting a
Node.js application. It is also possible to supply a custom port with that flag,
e.g. `--inspect=9222` will accept DevTools connections on port 9222.
Node.js application. It is also possible to supply a custom port with that flag,for example: `--inspect=9222` will accept DevTools connections on port 9222.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please get rid of the comma and put the the whole example in parentheses.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Trott Thanks. Done!!

Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some change suggestions I'd like to see addressed before this lands. So I'm going to make it explicit with Request changes. Thanks!

@fhinkel
Copy link
Member

fhinkel commented Jan 29, 2018

I think the : is disrupting the flow and incorrect. I'm not sure what the benefit of this PR is, but I agree, that e.g definitely needs to be changed to either e.g., or for example.

@sreepurnajasti
Copy link
Contributor Author

sreepurnajasti commented Jan 30, 2018

@fhinkel @tniessen Using e.g. or e.g., will always result in confusion(i.e which to use). So, replacing this instances with for example could be a good move. Please suggest if : is incorrect. One alternative, I could think of is ",". Please, let me know your opinion.

@fhinkel
Copy link
Member

fhinkel commented Jan 30, 2018

Sorry, there's no confusion in American English, it's e.g., and i.e.,.

Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line length is often above 80 characters.

@sreepurnajasti
Copy link
Contributor Author

sreepurnajasti commented Feb 1, 2018

@fhinkel @Trott Thanks for the explanation. Please guide me if I need to make any changes/ close in this pr.

@sreepurnajasti
Copy link
Contributor Author

sreepurnajasti commented Feb 1, 2018

@BridgeAR Thanks for pointing out but I am unable to figure out which line is that. Please help.

@BridgeAR
Copy link
Member

BridgeAR commented Feb 1, 2018

@sreepurnajasti I am not sure what IDE you use but while for example using Visual Studio Code you can install a extension that you can use for to either highlighting it or to change it right away.

This should also be possible with different IDEs. Other than that you can also just have a look at the changed lines here on github and every time the line seems longer than the other ones surrounding that line, it is probably above 80 characters.

@sreepurnajasti
Copy link
Contributor Author

@BridgeAR Got it. I will make changes as soon as I get a decision on this pr. Thanks!!

@BridgeAR
Copy link
Member

BridgeAR commented Feb 6, 2018

Ping @Trott

@Trott
Copy link
Member

Trott commented Feb 7, 2018

Ping @Trott

I'm still -1. This should not be done with a find/replace. Each instance needs to be examined and handled thoughtfully. The : in particular is questionable in most of these cases.

@Trott
Copy link
Member

Trott commented Feb 7, 2018

The : in particular is questionable in most of these cases.

Each case should be examined and a determination made as to whether there should be a comma or not, and whether or not for example is the right text to use.

@@ -62,7 +62,7 @@ note1 - The gcc4.8-libs package needs to be installed, because node

*Note*: On Windows, running Node.js in windows terminal emulators like `mintty`
requires the usage of [winpty](https://github.com/rprichard/winpty) for
Node's tty channels to work correctly (e.g. `winpty node.exe script.js`).
Node's tty channels to work correctly (for example: `winpty node.exe script.js`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: while in here, maybe Node's -> Node.js's or even just remove Node's altogether.

@@ -251,7 +251,7 @@ To test if Node.js was built correctly:
> Release\node -e "console.log('Hello from Node.js', process.version)"
```

### Android/Android-based devices (e.g. Firefox OS)
### Android/Android-based devices (for example: Firefox OS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would probably be better/clearer as (Firefox OS, etc.) rather than (for example: Firefox OS).

@@ -243,7 +243,7 @@ Examples of breaking changes include:
* altering expected timing of an event
* changing the side effects of using a particular API

Purely additive changes (e.g. adding new events to `EventEmitter`
Purely additive changes (for example: adding new events to `EventEmitter`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a place where such as is likely called for rather than for example.

@@ -267,7 +267,7 @@ Such changes *must* be handled as semver-major changes but MAY be landed
without a [Deprecation cycle](#deprecation-cycle).

Note that errors thrown, along with behaviors and APIs implemented by
dependencies of Node.js (e.g. those originating from V8) are generally not
dependencies of Node.js (for example: those originating from V8) are generally not
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

such as

@@ -308,7 +308,7 @@ Specifically:

* Breaking changes should *never* land in Current or LTS except when:
* Resolving critical security issues.
* Fixing a critical bug (e.g. fixing a memory leak) requires a breaking
* Fixing a critical bug (for example: fixing a memory leak) requires a breaking
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comma instead of colon

@@ -623,7 +623,7 @@ error: failed to push some refs to 'https://github.com/nodejs/node'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: (for example: 'git pull ...') before pushing again.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is output from a command. It should not be changed.

@Trott
Copy link
Member

Trott commented Feb 7, 2018

I started to go through and leave comments but stopped well before reviewing all the changes. Hopefully you get the idea. This may be more manageable as separate pull requests for each file or something like that.

@fhinkel
Copy link
Member

fhinkel commented Feb 7, 2018

I agree with @Trott. This is not a mechanical change and the review cannot be handled with this many files affected. My suggestion would be to make small PRs that improve the language. The e.g., language does not need to be consistent in all the documents. It's fine if documentations is improved iteratively and if they're minor style differences at some point in time.

I'd suggest making one PR, once that is landed, use the feedback and learnings for the next PR. Otherwise reviewers get overwhelmed with a large number of PRs. Thanks!

@BridgeAR
Copy link
Member

Due to the mentioned concerns I am going to close this. @sreepurnajasti thanks a lot for your contribution nevertheless and please go ahead as suggested and open a smaller PR. In that case it can probably also land much faster in general.

@BridgeAR BridgeAR closed this Feb 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants