Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106741 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8748 invoked from network); 28 Aug 2019 18:04:53 -0000 Received: from unknown (HELO mail-pg1-f196.google.com) (209.85.215.196) by pb1.pair.com with SMTP; 28 Aug 2019 18:04:53 -0000 Received: by mail-pg1-f196.google.com with SMTP id i18so1652863pgl.11 for ; Wed, 28 Aug 2019 08:37:03 -0700 (PDT) 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=FKY9a+NipTj15CdI7Qs9wsRs2q52AjE7EWFl1EFXWiE=; b=QeGZSQ9AEY55WcE95rPHw93VKiv9fMjvg+IOKwZkvthdlyL6krq8+oyZ3RtYy0AMOc P3/RznfPuZerdsQDPK7l8fCTz2QyF5ww9+mAfuQYOIhD0904j84ZBdq3+at2LfyBleEe ku8Jr3hykpSFDnFquqBgT1oteFvQvFuxBQPcbKDLGEesmL7WkLsgCV3OYWwkkSmpFuj5 i0keY4JSPwMzCxNgkiJimzcwAtZuDuNO6HXSD716O1ND9qNfctPGTCg2lJjffA0iz1hp oJtHTvEP93x3zyArv7ddnP3Cbb0GOV36nga/FujTdmAGULYWsrbqjqhCPMVO3dNU93yc 08aA== X-Gm-Message-State: APjAAAV4PmkCbRMPOFblTDgyIzTb6MSzSzuviZYob4MKhQyQ8Ew4Y8AQ pYrMhp2ga0Sxpok7LcJJtaWcV0l1jB33rKMEBMQ= X-Google-Smtp-Source: APXvYqz8uhBdqTMx9PLRm/iVPa01RWwFL7ncnmWWfWu+COMMhrEmM6an26J8XNOAz2MVHBK63Z0BbDFGU8oK1iEXP9Q= X-Received: by 2002:a63:1310:: with SMTP id i16mr3941892pgl.187.1567006623249; Wed, 28 Aug 2019 08:37:03 -0700 (PDT) MIME-Version: 1.0 References: <7ddbae5c-7451-4094-8b32-19676128054b@thelounge.net> In-Reply-To: Date: Wed, 28 Aug 2019 18:36:51 +0300 Message-ID: To: Chase Peeler Cc: Marco Pivetta , Gert , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: kalle@php.net (Kalle Sommer Nielsen) Hi Den ons. 28. aug. 2019 kl. 17.54 skrev Chase Peeler : > You going to come and fix the issues? It's an internal application and > most of those messages are coming from legacy areas of the code which are > mainly "it works, so leave it alone" things. Instead of going back and > spending time trying to fix those boondoggles, we invest the time of our > developers (there are 2 others besides myself) into building new features > that help our business grow. Time permitting, we try and update some of the > legacy areas, but, we usually find it's a better investment to just rebuild > them at that point. > > Bottom line is that we live with the not-so-good stuff so that we can focus > on adding new great stuff. The not-so-good stuff isn't holding us back, and > trying to fix things like undeclared variables would have absolutely ZERO > positive effect on our business, which uses this application every day. If > I went to our executive team and said "Can we delay that new scheduling > system that will really help our business so I can go back and update code > to get rid of these undeclared variable notices?" I'd get laughed at! > > Like I've said before - can we please stop pretending we understand > everyone else's situation? Maybe my situation is unique. My gut tells me it > might be unique among people on this list, but, that it's actually pretty > common among the myriad of developers out there which never get involved in > these discussions. I'm sorry, but like Mark Randall has already pointed out then this is a classic example of technical depth. At one point you must choose, "Do I want to upgrade to the latest version of PHP or do I want to fix the issues which is caused by the technical depth in my stack?". I get it, writing new code is always more fun, it really is, I have previously worked with companies with that same attitude that "we'll fix it later", but at one point that becomes such a burden and if your management doesn't believe in putting in resources to actual maintenance of your infrastructure, then I'm sorry but it does not sound like a healthy place to be (no offense meant). Right now your argument is merely trying to hold back changes which will bite that technical depth of yours, and everytime an argument has been raised towards your concerns it has been met with "Will you come and fix it?", "I demand that X, Y or Z tool is available for me to use", etc., so again, I'm sorry but I'm not buying this argument. Some things we can solve by an opt-in, like the strict_types declare, however other things so fundamental to the language should not have any options to alter its behavior, that should be consistent. We have spend a long time trying to carve a migration path and advocate against options which changes language behavior across installations. If we continue down this path, then its just a runtime version of php.ini with a million declare statements on top of each file, each having multiple meanings and an added complexity to maintain the code, not a burden I think userland developers need as it is. -- regards, Kalle Sommer Nielsen kalle@php.net