Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-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 70DD7DC84 for ; Thu, 29 Nov 2012 18:48:45 +0000 (UTC) Received: (qmail 67451 invoked by uid 500); 29 Nov 2012 18:48:44 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 67387 invoked by uid 500); 29 Nov 2012 18:48:44 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 67380 invoked by uid 99); 29 Nov 2012 18:48:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 18:48:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hsn@filez.com designates 64.6.108.239 as permitted sender) Received: from [64.6.108.239] (HELO ponto.amerinoc.com) (64.6.108.239) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 18:48:34 +0000 Received: from fbsd9.localdomain (205.83.broadband7.iol.cz [88.102.83.205]) (authenticated bits=128) by ponto.amerinoc.com (8.14.5/8.14.5) with ESMTP id qATIm9FT090734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 29 Nov 2012 19:48:12 +0100 (CET) (envelope-from hsn@filez.com) Received: from [127.0.0.1] ([10.0.0.1]) by fbsd9.localdomain (8.14.5/8.14.5) with ESMTP id qATIm1XF002778 for ; Thu, 29 Nov 2012 19:48:02 +0100 (CET) (envelope-from hsn@filez.com) Message-ID: <50B7AE16.80002@filez.com> Date: Thu, 29 Nov 2012 19:48:54 +0100 From: Radim Kolar User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: dev@lucene.apache.org Subject: pro coding style References: <50B4B68E.80007@designware.dk> <93DCE9EF-3569-4A9B-896D-0D991BE90037@gmail.com> <50B4D128.6050106@designware.dk> <50B4E9D5.6010206@filez.com> <91D07086FA674E32838D571ABDB761CD@JackKrupansky> <50B55FBC.3040900@filez.com> <5C95F7D6-1489-4CBB-832A-0208197BDFFA@gmail.com> <45F0CB6F-2AA5-434F-8717-E0221A05051A@gmail.com> <5CD483E3-3A1D-4695-89C6-8C6872F4D687@gmail.com> <50B6B576.8030604@filez.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 121129-0, 29.11.2012), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org if you talk about my yesterday work then no reformats were done because code was already properly formatted. Also all code was hand written, no generated code was used. Generated code is not committed to git anyway. my hard limits for code quality (checked at commit): * no findbugs warnings with level 14+ * code coverage 80% * code coverage in critical parts 95% * list of PMD warnings to stop commit * generation of call tree graph - check it for cycles, checking for calling same procedure from different levels (indicates bad code flow) * all eclipse warnings turned into errors * patched eclipse compiler to do better flow analysis * code reformatted at commit * javadoc everything, no warnings what you should do: * stuff i do + * ant -> maven * svn -> git (way better tools) * split code into small manageable maven modules * get more people * put trust into your testing, not into perfect people * work faster * use github to track patches * use springs for integration testing * use jenkins to do tests on incoming patches * do library checks for number of functions really used * contributor patches should be high priority or you will lose contributors i am giving sometimes lessons: about 1-2 sessions per year for 14 people, if i have spare time. But its waste of time, most ppl will not follow. learn this: SLOW CODING != BUG FREE CODE. GOOD TESTS + GOOD STATIC TESTING = GOOD BUG FREE CODE CODE STYLE != GAME WITH SPACES AND { } GOOD TESTS = 2x TIME NEEDED TO CODE STUFF UNDER TEST GOOD TESTS ARE MORE VALUABLE THEN GOOD CODE --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org