Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114635 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86847 invoked from network); 27 May 2021 12:07:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 May 2021 12:07:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B93AA1804B0 for ; Thu, 27 May 2021 05:19:05 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 05:19:05 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id a6so267864ioe.0 for ; Thu, 27 May 2021 05:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cLVXDRt8s/86HEHGnnkkcEi3llqm1vdxBahrcdoRO0Q=; b=lcS431WOI8IzFo+SHKwl3BLoQgMkxqDVcQAmlrxXsC0zoU8LK+PI9SRzbJ/QiiUvp0 WoEuTt05X9MshKcmdjyn4Y/bMqL9SGYldwT+i6UlzPVf9P7hmUmVFrAe8OkvrL9CEAev z+dQR45aha529a+88qcTnFNGzMXWl4n8PE/KIkPocGRj6Um1tqxcuE64622W3euG4fVJ k5bU4hRVTdLf8MQJtG7yFEZVf2tT2T5tF+2SfVJEZGdWqyTzWjAQA4/KwvF2R8uEJv7d G0m3guBM/ELw1ytTvtg7JClIoMXyaOGDsgXMLEKmDWiuUhA6yeWhgIQcOK9KmIy7T97c pOSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cLVXDRt8s/86HEHGnnkkcEi3llqm1vdxBahrcdoRO0Q=; b=kms8n5UUAVO5F6yJQ8py3M7yw+i913GCblsfmUe3sl2abXT8Z7e2ThuTS7ez24Rr5R t08KIwf0o+OwNCOvXc+0bB0HR73UJoZ6R+iIezSMuWbwsI0IBmWbI8jUoTQUUTx8xQ97 CRAIpcVPTSz9UxkQD4oejH0crBEpGidHuqf9ZBRLq0vq3XzPJFO2o+F2fj/FtpolmEec 8hvusV+lkWrJF8DSWr2RC1SS2uUgDxSyxsKXZ26w/x1gS05eAyoWvZI7HUAy4izM/Ewe rYJ82XRoasM4F+4EhQd8yM0Jyfii9gMOrs/xrfrQ5EEjV33C7uTpVEjqg/VA5Dh9H6KM Dp8w== X-Gm-Message-State: AOAM532Ybc1kty0t55e0SIu/FP+x2VI5PF0P64HO9ojidMZyGuSbMSbR tNdmFIkk7DRPgoFXpazLUxEeS93QzmSOBgsMoqY= X-Google-Smtp-Source: ABdhPJxEXErs0GZk80IM7KklRS9WhZI+NtGH559W9aJyHTvahcbp3SmTMI9884DmT9eNtDEqZEZATGywY0rRynflB4M= X-Received: by 2002:a05:6638:10c4:: with SMTP id q4mr3212252jad.29.1622117944248; Thu, 27 May 2021 05:19:04 -0700 (PDT) MIME-Version: 1.0 References: <80fb5a8e-d770-49fd-45d5-ea6f4b004513@gmail.com> <2874cf7c-e55d-4100-bb01-af11a5ab6e87@www.fastmail.com> <93bee614-8bca-7e35-94a6-518beafac8ba@processus.org> In-Reply-To: <93bee614-8bca-7e35-94a6-518beafac8ba@processus.org> Date: Thu, 27 May 2021 14:18:53 +0200 Message-ID: To: Pierre Cc: Guilliam Xavier , Larry Garfield , php internals Content-Type: multipart/alternative; boundary="000000000000d9cd0305c34ec393" Subject: Re: [PHP-DEV] Consensus Gathering: is_initialized From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --000000000000d9cd0305c34ec393 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable czw., 27 maj 2021 o 13:29 Pierre napisa=C5=82(a)= : > Le 26/05/2021 =C3=A0 21:24, Micha=C5=82 Marcin Brzuchalski a =C3=A9crit : > > 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). > Please take no offense. I just think it's not that common. While I do work with many integration projects most of the time already could forget about writing my own stuff for this kind of thing where I have learned to rely on community-developed components which just speeds up development and just gets the things done. I think described cases are rarely needing such function especially if it's easy to write one using reflection. My personal preference is to reduce the amount of standard library shipped than add. Cheers, Micha=C5=82 Marcin Brzuchalski --000000000000d9cd0305c34ec393--