Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122344 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42117 invoked from network); 8 Feb 2024 10:37:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Feb 2024 10:37:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1707388719; bh=6UaqKTZ+vKbnvEqWHNz551KBqnkLt1b2wHxdh6fTU9c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DQKH2bv8IQGhr1iHwZtvTeCE8biUgKUvmxbBAlxZXCCUBROpnaN7Opx61cLC+qUaT vzWqp3S61+qP3AbKant4D4HRtkZmC0J9BSTvGmuT+sPmTvzrOPTHdimhItvzqOJ4L7 L1H33z/uMkd44UCI61HXvijV/ZWq5rmb0likrFwCD1Dvr7kYWfVxJDJwIP9CBpNeeI aI9q5w6gQQW0GAl9PqvIwsY+shvnmWyyV42k5jNW32VbFvbswEdd2f71FGHUnbpDME Oq/9OJdhWlveZuVJK4MuMrGRR/VJmCVFJtH/cefbaEqqUnt0KXw+UhtZhinJtHRcKh QROLrKIEeHfsw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E384118005B for ; Thu, 8 Feb 2024 02:38:38 -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.6 required=5.0 tests=BAYES_00,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) (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 02:38:38 -0800 (PST) Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-363c9e3f814so4700295ab.0 for ; Thu, 08 Feb 2024 02:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707388664; x=1707993464; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6UaqKTZ+vKbnvEqWHNz551KBqnkLt1b2wHxdh6fTU9c=; b=OYluC6UJQzIx4G8MVwK8Zxvt6QoWgVK/6Ur6nd2Nte+LSweHmx+VDj6GoTzDbyZF0D f91c5ZMVM4qAL/SGWzH4GpUchhgqU/tOaH86PPhs7t6K3aZKzKsbX/ePaf/+OskTlsON uarDbPnJIXG+Ei/dL3lk/H4kJwnc3tljbbFJNBxkh/44qxRXRv0EEFHH+2H3eK/7CAt+ LZYkRuIIQX2uYsMYRKVxKRRSQtVR101WhPdqyx0AthEjNhpRcTH6KAVbo3nbA3MsCmv/ bgJADG9iTvY2zLbGVqIdyIB/e+sCh/HAY8124AHqm4woafu/KbwcuseOZ3vJseKn8uFQ T5bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707388664; x=1707993464; h=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=6UaqKTZ+vKbnvEqWHNz551KBqnkLt1b2wHxdh6fTU9c=; b=fxfVRwU/wOLzR7ufvWFqz+stjbgOPwsrY2bc+uYECGRYdLS3sVEq7EUe4i58sSDKv1 HmGBRnH19k+fuTUn78GdC212P+J9ec+qCN31bIO/sQxbCxG5tWHU2XmmyE36iYkg3iEz G3YWsDmzO4e1ytAO6ZPiLBDoRwa7Hc+L0eCbmdeQa+ck5kh4QZMcN2mdFNOidPbTp+xE UwYPF64OfDx1td+5Aqo9ZMJbgDJNwY8StUfltE/89V5eDrPfcbhvznL6xNmRLvsQ1WUw /bUVe1OqLbTtyIZ33G3Lqg8ZY/DVfNYMzdzER1t1Ka5nzchNx6zigc35keaZBpXNQRTY QvJA== X-Forwarded-Encrypted: i=1; AJvYcCWkiDhEnoCNMe9DiHZvImiMy1IXZWpALkl9uDjYc97qlJmn+qaxeze2SIloiYtzBQa91NLEWq8ThIVTI8q63MMgHI4eOjHGKg== X-Gm-Message-State: AOJu0YwPkX1MFcHPiFvbLUW0K9MHqrox+IFIOg0MmYxm9lETzwOc19Wb t9VR+l4WYfkpgtoCqIGYkrLutzAe2JuoGKsqhRInXw7Ycc5nsi/LFLR3HivSG80ayIQ6m3Td3bl 8/smwJwS3CyAyXRZgJW1Q8F9/+EI= X-Google-Smtp-Source: AGHT+IHUX2c7r/VJ1MrOFb1euTTIKhkVuuwQ7yExXXtnJRW3T6eO+4bnX6olwCOsxlZjgZtCOcW00x6380ZNaA6bOmk= X-Received: by 2002:a92:db12:0:b0:363:cb3e:d822 with SMTP id b18-20020a92db12000000b00363cb3ed822mr8700703iln.27.1707388664423; Thu, 08 Feb 2024 02:37:44 -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 12:37:33 +0200 Message-ID: To: Alexander Pravdin Cc: =?UTF-8?B?0JPRgNC40LPQvtGA0LjQuSBTZW5pb3IgUEhQIC8g0KDQsNC30YDQsNCx0L7RgtGH0LjQuiBXZWI=?= <6562680@gmail.com>, PHP internals Content-Type: multipart/alternative; boundary="000000000000d629530610dc6684" Subject: Re: [PHP-DEV] Feature request: https://github.com/php/php-src/issues/13301 From: arvids.godjuks@gmail.com (Arvids Godjuks) --000000000000d629530610dc6684 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 8, 2024, 12:12 Alexander Pravdin wrote= : > On Thu, Feb 8, 2024 at 6:25=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: > > > > PHPStan is out the case. > > > > May I know why is it out? > > I'm actively using it in my projects and it helps me a lot to not > relax and write safe code. It also helps a lot in cleaning up legacy > code. Sometimes I find places in the legacy code where the logic is > too hard to understand in a reasonable amount of time, but they're > rare. These places can be enveloped with additional logging with no > problem. > > I'm referring to your initial use case about collecting errors and I'm > suggesting a good tool to solve it. You may start from lower assertion > levels in PHPStan and gradually increase the level to be not ruined by > tons of errors at a time. Of course, I don't know your situation. But > what I do in such cases - is explain to the business the problem and > what steps are required to improve the situation. So the business is > aware of it, the business should not have false impressions about the > code and false expectations from me. Just prefer to be open and tell > the truth. Not prefer to be a yes-man and promise speedy magic > solutions. I'm a professional developer and if I'm asked to do some > crappy coding regularly, I would prefer to leave such a job. My > selling point is to produce high-quality well-architected code. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php If I understood references correctly, it's actually simple - they work at an outsourcing company of some sorts that has a project conveyor - 13 projects in paralel was mentioned. And clients refuse to pay to do things right or do upkeep/maintenance on their assets and so on. That's why it's easier to ask for a feature here than do the work themselves on the applications they are supporting. Nobody cares except the developers who have to deal with it and are being told to fix it somehow or get fired. --000000000000d629530610dc6684--