Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125334 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 31CD91A00BD for ; Wed, 28 Aug 2024 07:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724831609; bh=5EsdbBdbze78yBXIWJW4qg3/DGHTIy61V63BdtWqnMA=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=JSILJP8BruKTuIJn7VrF3HHkwAFjjifrQu7Q9/aWap8MWcl9efJgqx/8Y8fexQW4W kNyLDO81tfcJ3qwpsil/SyBXQG3J6SCqJ0bGQJ0FCZPtUzuJlVKLrtFxluEjCNicSU sZ1rjbsf9msJxI62EPV+FoCGRBbC4bJScGrMKT4TdLcFRrtajHRB30tXa+Eu/uYqhS IELoerluvgjzLrNfcgDJRTmxiWdmskWYfqshSsQ4UZGFRr/AUGgmKjvi62K0khpbNO dX7eS8WYH7YDcIcqWAI5Om825LahMh8YuMIiXa6JA4GI4UZtFM9G6T3Fu3OkXWZ6iu kbGeuRcnYS3yg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AF0AA180034 for ; Wed, 28 Aug 2024 07:53:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: **** X-Spam-Status: No, score=4.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RCVD_IN_SBL_CSS,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 ; Wed, 28 Aug 2024 07:53:28 +0000 (UTC) Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-e16582cb9f9so272331276.0 for ; Wed, 28 Aug 2024 00:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coggenterprises-com.20230601.gappssmtp.com; s=20230601; t=1724831494; x=1725436294; darn=lists.php.net; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=4PVTVUTqMf9cb3KpuLv+T8R/9krd1Ra+8ap5AZsx9lA=; b=LiTgReswBUymVcqqh2qNJyn0oGcHeLEs8zZ3kRODscwNjtVGbLoEp4neYqs3soTbYY 647iO4Pw5xMBLvUoi0rCGfg4NSBSrF++CXxe3l2bBPka2tODosMb51RhHZ3ptluNQ6IO lXli6U1noLXoOX5VFVH1P9YdeqT5QjGcAn+1O18BlT/Pc98kRud1byBw395P6XoynJb6 58vqgKks9tCOn0db4p4ozfu6ijIAQlDCeesxYCUPowl8TDYqMftRpGgbHZqRv4MlXbm3 MIxaIJ/rxINHcmON9Ir5OivUAhI3LMKul2d4VJ3rS3lh/vQTzVk39kyVhObOhtnDoT++ 0oow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724831494; x=1725436294; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4PVTVUTqMf9cb3KpuLv+T8R/9krd1Ra+8ap5AZsx9lA=; b=XTG3O4c87POJx7hV0GoCEUNBoijFk/Z/5UQ9reDPUetS/IZag12r0gTZOcXAXBCP0N 2VB16y1v9CbxpLavLcATIVapSSOofRRV7b6MjQ/+AZR3BS5AESKgefXBQz7xMreq6ws3 a99wNuMfUFP1RBUkbEdmB6wl72fvD4IvPh/uYZIw0GkT9+NlhC5/SlkM7N14i04UWtqI tBJC7AOFQgm/BjCZPp85g7eNGXxjnvv6SFdVhXyXC6yCuxDa+Z84Sd1c+Hr+FEY/uIVw pW/VjlweTI6cGeUZGX1HDVR79dNr2LFeVn5S8tGyJdD37yZoxgNbUKg8E6yi+x8mNegy Rwvw== X-Forwarded-Encrypted: i=1; AJvYcCWTRFopKA1aGwiEZFOf5FCX5Y7oM1HUE+HKEYsjZxuwZVJGfsq8Ch9PKIQ4Zpty4qyiTVoXvDS1Dao=@lists.php.net X-Gm-Message-State: AOJu0YySYpNvLwfBl2a4QYQGXo2jAZRT5BDmGaaWnzINUfMv20bzeI6g CuYN+8r2Aix6RUOwx8oPkrWdSS1EEFtuzAIcU+aD8+WNFh69X71ImutZ90kaovQ= X-Google-Smtp-Source: AGHT+IGmpndpk1vwUBDGQrkLylYIDCcyPFmB2GRGgcHPbfSccm++Hu1gyvZkv40FlwecZLHp8qfYvw== X-Received: by 2002:a05:6902:2493:b0:e05:eccb:95f5 with SMTP id 3f1490d57ef6-e1a449283e6mr946975276.18.1724831493503; Wed, 28 Aug 2024 00:51:33 -0700 (PDT) Received: from Johns-MacBook-Pro-2.local ([207.213.210.67]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e178def4afasm2829675276.0.2024.08.28.00.51.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Aug 2024 00:51:32 -0700 (PDT) Date: Wed, 28 Aug 2024 03:51:31 -0400 To: Derick Rethans Cc: Bob Weinand , Jim Winstead , "=?utf-8?Q?internals=40lists.php.net?=" Message-ID: <6B084580-CEFA-45A3-8221-944B9502B745@getmailspring.com> In-Reply-To: <663bea3c-a8e7-4881-2bcb-971a96dea9cb@php.net> References: <663bea3c-a8e7-4881-2bcb-971a96dea9cb@php.net> Subject: Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-party Packages in PHP Documentation and Web Projects X-Mailer: Mailspring Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="66ced703_6b8b4567_13757" From: john@coggeshall.org (John Coggeshall) --66ced703_6b8b4567_13757 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline > And that is how you will find that the "new" languages will "win". If we > don't promote how modern PHP Development works, then there will be more > "PHP, a fractal of bad design" articles to come for decades. > > We *must* do better than this. It probably doesn't all need to be in the > documentation (doc-en), but it absolutely belongs on our website. > Hear Hear Derick!! I am not advocating that php.net put its finger on the scale in favor of Laravel over others with this comment, but why php.net does not have a documentation analog similar to how Laravel's documentation is set up is beyond me. Useful installation instructions, sections on "How do I do database stuff", "Security", "Filtering Data", "Installing third party packages" etc... there are too many people who have embedded in their brains that PHP is a badly designed language because we don't teach or even advertise to people how to write good PHP code... as others have mentioned as an example, the lack of even a mention of composer on php.net is mind-blowing. As Derick said, back 20+ years ago PHP had amazing documentation for the times -- miles ahead IMO than most open source projects. But the world has moved on, developers want and need higher level documentation that is more opinionated on not just the dry APIs available you might use to connect to a database (for example), but how to properly connect to a database. Back 20 years ago we had companies like Zend around who devoted considerable resources to filling that gap for the community (along with O'Reilly, etc.) but those entities are gone now and it is up to the project to pick up the slack. I also think it's a mistake to get too caught up with the concept of "endorsements" and people worrying that "oh gosh if php.net talks about Laravel and Zend Framework then that means something bad for XYZ framework" (pick your favoriate techs here). It's easily solved by having a section on "Popular PHP Frameworks" that explains the concept that PHP as a language doesn't embrace any particular framework, the importance that you do generally want to embrace a framework to do anything serious, and provide a list of popular ones that people commonly turn to when building their apps. As for using a framework or any other PHP-related tech in the project's codebases... I think we're grossly overestimating how much weight that decision would carry with the PHP community at large. Short of the PHP Project stating "X is the official framework of PHP" (and especially if we say "We don't have an official framework but here are good options that are very popular" instead), the concern over the appearance of endorsements at this point is really an invented issue rooted at least in part by historic concerns that simply don't exist anymore. Coogle --66ced703_6b8b4567_13757 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
And that is how you will find that the =22new=22= languages will =22win=22. If we
don't promote how modern PHP D= evelopment works, then there will be more
=22PHP, a fractal of = bad design=22 articles to come for decades.

We *must* do be= tter than this. It probably doesn't all need to be in the
docum= entation (doc-en), but it absolutely belongs on our website.


Hear Hear Derick=21=21

I am = not advocating that php.net=  put its finger on the scale in favor of Laravel over others wit= h this comment, but why php= .net does not have a documentation analog similar to how Laravel= 's documentation is set up is beyond me. Useful installation instructions= , sections on =22How do I do database stuff=22, =22Security=22, =22=46ilt= ering Data=22, =22Installing third party packages=22 etc... there are too= many people who have embedded in their brains that PHP is a badly design= ed language because we don't teach or even advertise to people how to wri= te good PHP code... as others have mentioned as an example, the lack of e= ven a mention of composer on php.net is mind-blowing.

As Derick said, back 20+= years ago PHP had amazing documentation for the times -- miles ahead IMO= than most open source projects. But the world has moved on, developers w= ant and need higher level documentation that is more opinionated on not j= ust the dry APIs available you might use to connect to a database (for ex= ample), but how to properly connect to a database. Back 20 years ago we h= ad companies like Zend around who devoted considerable resources to filli= ng that gap for the community (along with O'Reilly, etc.) but those entit= ies are gone now and it is up to the project to pick up the slack.
<= br>
I also think it's a mistake to get too caught up with the concept= of =22endorsements=22 and people worrying that =22oh gosh if php.net talks about Laravel and= Zend =46ramework then that means something bad for XYZ framework=22 (pic= k your favoriate techs here). It's easily solved by having a section on =22= Popular PHP =46rameworks=22 that explains the concept that PHP as a langu= age doesn't embrace any particular framework, the importance that you do = generally want to embrace a framework to do anything serious, and provide= a list of popular ones that people commonly turn to when building their = apps. As for using a framework or any other PHP-related tech in the proje= ct's codebases... I think we're grossly overestimating how much weight th= at decision would carry with the PHP community at large. Short of the PHP= Project stating =22X is the official framework of PHP=22 (and especially= if we say =22We don't have an official framework but here are good optio= ns that are very popular=22 instead), the concern over the appearance of = endorsements at this point is really an invented issue rooted at least in= part by historic concerns that simply don't exist anymore.

Coogle

--66ced703_6b8b4567_13757--