You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Alexander Rukletsov <ru...@gmail.com> on 2015/03/12 21:59:13 UTC
Review Request 32001: Required a period in trailing comments in the
style guide.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/
-----------------------------------------------------------
Review request for mesos and Ben Mahler.
Repository: mesos
Description
-------
See summary.
Diffs
-----
docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
Diff: https://reviews.apache.org/r/32001/diff/
Testing
-------
None (not a functional change).
Thanks,
Alexander Rukletsov
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Mesos ReviewBot <de...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review77901
-----------------------------------------------------------
Patch looks great!
Reviews applied: [32001]
All tests passed.
- Mesos ReviewBot
On March 26, 2015, 1:08 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 26, 2015, 1:08 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Till Toenshoff <to...@me.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review80011
-----------------------------------------------------------
docs/mesos-c++-style-guide.md
<https://reviews.apache.org/r/32001/#comment129761>
I actually think that MPark's draft fits very well.
My suggestion would be:
"End each sentence within a comment with punctuation - this applies to incomplete sentences as well. Please note that we generally prefer periods."
- Till Toenshoff
On March 26, 2015, 1:08 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 26, 2015, 1:08 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Niklas Nielsen <ni...@qni.dk>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review79062
-----------------------------------------------------------
Ship it!
docs/mesos-c++-style-guide.md
<https://reviews.apache.org/r/32001/#comment128116>
s/, prefer period though/. Period is, however, prefered./
- Niklas Nielsen
On March 26, 2015, 6:08 a.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 26, 2015, 6:08 a.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/
-----------------------------------------------------------
(Updated April 24, 2015, 1:52 p.m.)
Review request for mesos, Michael Park and Till Toenshoff.
Changes
-------
Compiled comments into a new version.
Repository: mesos
Description
-------
See summary.
Diffs (updated)
-----
docs/mesos-c++-style-guide.md de1b93e9f210cd20db2355bd666991339fa4f50b
Diff: https://reviews.apache.org/r/32001/diff/
Testing
-------
None (not a functional change).
Thanks,
Alexander Rukletsov
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/
-----------------------------------------------------------
(Updated March 26, 2015, 1:08 p.m.)
Review request for mesos and Ben Mahler.
Changes
-------
Addressed comments.
Repository: mesos
Description
-------
See summary.
Diffs (updated)
-----
docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
Diff: https://reviews.apache.org/r/32001/diff/
Testing
-------
None (not a functional change).
Thanks,
Alexander Rukletsov
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Mesos ReviewBot <de...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76293
-----------------------------------------------------------
Patch looks great!
Reviews applied: [32001]
All tests passed.
- Mesos ReviewBot
On March 12, 2015, 8:59 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 12, 2015, 8:59 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Niklas Nielsen <ni...@qni.dk>.
> On March 12, 2015, 2:20 p.m., Ben Mahler wrote:
> > docs/mesos-c++-style-guide.md, line 30
> > <https://reviews.apache.org/r/32001/diff/1/?file=892420#file892420line30>
> >
> > Hm, isn't this captured by ending each sentence with a period above?
>
> Alexander Rukletsov wrote:
> Yes and no. Trailing comments are not always sentences (at least in my non-native speaker's language model), it can be for example a JIRA ticket. As an alternative we can re-phrase the statement above to something like "Each comment and sentences within it must end with a period." What do you think?
>
> Michael Park wrote:
> Haha I didn't even catch that: "End each __sentence__ with a period." Do we just mean "End each comment with a period."?
>
> Alexander Rukletsov wrote:
> Well, techically a comment may consist of multiple sentences, which means you can write something like this:
> ```
> // To compensate for the case where a non-strict registrar is
> // being used, we explicitly deny removed slaves from
> // re-registering
> // This is because a non-strict registrar cannot
> // enforce this
> // We've already told frameworks the tasks were
> // lost so it's important to deny the slave from re-registering.
> ```
> But maybe we lose too much time on this minor thing.
I would support mpark's idea here: How about having an extra bullet with "End each sentence with a period."?
- Niklas
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
On March 12, 2015, 1:59 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 12, 2015, 1:59 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Alexander Rukletsov <ru...@gmail.com>.
> On March 12, 2015, 9:20 p.m., Ben Mahler wrote:
> > docs/mesos-c++-style-guide.md, line 30
> > <https://reviews.apache.org/r/32001/diff/1/?file=892420#file892420line30>
> >
> > Hm, isn't this captured by ending each sentence with a period above?
>
> Alexander Rukletsov wrote:
> Yes and no. Trailing comments are not always sentences (at least in my non-native speaker's language model), it can be for example a JIRA ticket. As an alternative we can re-phrase the statement above to something like "Each comment and sentences within it must end with a period." What do you think?
>
> Michael Park wrote:
> Haha I didn't even catch that: "End each __sentence__ with a period." Do we just mean "End each comment with a period."?
Well, techically a comment may consist of multiple sentences, which means you can write something like this:
```
// To compensate for the case where a non-strict registrar is
// being used, we explicitly deny removed slaves from
// re-registering
// This is because a non-strict registrar cannot
// enforce this
// We've already told frameworks the tasks were
// lost so it's important to deny the slave from re-registering.
```
But maybe we lose too much time on this minor thing.
- Alexander
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
On March 12, 2015, 8:59 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 12, 2015, 8:59 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Timothy Chen <tn...@apache.org>.
> On March 12, 2015, 9:20 p.m., Ben Mahler wrote:
> > docs/mesos-c++-style-guide.md, line 30
> > <https://reviews.apache.org/r/32001/diff/1/?file=892420#file892420line30>
> >
> > Hm, isn't this captured by ending each sentence with a period above?
>
> Alexander Rukletsov wrote:
> Yes and no. Trailing comments are not always sentences (at least in my non-native speaker's language model), it can be for example a JIRA ticket. As an alternative we can re-phrase the statement above to something like "Each comment and sentences within it must end with a period." What do you think?
>
> Michael Park wrote:
> Haha I didn't even catch that: "End each __sentence__ with a period." Do we just mean "End each comment with a period."?
>
> Alexander Rukletsov wrote:
> Well, techically a comment may consist of multiple sentences, which means you can write something like this:
> ```
> // To compensate for the case where a non-strict registrar is
> // being used, we explicitly deny removed slaves from
> // re-registering
> // This is because a non-strict registrar cannot
> // enforce this
> // We've already told frameworks the tasks were
> // lost so it's important to deny the slave from re-registering.
> ```
> But maybe we lose too much time on this minor thing.
>
> Niklas Nielsen wrote:
> I would support mpark's idea here: How about having an extra bullet with "End each sentence with a period."?
To be technically correct, we need a end each sentence with some puncatuation, as you'll also commonly see this in our code:
master_tests.cpp
// Step 7: Ensure the slave cannot re-register!
- Timothy
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
On March 12, 2015, 8:59 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 12, 2015, 8:59 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Alexander Rukletsov <ru...@gmail.com>.
> On March 12, 2015, 9:20 p.m., Ben Mahler wrote:
> > docs/mesos-c++-style-guide.md, line 30
> > <https://reviews.apache.org/r/32001/diff/1/?file=892420#file892420line30>
> >
> > Hm, isn't this captured by ending each sentence with a period above?
Yes and no. Trailing comments are not always sentences (at least in my non-native speaker's language model), it can be for example a JIRA ticket. As an alternative we can re-phrase the statement above to something like "Each comment and sentences within it must end with a period." What do you think?
- Alexander
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
On March 12, 2015, 8:59 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 12, 2015, 8:59 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Niklas Nielsen <ni...@qni.dk>.
> On March 12, 2015, 2:20 p.m., Ben Mahler wrote:
> > docs/mesos-c++-style-guide.md, line 30
> > <https://reviews.apache.org/r/32001/diff/1/?file=892420#file892420line30>
> >
> > Hm, isn't this captured by ending each sentence with a period above?
>
> Alexander Rukletsov wrote:
> Yes and no. Trailing comments are not always sentences (at least in my non-native speaker's language model), it can be for example a JIRA ticket. As an alternative we can re-phrase the statement above to something like "Each comment and sentences within it must end with a period." What do you think?
>
> Michael Park wrote:
> Haha I didn't even catch that: "End each __sentence__ with a period." Do we just mean "End each comment with a period."?
>
> Alexander Rukletsov wrote:
> Well, techically a comment may consist of multiple sentences, which means you can write something like this:
> ```
> // To compensate for the case where a non-strict registrar is
> // being used, we explicitly deny removed slaves from
> // re-registering
> // This is because a non-strict registrar cannot
> // enforce this
> // We've already told frameworks the tasks were
> // lost so it's important to deny the slave from re-registering.
> ```
> But maybe we lose too much time on this minor thing.
>
> Niklas Nielsen wrote:
> I would support mpark's idea here: How about having an extra bullet with "End each sentence with a period."?
>
> Timothy Chen wrote:
> To be technically correct, we need a end each sentence with some puncatuation, as you'll also commonly see this in our code:
>
> master_tests.cpp
> // Step 7: Ensure the slave cannot re-register!
We got stuck here - BenM, would you prefer not to have the extra line? I think it is handy as we have seen the non-puncuation style bug quite a few times in comments.
- Niklas
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
On March 26, 2015, 6:08 a.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 26, 2015, 6:08 a.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Ben Mahler <be...@gmail.com>.
> On March 12, 2015, 9:20 p.m., Ben Mahler wrote:
> > docs/mesos-c++-style-guide.md, line 30
> > <https://reviews.apache.org/r/32001/diff/1/?file=892420#file892420line30>
> >
> > Hm, isn't this captured by ending each sentence with a period above?
>
> Alexander Rukletsov wrote:
> Yes and no. Trailing comments are not always sentences (at least in my non-native speaker's language model), it can be for example a JIRA ticket. As an alternative we can re-phrase the statement above to something like "Each comment and sentences within it must end with a period." What do you think?
>
> Michael Park wrote:
> Haha I didn't even catch that: "End each __sentence__ with a period." Do we just mean "End each comment with a period."?
>
> Alexander Rukletsov wrote:
> Well, techically a comment may consist of multiple sentences, which means you can write something like this:
> ```
> // To compensate for the case where a non-strict registrar is
> // being used, we explicitly deny removed slaves from
> // re-registering
> // This is because a non-strict registrar cannot
> // enforce this
> // We've already told frameworks the tasks were
> // lost so it's important to deny the slave from re-registering.
> ```
> But maybe we lose too much time on this minor thing.
>
> Niklas Nielsen wrote:
> I would support mpark's idea here: How about having an extra bullet with "End each sentence with a period."?
>
> Timothy Chen wrote:
> To be technically correct, we need a end each sentence with some puncatuation, as you'll also commonly see this in our code:
>
> master_tests.cpp
> // Step 7: Ensure the slave cannot re-register!
>
> Niklas Nielsen wrote:
> We got stuck here - BenM, would you prefer not to have the extra line? I think it is handy as we have seen the non-puncuation style bug quite a few times in comments.
Well, I'm still a bit surprised that this level of detail is necessary. If you guys think it's helpful, the first iteration of this diff seems more succinct to me :)
- Ben
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
On March 26, 2015, 1:08 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 26, 2015, 1:08 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Michael Park <mc...@gmail.com>.
> On March 12, 2015, 9:20 p.m., Ben Mahler wrote:
> > docs/mesos-c++-style-guide.md, line 30
> > <https://reviews.apache.org/r/32001/diff/1/?file=892420#file892420line30>
> >
> > Hm, isn't this captured by ending each sentence with a period above?
>
> Alexander Rukletsov wrote:
> Yes and no. Trailing comments are not always sentences (at least in my non-native speaker's language model), it can be for example a JIRA ticket. As an alternative we can re-phrase the statement above to something like "Each comment and sentences within it must end with a period." What do you think?
Haha I didn't even catch that: "End each __sentence__ with a period." Do we just mean "End each comment with a period."?
- Michael
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
On March 12, 2015, 8:59 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 12, 2015, 8:59 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>
Re: Review Request 32001: Required a period in trailing comments in
the style guide.
Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32001/#review76286
-----------------------------------------------------------
docs/mesos-c++-style-guide.md
<https://reviews.apache.org/r/32001/#comment123806>
Hm, isn't this captured by ending each sentence with a period above?
- Ben Mahler
On March 12, 2015, 8:59 p.m., Alexander Rukletsov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32001/
> -----------------------------------------------------------
>
> (Updated March 12, 2015, 8:59 p.m.)
>
>
> Review request for mesos and Ben Mahler.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> See summary.
>
>
> Diffs
> -----
>
> docs/mesos-c++-style-guide.md 439fe12ad137c1bed3a21d5a097c60a48f10a4f9
>
> Diff: https://reviews.apache.org/r/32001/diff/
>
>
> Testing
> -------
>
> None (not a functional change).
>
>
> Thanks,
>
> Alexander Rukletsov
>
>