Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114632 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79661 invoked from network); 27 May 2021 11:18:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 May 2021 11:18:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 784021804B0 for ; Thu, 27 May 2021 04:29:50 -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.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from processus.org (ns366368.ip-94-23-14.eu [94.23.14.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 27 May 2021 04:29:49 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by processus.org (Postfix) with ESMTPA id F0E725101324; Thu, 27 May 2021 11:29:46 +0000 (UTC) To: =?UTF-8?Q?Micha=c5=82_Marcin_Brzuchalski?= , Guilliam Xavier Cc: Larry Garfield , php internals References: <80fb5a8e-d770-49fd-45d5-ea6f4b004513@gmail.com> <2874cf7c-e55d-4100-bb01-af11a5ab6e87@www.fastmail.com> Message-ID: <93bee614-8bca-7e35-94a6-518beafac8ba@processus.org> Date: Thu, 27 May 2021 13:29:45 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Authentication-Results: processus.org; auth=pass smtp.auth=pierre-php@processus.org smtp.mailfrom=pierre-php@processus.org X-Spamd-Bar: / Subject: Re: [PHP-DEV] Consensus Gathering: is_initialized From: pierre-php@processus.org (Pierre) Le 26/05/2021 à 21:24, Michał Marcin Brzuchalski a écrit : > I don't think nowadays anyone does that without a kind of deserializer > which > reads the metadata of desired DTO and like Symfony's Serializer or JMS > which just deal with such tasks!? Hello, Just for your information, we do have our own serialization mechanism in some projects, when writing workaround around existing serializers bugs or behaviors become too difficult, or when we want drastic speed-ups, or want to avoid dependencies. Sometime even just because the target production environment is not suitable for those well-known libraries (even in the containerized dockerized, vmized world, this still happen, sometime). Don't assume that everyone use X or Y library, there are some mad guys everywhere around the globe writing their own proprietary very complex APIs for pretty much anything when they have critical needs or legit constraints. For example we do maintain our own database access layer and SQL query builder, and we are pretty much anyone, just like anyone (why wouldn't we use Doctrine or PDO ? Yet we don't). For the record, I'm not opposed to have the is_initialized() method in PHP, I probably wouldn't use it personally but if it makes sense for some, why not having it ? Regards, -- Pierre