Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107096 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39425 invoked from network); 15 Sep 2019 05:56:25 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 15 Sep 2019 05:56:25 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id C7D632CF95D for ; Sat, 14 Sep 2019 20:32:56 -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-yw1-xc34.google.com (mail-yw1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) (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 ; Sat, 14 Sep 2019 20:32:53 -0700 (PDT) Received: by mail-yw1-xc34.google.com with SMTP id n11so11784267ywn.6 for ; Sat, 14 Sep 2019 20:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:cc:to; bh=HS7U8FNkY6Dw1qPSraJ+yt/exIPFU8edhHZgUOn+jZk=; b=lclWew2Ig8B+LYKNMoIYTlba+7d1IDx02EL3LxWljU8OdsSKHLmZCmkogjgeKzwouJ Kliw4Qlf6YSN8MAeQzkE4xePf2n3owS/rC1S/eFHoZqDPo4XNlnByea7TGDn3QyPo5XO tNPeROCfGCmIPqgA5nMUjvf7Ztk9hDzIQy4UKX7qljkiO+DGsI/gh2h3ah13QgojRIWo T8bLhCf8OzPpIgA666Pi5iG66z5Vijj67p+ejhcpyU4wZmAyk21oO6JR5tnMFYiieJ2r XQWKshZcYXZqOY8gPxoLWa+b0weUiLYKvzzK1o+BXpIvvgOFwYEsMSOcT1gjBTbkjxJF 7buA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:cc:to; bh=HS7U8FNkY6Dw1qPSraJ+yt/exIPFU8edhHZgUOn+jZk=; b=LxVDgc0/GpxNDZY64h62E/KtTTUBGv7oCb5hinZXqY1jIkdIstPFzxvn475hNtEfX4 hysK0oo3lCM6obS4oEFA3gk/OFjaNy/iet2tUz5nXq+ApR5mljssb0MsA1pOZcGXcS83 Ma3EFBXijWoNeCKWJyoV2a7g9MFx1Kwkvc53ukpM1tva9Ny8eujYXxQFfEsuXULbuVS7 KTBPacsvSW+62oA9jNftFF6bzA20rQyomleIGG7SwlDq83jZ0kJtw86S2wbsf52ZRQP/ ni0NQE+MSy7LpsvuQjqNou4uXcHkQudHx+8JA5u0g/YjboanEBenY+LtFl4j14O/7ZzL +k2Q== X-Gm-Message-State: APjAAAVHwJIZFEAMM+0+cnPOb1CqOovq85Uo1UIWEWV3CNRoNfSnt2cI wfEkbzUu2jtwmGgFFGk5HBU= X-Google-Smtp-Source: APXvYqwhs3pzDuZF4tU/r9zLLOn6Ha6z50OieM3JfPK2up+v7maiMh4NBrNH0QpBqnrPES+hYNr8QQ== X-Received: by 2002:a81:4e8d:: with SMTP id c135mr40753196ywb.149.1568518372718; Sat, 14 Sep 2019 20:32:52 -0700 (PDT) Received: from ?IPv6:2601:c0:c67f:e34e:3df7:cf85:c58b:e5f6? ([2601:c0:c67f:e34e:3df7:cf85:c58b:e5f6]) by smtp.gmail.com with ESMTPSA id k1sm7000226ywg.49.2019.09.14.20.32.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Sep 2019 20:32:52 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_46EAA572-B155-4860-9F20-DF72B9D793C5" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-ID: Date: Sat, 14 Sep 2019 23:32:51 -0400 Cc: PHP internals To: Olumide Samson X-Mailer: Apple Mail (2.3445.104.11) X-Envelope-From: Subject: PHP's declining(?) popularity From: mikeschinkel@gmail.com (Mike Schinkel) --Apple-Mail=_46EAA572-B155-4860-9F20-DF72B9D793C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Sep 14, 2019, at 5:18 PM, Olumide Samson = wrote: >=20 > https://jaxenter.com/php-tiobe-sept-2019-162096.html > I think this is one of those things we get from voting no... >=20 > I might be wrong anyways :-? If those specific rankings are legitimately a cause for concern then it = would make sense to do some objective analysis to determine why the = languages that are growing marketshare are growing.=20 =46rom the list it seems Python stands out as having the most growth as = a percentage. Googling for "why has python become so popular" I get these articles. =20= I have copied their top level points but also included the text for the = one point they all seem to have in common, that Python is simple, easy = to use and easy to learn for new users (emphasis mine in all cases): = https://medium.com/@trungluongquang/why-python-is-popular-despite-being-su= per-slow-83a8320412a9 = 1. End-users just don=E2=80=99t care (about slower performance) 2. More Productive "First and foremost reason why Python is much popular because it is = highly productive as compared to other programming languages like C++ = and Java. It is much more concise and expressive language and requires = less time, effort, and lines of code to perform the same operations. The = Python features like one-liners and dynamic type system allow developers = to write very fewer lines of code for tasks that require more lines of = code in other languages. This makes Python very easy-to-learn = programming language even for beginners and newbies. For instance, = Python programs are slower than Java, but they also take very less time = to develop, as Python codes are 3 to 5 times shorter than Java codes. = Python is also very famous for its simple programming syntax, code = readability and English-like commands that make coding in Python lot = easier and efficient." 3. Execution Speed does not matter as much as Business Speed = https://www.kdnuggets.com/2017/07/6-reasons-python-suddenly-super-popular.= html = 1. Python Has a Healthy, Active and Supportive Community 2. Python Has Some Great Corporate Sponsors 3. Python Has Big Data 4. Python Has Amazing Libraries 5. Python Is Reliable and Efficient 6. Python Is Accessible "For newcomers and beginners, Python is incredibly easy to learn and = use. In fact, it=E2=80=99s one of the most accessible programming = languages available. Part of the reason is the simplified syntax with an = emphasis on natural language. But it=E2=80=99s also because you can = write Python code and execute it much faster." = https://www.techrepublic.com/article/why-python-is-so-popular-with-develop= ers-3-reasons-the-language-has-exploded/ = 1. Ease of learning "Python is the closest language to what I call 'an instant gratification = language,' meaning with very little code, it can accomplish so much, = even if you are a novice programmer," said Karen Panetta, an IEEE Fellow = and Dean of Graduate Engineering at Tufts University. "This is because = Python reads like English, which makes it more conducive for a broad = level of user audiences to learn. Many of the 'nerdy' low-level details = we used to worry about in other languages, such as declaring types of = variables or arguments, are handled by Python, so it makes programming = very flexible and easier to use than other languages." 2. The explosion of AI, machine learning, and data science in the = enterprise 3. A large developer community = https://www.skillsoft.com/blog/2018/06/top-5-reasons-why-python-is-so-popu= lar/ = 1. Python is efficient 2. Python has an active community 3. Python is simple "With a shorter learning curve than other languages, say Java or C++, = and understandable and readable syntax, you don=E2=80=99t need to be a = programmer to start applying Python to everyday tasks. Python = automatically takes care of things like garbage collection and even = closes files, opened via the =E2=80=98with=E2=80=99 statement, for you. = People starting out may also find the use of indentation to signify the = start and end of loops, functions, classes and code blocks easier than = tracking down the traditional opening and closing curly braces." 4. Python is in academia 5. Python is on trend = https://eplexity.com/6-reasons-the-python-programming-language-is-so-popul= ar/ = 1. Ease of use "Since its creation in the late 1980s by Guido van Rossum, Python has = been specifically designed to be a general-purpose language. The = simplicity of Python, and its easily human-readable syntax are two = reasons why the language is so popular among seasoned coding = professionals and Computer Science 101 students alike. Python is also an = interpreted language, which means that you can quickly experiment with = changes to the code base." 2. Supportive community 3. Corporate sponsors 4. Libraries and frameworks 5. Use in big data and machine learning 6. Efficiency Notice in none of these articles is there any mention of static typing = or strictness or correctness as an attribute that the authors think = contributes to why Python is gaining success. =20 So my takeaway would be that if we wanted to see PHP start gaining = marketshare again we should focus on features that make it easier to use = and spend less time on trying to raise the bar for the skill level it = will take to program in PHP8. #jmtcw -Mike P.S. Other ways to grow market share could be to: 1. Strive to support data science in a major way 2. Run on Single Board Computers like Raspberry Pi 3. Run a CLI via a single executable (i.e. package PHP runtime and PHAR = files together so PHP scripts could be distributed without requiring a = correctly installed version of PHP) 4. Empower developers to create cross-platform desktop, also contained = with a single executable 5. Empower developers to create cross-platform mobile apps 6. Pursue corporate sponsors (too bad the Facebook ship already sailed.) 7. Find ways to get PHP taught in academia 8. Put more effort into driving adoption for PSRs like 6,7, 11, 14, 15, = 16, 18 and in identifying and releasing more. 9. Strive to make PHP the best solution for AWS Lamba and other = serverless solutions 10. Embrace all of userland PHP by giving them a voice in the direction = of PHP, instead of limiting that voice to only those currently with a = vote via phpinternals. Of course just because I included it in the list above does not mean the = PHP team needs to pursue (any of) them. I am just pointing out areas = where I think PHP could see some growth if PHP pursued it. Also, any of the above would require the PHP internals community to join = together for the common-good rather than taking no-comprised positions = that each seek one person's view of PHP perfection while blocking = everything else.=20 IMO anyway. --Apple-Mail=_46EAA572-B155-4860-9F20-DF72B9D793C5--