Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124165 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 470661A009C for ; Mon, 1 Jul 2024 21:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719868148; bh=e5KLHyVYX5Z6yfbmOoJHCG6bKN5vujP54EU8+De7aEg=; h=In-Reply-To:References:Date:From:To:Subject:From; b=CELvPG2Ne1YhLO+o1+x/dWo59W8TkvOF8g/yv7u+2Mw0Kx+D80oEs8aPbAnhalm3A gqLHcxxpp/1vceAQr1CWqdOZc3sobc76jmsFiiPvWVaJ97wTzgBp3g/Ng9TrTrRJBi NhqKdlqxcwCWGgDrirIllZngo8UdjokqK38XjAfBj9Wv8LXGjmrCja8imRLxsFAtlI jPJ61UB86AbZrmViDc/reGRAQmOH68ZHKLbSKS6KAdvn+RTA1F9KjKbADGh1IP5pLO dwf0imd/H+qDzqClAg6FWRYqTpDzMSVt/Q4DYkAK0GRuXJFez/IU7ruFW5oD5n3S1V TbzTLL+fKDg2A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EFE031809E7 for ; Mon, 1 Jul 2024 21:09:07 +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_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 1 Jul 2024 21:09:07 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 7072E1380156 for ; Mon, 1 Jul 2024 17:07:46 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute1.internal (MEProxy); Mon, 01 Jul 2024 17:07:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1719868066; x=1719954466; bh=e5KLHyVYX5 Z6yfbmOoJHCG6bKN5vujP54EU8+De7aEg=; b=BbltslsnpUAG7cbTc5VOXyK2vj 4pwyVDNBu2b7O7TwTL5KaLpQR2X/lMRir1eNmYGMO1IFMCVR8pCV2T2rcxPdkv9Q 6IN30YA5zd+SwBHLO3BG1OfipevTu2mGX+5BTV7HUCOo+KCcO5/VWdQ53TIIghWI rJmEvbYcvLyjyKns7USKDEGm2JTwSkzb2wusAZ8Ez5jilxxraSOe7yjQ1Y4bkqm/ tFqgM4ZZPlklieOYaitKVdv6Lw4uig6V1CFwf9bz7AmFYfcFWI2cCKch5c6MgLk4 v8HSvKb2hB2wZoqASJeFOyGJTcrpFY1pjUs+aDZ/pnLkZrHxbU3T/ciU9YJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719868066; x=1719954466; bh=e5KLHyVYX5Z6yfbmOoJHCG6bKN5v ujP54EU8+De7aEg=; b=CmcvJulMfrEbwBV7Qzt5Cp/LRFseT5ymP5yk0m6CAxoe hvIrTwrQBDE92TvCdGMChpY9zxcCiqW++oK3RT99FzO6AMpB3nO76xdAbsWfUVNg 2FF4klcY1BgYLiXeZXBugHpswxx0lSnJiAaT4bYWsl7/A6zQaQOoMevJM7OJknvH Nnddq9yX/VZGEVYUWK8XRMj8QHtgdkTCd8EL6OSxGdIRiE52ABZQb+3fP0gCKifX 1nchx6jO0tGxMEe7gPN5VxZ8wjmvZBWoOxxk6OAa5L8X+y3UHlycZ2V51Ut9Id7E kPDZRgp/YFiwwjyLLanlxXMjqEv4ZMPfUUw8mdvkLQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudefgdduheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerreejnecuhfhrohhmpedftfhosgcunfgrnhguvghrshdfuceorhhosgessghothht lhgvugdrtghouggvsheqnecuggftrfgrthhtvghrnhepfeefudfhudduieekkedugffhud fgleejgfekgefhvdeikeelvddvjeehteegteegnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprhhosgessghothhtlhgvugdrtghouggvsh X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C90C415A0092; Mon, 1 Jul 2024 17:07:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-566-g3812ddbbc-fm-20240627.001-g3812ddbb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <0d5825cf-fa3a-40fe-b548-933221267a37@app.fastmail.com> In-Reply-To: <09559430-4477-4516-8D78-6F4071E1AA6C@newclarity.net> References: <1917CF7C-26D8-4DBE-B05C-5AA650AC6C9F@rwec.co.uk> <551cd5b0-1c00-4818-a9ca-97f6b7e8c3dc@app.fastmail.com> <39B496F8-062E-4848-9B3B-529BE8D3415A@newclarity.net> <856F4F70-DC81-4098-82DD-5F6D47CDF3F0@newclarity.net> <09559430-4477-4516-8D78-6F4071E1AA6C@newclarity.net> Date: Mon, 01 Jul 2024 23:07:23 +0200 To: internals@lists.php.net Subject: Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript) Content-Type: multipart/alternative; boundary=98d251afe3974f4bb2ea14b15c545fb6 From: rob@bottled.codes ("Rob Landers") --98d251afe3974f4bb2ea14b15c545fb6 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Jul 1, 2024, at 18:22, Mike Schinkel wrote: > > On Jul 1, 2024, at 7:57 AM, Arvids Godjuks wrote: > >=20 > > TL;DR: As a userland developer, in my opinion, this is just a downgr= ade from what we have now. Enhance namespaces to have the ability to hav= e internal/private classes, interfaces, enums and constants. That's abou= t it. >=20 > Please note my comments that follow do not mean I am in support of thi= s package proposal as presented.=20 >=20 > > Autoloading is one of the best killer features of PHP - love it or h= ate it - it's your personal preference. >=20 > Two really solid reasons to hate autoloading as implemented in PHP: >=20 > 1. Autoloading runs userland code. This means it has the potential con= flict between different packages with different autoloaders, it means th= ere can be buggy autoloaders, and it means that when using XDEBUG every = time a new symbol is found when the developer is single-step debugging t= he developer will be dropped into the autoloader and then best case they= then immediately trace out. All of these aspects a major PITA and time = waster and make debugging more exhausting than it needs to be. FWIW, (in Intellij at least), you can set it to skip those files. =E2=80=94 Rob --98d251afe3974f4bb2ea14b15c545fb6 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Mon, Jul 1, = 2024, at 18:22, Mike Schinkel wrote:
> On Jul 1, 2024, at 7:57 AM, Arvids Godjuk= s <arvids.godjuks@gmail.c= om> wrote:

> TL;DR: As = a userland developer, in my opinion, this is just a downgrade from what = we have now. Enhance namespaces to have the ability to have internal/pri= vate classes, interfaces, enums and constants. That's about it.

Please note my comments that follow do not mean I a= m in support of this package proposal as presented. 
=
> Autoloading is one of the best killer features of PH= P - love it or hate it - it's your personal preference.
Two really solid reasons to hate autoloading as implemented= in PHP:

1. Autoloading runs userland code.= This means it has the potential conflict between different packages wit= h different autoloaders, it means there can be buggy autoloaders, and it= means that when using XDEBUG every time a new symbol is found when the = developer is single-step debugging the developer will be dropped into th= e autoloader and then best case they then immediately trace out. All of = these aspects a major PITA and time waster and make debugging more exhau= sting than it needs to be.

FWI= W, (in Intellij at least), you can set it to skip those files.
=

=E2=80=94 Rob
--98d251afe3974f4bb2ea14b15c545fb6--