Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0B409200AE3 for ; Wed, 4 May 2016 09:27:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 098B41609FD; Wed, 4 May 2016 09:27:33 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4EDC91609F1 for ; Wed, 4 May 2016 09:27:32 +0200 (CEST) Received: (qmail 46697 invoked by uid 500); 4 May 2016 07:27:31 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 46680 invoked by uid 99); 4 May 2016 07:27:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2016 07:27:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6A8311A11E2 for ; Wed, 4 May 2016 07:27:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=datastax.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id gzpgy3JAZuJD for ; Wed, 4 May 2016 07:27:28 +0000 (UTC) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E6F7D5FD05 for ; Wed, 4 May 2016 07:27:27 +0000 (UTC) Received: by mail-yw0-f173.google.com with SMTP id t10so71215682ywa.0 for ; Wed, 04 May 2016 00:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datastax.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jNX/IS4dTkTd7sBGklYRUZ/Ehk8CaZc+Y6u0KYZZvjo=; b=O0l2j0k2oJfOBY8Okj+1FP31Jyi6EnaUPHWI2CuYByw3xtknRdaUgxMb4kLUmkf2KS OHntFXpCTcX2MB7gbCF1gb+2dUe4W/ljUAGBIwCZesrN+doK/r+dp1FoGdqo+fNq8l1N Gqs/h2InmddQRyw7c1/G6pJOkXA1f418qj6JA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jNX/IS4dTkTd7sBGklYRUZ/Ehk8CaZc+Y6u0KYZZvjo=; b=UQ3PZoDe3ud7N4XBtIvQeP2r3CplFp5Q5irOeOXExTZdQWBlQ3jKukWW4qVyYyXiIb lNi4v/ANLlxgjsymzrz1MOQe1l6HwzL6koqac6FsVa80pFrYTCCY2jOKRKjXCTkzI4Yd hoUWjqmrowWtLP4mq81sAPHGcuYbr3JspqI3KNKpGYc+REakZodwh68nDg7l26Tjgi+U L2p4ke0a95iaSDicKRy97id6IdFVXhWP0o0L9SXowxDYsaKiN1gjDjNAODjGe1LhmsTn CeVhLsoSwMBDGadWZV9ZvURVxRG9adx/pe0X2fjaRBr123c+m2HtVJOZr1X2Baz76U3L wzew== X-Gm-Message-State: AOPr4FUU60PkbQqNiP60zcYdr+gHNYiO73bqmaJfKYXRqdmHbnnMmK+EFeHVpTu/5luWAOnNgZb/a6LZUvhSt6AY X-Received: by 10.13.208.69 with SMTP id s66mr4486303ywd.267.1462346841121; Wed, 04 May 2016 00:27:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.196.6 with HTTP; Wed, 4 May 2016 00:27:01 -0700 (PDT) In-Reply-To: References: From: Sylvain Lebresne Date: Wed, 4 May 2016 09:27:01 +0200 Message-ID: Subject: Re: [Proposal] Mandatory comments To: "dev@cassandra.apache.org" Content-Type: multipart/alternative; boundary=001a114d747c01241a0531ff28a5 archived-at: Wed, 04 May 2016 07:27:33 -0000 --001a114d747c01241a0531ff28a5 Content-Type: text/plain; charset=UTF-8 On Tue, May 3, 2016 at 6:57 PM, Eric Evans wrote: > On Mon, May 2, 2016 at 11:26 AM, Sylvain Lebresne > wrote: > > Looking forward to other's opinions and feedbacks on this proposal. > > We might want to leave just a little wiggle room for judgment on the > part of the reviewer, for the very simple cases. Documenting > something like setFoo(int) with "Sets foo" can get pretty tiresome for > everyone, and doesn't add any value. > I knew someone was going to bring this :). In principle, I don't really disagree. In practice though, I suspect it's sometimes just easier to adhere to such simple rule somewhat strictly. In particular, I can guarantee that we don't all agree where the border lies between what warrants a javadoc and what doesn't. Sure, there is a few cases where you're just paraphrasing the method name (and while it might often be the case for getters and setters, it's worth noting that we don't really do much of those in C*), but how hard is it to write a one line comment? Surely that's a negligeable part of writing a patch and we're not that lazy. Anyway, I have no intention of being an ass and rejecting a well commented patch during review just because it missing a javadoc on a setFoo(int) method. But I do intend to try to follow the rule strictly and I think it'll be simpler if everyone does too. If nothing else, it'll bring consistency and that's reassuring for newcomers. -- Sylvain --001a114d747c01241a0531ff28a5--