Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jP4yH-0007yO-PN for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Apr 2020 13:54:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jP4xl-00038v-0l for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Apr 2020 13:53:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jP4xk-00038N-Pk for pgsql-hackers@lists.postgresql.org; Thu, 16 Apr 2020 13:53:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jP4xi-0006W3-JF for pgsql-hackers@postgresql.org; Thu, 16 Apr 2020 13:53:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 03GDrk5M004427; Thu, 16 Apr 2020 09:53:46 -0400 From: Tom Lane To: Andrew Dunstan cc: Noah Misch , Alvaro Herrera , PostgreSQL-development Subject: Re: cleaning perl code In-reply-to: References: <20200414204432.GA22922@alvherre.pgsql> <86b0e20d-efc1-4169-aeb1-be49b3a375ab@2ndQuadrant.com> <20200416030101.GB977691@rfd.leadboat.com> Comments: In-reply-to Andrew Dunstan message dated "Thu, 16 Apr 2020 08:50:35 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4425.1587045226.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Apr 2020 09:53:46 -0400 Message-ID: <4426.1587045226@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On 4/15/20 11:01 PM, Noah Misch wrote: >> It would be an unpleasant surprise to cause a perlcritic buildfarm fail= ure by >> moving a function, verbatim, from a non-strategic file to a strategic f= ile. >> Having two Perl style regimes in one tree is itself a liability. > Honestly, I think you're reaching here. I think that argument is wrong, actually. Moving a function from a single use-case into a library (with, clearly, the intention for it to have more use-cases) is precisely the time when any weaknesses in its original implementation might be exposed. So extra scrutiny seems well warranted. Whether the "extra scrutiny" involved in perlcritic's higher levels is actually worth anything is a different debate, though, and so far it's not looking like it's worth much :-( regards, tom lane