Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107173 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83917 invoked from network); 16 Sep 2019 17:34:34 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 16 Sep 2019 17:34:34 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 7B8B72C1540 for ; Mon, 16 Sep 2019 08:11:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Mon, 16 Sep 2019 08:11:28 -0700 (PDT) Received: by mail-vs1-xe2b.google.com with SMTP id b11so23532030vsq.2 for ; Mon, 16 Sep 2019 08:11:28 -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=5XKo4GKDeCs3X7GnMYg6wRHIIo6wvGdoVXRSizOYLF4=; b=uvTlIwjnH3Q/eEBe6/FQdm/maTXcsFt/LyomwIbhwEL3nX2hxZFPbdWep3dsobK+pR ylmQIBLiJoIhebVvU5n218QkaSEjEYBry9Hut2awx1ORur7tl53iZ4TQXJPd8AujlzBA WIzLDmVYc96Z2M/g7kTl52W5arDITxTv5AeSD/MpLUUmo9IbEg4kc0l9Dmyl35fNhYzq exycdJUiqx1GBgTd3RcE3TvEYEGqagTr8UzAZGdSmkIMgDDcsre/t1pOd6A9/OqD6ULo e6ALH9NuP84bob+VKRGL02c7Dnk9keKK/nLeu62/QcRbvHUnsIO/4+vHf+oKuCbzaW6s lBEw== 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=5XKo4GKDeCs3X7GnMYg6wRHIIo6wvGdoVXRSizOYLF4=; b=WDJ2YoTQvKXRwuk2qmwq+KGVtkj4sYyNGS13klkj0ngLdljPu+y8IF+/h40uYA1UK6 G5BZ1bE6EQImRh1P6xruDheSiF9XCtiURekgDYB7cN2oQ0jnf3u2B/Z8AS8Ky21y2W1s kLAKtWDvzTp7ark0lBEMb7heusgKSbYA5oWE1zGCnb6Qx6QX91iq/hNqPLHigCUEHTLA 6ueSM/w1daUI4k1s/USrNb7SeeN9VxRrh1mJl9eWSPvWXZxtjlfTnlqFjs97dhnU6SwV qqEg1xMWw90wfaXnEQe7zpqaf+GdOm+mGa11jcHTpzaSuWNz/5F+ssIDmXx+X7jpfmwn 2gRg== X-Gm-Message-State: APjAAAU9VFmDtxpmBIgfeEyLLNw7ZbfarM5Wtxa2r8c0EeFemFFVXeRh 9V8Rf4SAFaoTcBcFNGRYYhVcXn8JD8kQPdoMNwE= X-Google-Smtp-Source: APXvYqzXAhDZ9QMuJKgO48MzCrefB9KKmsEulluJcwHcr0/X/13y2YQzEJmgHrusTD34e5TlYFP90RBpJ6MXaSXrQFg= X-Received: by 2002:a67:df88:: with SMTP id x8mr74031vsk.217.1568646687548; Mon, 16 Sep 2019 08:11:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 16 Sep 2019 11:11:15 -0400 Message-ID: To: Benjamin Eberlei Cc: Zeev Suraski , Olumide Samson , Mike Schinkel , PHP internals Content-Type: multipart/alternative; boundary="00000000000096e8160592ad0440" X-Envelope-From: Subject: Re: [PHP-DEV] PHP's declining(?) popularity From: chasepeeler@gmail.com (Chase Peeler) --00000000000096e8160592ad0440 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 16, 2019 at 10:12 AM Benjamin Eberlei wrote: > > > On Mon, Sep 16, 2019 at 3:47 PM Chase Peeler > wrote: > >> On Sun, Sep 15, 2019 at 8:14 AM Zeev Suraski wrote: >> >> > On Sun, Sep 15, 2019 at 1:15 PM Olumide Samson >> > wrote: >> > >> > > I also don't agree with the index and all its statistics >> > > >> > >> > I'm not sure what you mean by 'all its statistics'. Mostly everything >> on >> > the methodology page is fluff, which may be purposely there to hide th= e >> > only part that really matters: >> > ---------------- >> > >> > The ratings are calculated by counting hits of the most popular search >> > engines. The search query that is used is >> > >> > +" programming" >> > >> > --------------- >> > >> > It's a simplistic measure of an arbitrary search term in search engine= s >> - >> > nothing more. It's completely, 100.0% meaningless. >> > >> > >> > > , yet I'm not invalidating it as it is a much-viewed index globally. >> > > >> > >> > I am. It's quite remarkable that people are paying any level of >> attention >> > to it whatsoever, and indeed it's saddening. But the fact that many >> people >> > believe something doesn't make it true, if the evidence clearly sugges= t >> it >> > isn't. >> > >> > According to the index : >> > > "Till the end of 2009 everything went fine, but soon after that PHP >> was >> > > going downhill from 10% to 5% market share in 2 years=E2=80=99 time.= In 2014 >> it >> > > halved again to 2.5%. >> > > >> > >> > Trying to correlate the TIOBE index with anything that happened in the >> PHP >> > world is akin to trying to correlate the results of rand() with the >> weather >> > forecast. The two aren't related at all. Building any thesis on the >> > foundation of the TIOBE index is like trying to build a brick house on= a >> > muddy soil. Heck, like trying to build a brick house in the middle of >> the >> > ocean. There's nothing to build on. >> > >> > While it's extremely difficult to measure the popularity of languages, >> > RedMonk's slightly more relevant measurements (GitHub projects and Sta= ck >> > Overflow questions) suggest it's been doing well over the last decade = - >> > right up there in the top 5 with no meaningful decline. What Mike and >> > others pointed out are areas where we should consider investing if we >> want >> > to *increase* the popularity beyond what it already is (which is what >> > happened with Python). >> > >> > Zeev >> > >> >> While I think some excellent suggestions have been made on this thread, >> one >> thing that I feel Mike's sources show (and maybe it's confirmation bias) >> is >> that any decline in popularity that PHP might be experiencing (for the >> sake >> of argument, we'll pretend such a decline does exist) isn't because PHP >> isn't strict enough. It's because it doesn't do a lot of the things that >> languages like Python can do. If this is the case, we don't reverse the >> trend by making our language more syntactically or behaviorally like the >> other languages out there. We reverse it by supporting the features that >> are currently lacking, or, adding features that other languages don't >> have. >> >> First, you say it yourself, but the sources are biased, so i am not sure > any of your conclusions hold valid. But lets pretent they do, like you di= d. > > I was saying the index that was cited was wrong. I wasn't questioning the articles that Mike linked to. However, even if I was, it's not contradictory to claim that someone's facts are wrong, yet still address them as if they were not for the sake of the argument. > Yes PHP does a lot of things that languages like Python can do, for > example alwayse throwing an error when you access an undefined variable, > which is totally something that python does. > > Yes, but when someone is looking for a language to use, they aren't looking for the one that throws the most errors. I'm looking for one that provides me the features I need and is easy to use. Python seems to fit that bill for a lot of people now given the resources they provide for the beginners and the features they offer. While we might can argue about the benefits of throwing an error for an uninitialized variable, I would be willing to put money on the fact that very few people are picking the language because of that feature. If I'm looking for a language to teach someone, maybe I go with that. I think an argument could also be made that allowing them to focus on the logical thinking aspect of programming, rather than the small details of boilerplate code. > Newcomers do make a lot of simple mistakes in the beginning, so being > strict on enforcing variables exist is something that makes it easier for > newcomers. > I find unreadable code to be a big issue. Maybe we should require code be indented like python, and not allow the program to run if there is even a single extra white space anywhere. You know what else is great about PHP? You actually CAN configure it RIGHT NOW to throw an Error on an uninitialized variable. You don't actually have to force every other PHP developer to work in that type of environment in order to do so, either. > >> -- >> Chase Peeler >> chasepeeler@gmail.com >> > --=20 Chase Peeler chasepeeler@gmail.com --00000000000096e8160592ad0440--