Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34B0417E8A for ; Mon, 6 Apr 2015 21:44:29 +0000 (UTC) Received: (qmail 54729 invoked by uid 500); 6 Apr 2015 21:44:26 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 54651 invoked by uid 500); 6 Apr 2015 21:44:26 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 54632 invoked by uid 99); 6 Apr 2015 21:44:25 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 21:44:25 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 877741D741B; Mon, 6 Apr 2015 21:44:23 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7012147219560975025==" MIME-Version: 1.0 Subject: Re: Review Request 32001: Required a period in trailing comments in the style guide. From: "Ben Mahler" To: "Ben Mahler" Cc: "Niklas Nielsen" , "Michael Park" , "Timothy Chen" , "Alexander Rukletsov" , "mesos" Date: Mon, 06 Apr 2015 21:44:23 -0000 Message-ID: <20150406214423.18051.46483@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Ben Mahler" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/32001/ X-Sender: "Ben Mahler" References: <20150312212035.1508.79940@reviews.apache.org> In-Reply-To: <20150312212035.1508.79940@reviews.apache.org> Reply-To: "Ben Mahler" X-ReviewRequest-Repository: mesos --===============7012147219560975025== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On March 12, 2015, 9:20 p.m., Ben Mahler wrote: > > docs/mesos-c++-style-guide.md, line 30 > > > > > > 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 > > --===============7012147219560975025==--