Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125311 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 01D881A00BD for ; Tue, 27 Aug 2024 11:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724759316; bh=qlQhF2mB4p5grIUPAqsGnvoyQJKDd4LpupjGS3buaog=; h=Date:Subject:To:References:From:In-Reply-To:From; b=nxN2X0dq83QplljtqsmMX35MKF55VV4FMNc4UpU4cV0zOvqXjrWoH8faMW5apwLLI 4eYtaSAsU86W4mPz4AviamAs2WnxbIxKFPHZwikVJORM8BK2vxs77dLP1UOepGiuZt DTuMS1G+iGwzZiZud3Bh1Pqy+cNec+r2XpOxlSPxeZESgTqzxCypQA/tG2O3Bo0tXo s/6nPCOx+IhJAWqAhLqVPwm7xIllWUgZW+Amwvy5stsW0erKCLVtruyXY+DU+OVpqH JbxjhHLFbVFR1SAF+HCfMkvLvTkv5xiPB1tilp/XyE3F6w35I5TD7oiwHGa3LmCfnG YOaqoeHPgVvSA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 63F35180051 for ; Tue, 27 Aug 2024 11:48:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 27 Aug 2024 11:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1724759199; x=1725363999; i=cmbecker69@gmx.de; bh=PEn55iAZxxSY4F9uMlf5x6zCZuz5vwFidMHktMZLWIg=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Jo+WB60MNgnUWGShNhv2UYxjI+Ud4Uoo5yDDASHLiG3lftDGFkJNI8MjJWXdM2G1 ioeYiNTwLv0aQoSX68VDPxNrQRg/Y6iJOJ+gPZdFKNAjsF61UxWHqNXjD7uMyIZPC Bpbxk16RmX6AS754okUNozIJry2NB5A8R/lVxcIvcklfxWNgY1VTZsizdJsgjHFvj oXcGFTugf6LQpCOKQCfxqyOQuKeFgrQJ/euXUE1JH3VMmUzF+xTqEZNUIpmLhfTfm 5ktiLEei9o1BeNjEuUYHYyqBcvjufBQB2zA4MsPtIOfBfGrt84cLbQcbcnL8IFXA5 kYWAoOy0/V/Fy4a1aQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MIdif-1sugMk1LrJ-00GYVq; Tue, 27 Aug 2024 13:46:39 +0200 Message-ID: <383252f6-d0e8-4f29-8f01-a71e5ed26d90@gmx.de> Date: Tue, 27 Aug 2024 13:46:39 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-partyPackages in PHP Documentation and Web Projects Content-Language: de-DE To: Andreas Heigl , internals@lists.php.net References: <642cb3ea-bf51-4832-8539-0540742000e1@app.fastmail.com> <2c2f13b5-9cad-4bcc-b59f-01693e494bb3@heigl.org> In-Reply-To: <2c2f13b5-9cad-4bcc-b59f-01693e494bb3@heigl.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:mx2XlSZKIwEHCQHe2m411mqT2skXickRN3SzjDpQ2Z+AfQY1W+y QHA+8NRkxTnKHEVEdiouoDfTjQxXmWfAuN7O3Vter2mMYcVrXOF3sLziSc6qS9cFC7J851r xi+D1WKg+zQDxQWHel5CSeonFbDfoM6zDRxM9rdm+5k4BN24ftGJboN7acs7zkIl6h1lJFU KK48nkP4hOC36NLelrYNQ== UI-OutboundReport: notjunk:1;M01:P0:qxvRTw1Pi2M=;0+8S/475APlBCV3U/A6nA9fdeCz NLHuZh7Rp7FuFb4UJ7T4TIsY8wwXCy4tbzmvUI6zHveAtblk94D0VR4EuUhx5fcYl3Gb2eFfs nzODWoxLq7FlnesBQfBvPbRQgBZXxBpwLVMQLaT6b3PMcXeDZRxKde3NF6rcEocTtWuA3qaII RWYfRpw1W2S20vdo/yEx7gGG9Czio4cjLXkS/Cpn0YILfr8MBTi83WbxD3p2x+33PxjiGalo7 NNxHYAfVvqfq2oc6CKAW/gOI7Qw9H6Z+v8//vcWTvQj+5CYyOMwyWUhNR06wyfPH6kSCt4KhU 7COgMtjYE/1yd3sN+n92WE0FASqXwU+jqCt2amxCuGadxxk6vDk2WR7Y83sEyL2u/2oCShd+S 2039B37JU0fjiGsF04AN/S3W2F5Y/4mOf7QWHvNybHMo9BvcEbFUap+6TAmKgs2y6380T93LH U/18j7hkg2HVx3hu1s487ZGKu5KJqEo76HA0raNPWevLAWZPfUk933PybAux3bGXxjkqP3adc 6nIq7TQlGG+Q5bJqHNE/TkYmuC4hJuJmQbR8m7Gu36glPb3QhPz01ow6YkLuDpClwqt/LmhQX THXtjbesxPp0sX2RBusaBVBxzqejkyqoDoDrYHG2QmyQjrEk85UfknL38vdEeAK7T8bff8nut kKNAy/kTVQuHraT0uNSp1MajJUdgjHk9l/h190syQxaIiUTT3TRiKvHaszmfuhhe4i9aaDUyN qKHgLt4Lu2O8ARgD4fqNT8PLcErfrtMLeiclC7FdWBLntdgLB6XC7fyDQFKprGyDhciYpLnPG lSZGdW1gJw1iYqzlMb8q+ZYAyCwTwF7ufNRAJ4pdP9VPE= From: cmbecker69@gmx.de ("Christoph M. Becker") On 27.08.2024 at 07:03, Andreas Heigl wrote: > I see this a bid differently to be honest. While I understand that using > third party packages in our internal tools might make things easier in > the short term it will cause a lot or additional work in the long term. > > Currently we have a lot of small scripts that do one thing. And they do > it for a long time with very little maintenance effort. Blowing these > scripts up with third-party libraries will mean that we will have to put > in much more maintenance effort for either keeping the dependencies up > to date or mostly rewriting the script the moment a change needs to > happen as the libraries will be outdated. > > There are though some actual console applications like Pdt where it > might be valid to use third party dependencies. But also here I'd ask > whether the maintainability will be increased. A totally different > question though is whether we actually need to maintain a special tool > for building the docs or whether we can use a pre-existing tool for > that. I am mainly thinking about either phpDocumentor or a default > docbook renderer. But that is a totally differnt topic IMO. > > So I'd see this exactly the other way around: > > usage for infra needs very careful consideration to not increase the > maintenance-burden on those that actually 'do' the maintenance. Well, the RFC is not about that projects *should* use some tools or libraries or frameworks, but rather that they *can* choose to do so if they deem it valuable. Of course, the projects should not only look at the short term benefit, but also on the long term maintenance burden. For instance, web-php introduced Composer about two years ago, and in the following added support for php-cs-fixer and phpunit to be able to enforce a certain coding style and to run some tests. The maintenance burden appears to be low (and might be lowered by ignoring dependabot). Or another example would be the php-sdk-binary-tools. That code base had been originally developed for late PHP5 versions, and as such is showing cracks, and given that it is not extensively used, some long standing bugs have not even been noticed. Just by running some static analysis I easily found a couple of minor and not so minor issues. I consider it helpful to actually add some static analysis tool(s) to the repo (instead of setting this up locally, and running only occassionally), and maybe in the long run to also have some automated test= . Yet another example is web-pecl, which has quite some bugs, but apparently nobody has a test environment set up, so fixing a bug may introduce another (BTDT). Some tooling may be helpful there. Note that I have no intentions of rewriting these projects on top of a framework, but tooling and maybe a few libraries should make things easier for the respective developers, even in the long run. Christoph