Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122341 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33554 invoked from network); 8 Feb 2024 08:37:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Feb 2024 08:37:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1707381517; bh=zSu8uq/3FPNojh7+7QRTiGNoBw9H+0Z38Gfo+qljD/8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hz8veUMVHbt1UheIqNzrVSFM62dFkDQrIwIk/LzKK66H+R8Tc/UyTyitNQVkswpJA q0EQkzR0Rh9aNpc7+Iv8cu8Uekic/ThjPPjAXsodUiWQawGbJrJ8D7mkKKJ+zQh2hK Vknd0JK/h+FDmvZRJ1Y1x9nTaTspx/uX0uSPuHyx0BpBBHnah0SCDgVSHUBSDwZcc3 IMLGNFgWgP8GA799DnwyfRsD8YjT56jekAQ3mvgp2OuD6z9hr9i4K7lEfIQ8rmpCWi pEIXvL3Ya6G1ss7odw/+bX/BS7Q+0dbzEpbjgI8hYsROJNT/spKBUEBASbUOxdPFi6 jHzwxgv8KDuQA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6DF9418005B for ; Thu, 8 Feb 2024 00:38:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (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 ; Thu, 8 Feb 2024 00:38:35 -0800 (PST) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-604a20f86f9so7513467b3.1 for ; Thu, 08 Feb 2024 00:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interi-co.20230601.gappssmtp.com; s=20230601; t=1707381462; x=1707986262; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zSu8uq/3FPNojh7+7QRTiGNoBw9H+0Z38Gfo+qljD/8=; b=BOax3TU0jgjZZVYpnD38TWFK3T61P+x9YbbPYRont8ABTaqUTPS72SjHR6aSpqOfHv 0BAPwJWoVHGFSB8J6o2sqhziBkQumwV0ngOwXuHyPZIhFB6anlKmHGF9ZBOxb37NOu+N I/igtRImhhCLy6EXZLTEpmvW0b96XwcV/Mm72XkEz8rcwfLaxmhMeGrUhJPAsB294vdl 6gSClTIo41IXWE6dkXm3Wc+JO3clNINVatvELZX0BLRhhLCYGFemnnkD1Ii//whWMlta N0xgI6khxCApwBTrcB6ep8YyzwfiyWeu55WB3MmnqBZSb3h88dpz/Omsid6AB/EKCdHi NVeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707381462; x=1707986262; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zSu8uq/3FPNojh7+7QRTiGNoBw9H+0Z38Gfo+qljD/8=; b=jXuNTnEAa65BIJ9+7LM0cBs6K2W9CCS4otEintxc1Kg06eW0szIdc4JZWt/plvxrFc FY/L9eMlYzZAVIEH+tBd0Q6PUEpnjIhrtoDYTflJrp6LKYyhEW+OWESErYUG5EKirL72 gXsOOPS/lfiyaHlkROM3mYRXrUr7wS+j9ylNetbMlxS3dAcV7VKiPtGU2mXneH37x9PG b061+34K/PYVkeiTTs3s2wjKCJ5oGrYzQhOqBIJvbQMaDhEWLkkMJm5yXv1EtS5M0Jls OSCbv5TzfiUdEgaiOHRhBzF3bkNmf4gxB0cyEwxaUmaNQZEX7q3abbVIc7JM89Vn64hf Ionw== X-Gm-Message-State: AOJu0Yw2rAdQSOKr7pu3jO8WgVtmC7QV7DtrSY02SCVQGckseUaVJNbf 5Tj9Pde5AaT2AdwMY3NF5T7YxeacklNP09/oXWooaSVl3PLt6BaivaQwf14FyCFJcuZGMOlPTBF 5iUxObcTSxBe5nLxLnmJ+judrlZdEo6L3f/pEZQ== X-Google-Smtp-Source: AGHT+IGlPkmc9J8d9LyeE828b5XTFUj3O5Z+csuNy0skkCUImTHJNvAdCXzCVMg3No1fZp8vtGaAsdvmBFWz6UJEAIY= X-Received: by 2002:a0d:e6d0:0:b0:604:9729:6b49 with SMTP id p199-20020a0de6d0000000b0060497296b49mr3617138ywe.5.1707381461712; Thu, 08 Feb 2024 00:37:41 -0800 (PST) MIME-Version: 1.0 References: <742f202d-7990-4f51-b903-7a15e3fd33c2@app.fastmail.com> <1cd8fa7b-ab62-4563-bf13-bb7801f1ce8d@app.fastmail.com> In-Reply-To: Date: Thu, 8 Feb 2024 17:37:24 +0900 Message-ID: To: =?UTF-8?B?0JPRgNC40LPQvtGA0LjQuSBTZW5pb3IgUEhQIC8g0KDQsNC30YDQsNCx0L7RgtGH0LjQuiBXZWI=?= <6562680@gmail.com> Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Feature request: https://github.com/php/php-src/issues/13301 From: alex.pravdin@interi.co (Alexander Pravdin) On Thu, Feb 8, 2024 at 4:02=E2=80=AFPM =D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80= =D0=B8=D0=B9 Senior PHP / =D0=A0=D0=B0=D0=B7=D1=80=D0=B0=D0=B1=D0=BE=D1=82= =D1=87=D0=B8=D0=BA Web <6562680@gmail.com> wrote: > > JIT I've had this solved, not only the application, but a way to. > > Am sharing my experience without labels "bad", "cood", "truth" or "correc= t", like you did. > > Your arguments are based on your principles and I don't see in your words= any point to discuss, so - use pm or share here secret of error-free code,= if you have ideas how to solve "my" application if "you know what is the c= orrect design". > > I think the people who use labels usually never share their experience. I already shared my experience - to use PHPStan with the highest level of assertion to catch a lot of errors, warnings, and possible issues in the code and fix them before the code even runs on a server. Did you read my message? Did you try PHPStan? If you tried, what was the result? Please share it. When you say SOLID prevents from solving business needs quickly, you should know that business always needs everything yesterday. The problem is not in SOLID or PHP language. The problem is in a bad design/architecture that led to a lot of errors and warnings in unpredictable places that require super custom collection of them on EVERY request. Properly designed applications do not require language-level changes to fulfill business requirements and monitor edge cases. If you have a super legacy code, why the language should care about it? Is it the purpose of the language? Just drop this legacy code if it requires custom error and warning collection. Explain to the business that the code state is so weird that it requires a lot of time to refactor or to reimplement it from scratch. This is a very common problem of legacy rubbish code and it is not specific to the PHP language. Switching the discussion to a flame with personal offense is not a good style here, please don't do this.