Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110408 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65865 invoked from network); 7 Jun 2020 16:34:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Jun 2020 16:34:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 809341804C7 for ; Sun, 7 Jun 2020 08:17:58 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/21 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Sun, 7 Jun 2020 08:17:57 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id B5A6D10C075; Sun, 7 Jun 2020 16:17:56 +0100 (BST) Date: Sun, 7 Jun 2020 16:17:56 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Max Semenik cc: Nikita Popov , Internals In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] Refactoring run-tests.php From: derick@php.net (Derick Rethans) On Sun, 7 Jun 2020, Max Semenik wrote: > On Fri, Jun 5, 2020 at 8:04 PM Nikita Popov wrote: > > > Happy to accept run-tests refactorings in general (there is a lot of > > global state to eradicate!), but please keep it single-file. We > > definitely need it single-file for distribution purposes, and I > > don't particularly want to have a "run-tests build system" for what > > I perceive to be little benefit. > > Once I add tests, it will just not be a single-file project anymore. I don't think tests are the relevant issue here. Nikita is asking to keep it a single file project for the test runner. I agree with that position. > > I'm not sure why PHP developers in particular seem to be so hung up about > > this issue, but: There really is no need to split every class into a > > separate file. This is how we develop in non-PHP, non-Java languages > > (C/C++/Rust/...) all the time. > > > > Because PHP taught them to: can't have a serious project > without the autoloader You don't need an autoloader if it's all in the same file. ;-) cheers, Derick