Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123683 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 5815D1A009C for ; Wed, 19 Jun 2024 16:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718813863; bh=0BGfvRl6afx52DPlfNO9P5iegS2/HKMs3zX6+gPkpUA=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=AGrN+8XEAUAf4UXGXddCgsbpJf/Erhfc/DlYbNmFfXINRoWsjRO36PLX0NV82lpeX FP6zfKTAaml3pnO3rWjqae2okGgYaB4brZBTimQxrheczyEY93qDDvxyo/vyREvCZX 80fwN3M64z/4MMve+E5OIhtqD+NnvWuGIRNvRgWUy0/jV3fMsCnRmTfliY5poNso4m tNmDvJBowg4MWB4/HwRwPW/vlgkdE0+bu7cO2G9XllLctVT8g0tBvoypiwAveJqfOq 9d7+s/ZFHWPrSMcbRrwf6Dowm49JNs4kL/ei1lokSCobrsgmpsJPE8aCAqF/nImzhj /sYVoJBkaCCwA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 23891180A1E for ; Wed, 19 Jun 2024 16:17:41 +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=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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, 19 Jun 2024 16:17:39 +0000 (UTC) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-62a2424ecb8so75661117b3.1 for ; Wed, 19 Jun 2024 09:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1718813785; x=1719418585; darn=lists.php.net; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=+uNoiDs2E3cGW16o1NO4RSMYUNQUB7lOVMYJaSi649Q=; b=v1JN4g/YQ5ibz7kHUOcIq3+hrNqi2bOxDWqDBSsbQM+9emaXvi8s18/qQBZFj1qZs8 BhzfKNwPmQdEj/NAl/92iyiv25Fg20QwjU91/Rfu1S4G3uMjGwSmin91PjAwT2d8/D6Q QkLPF32pZwwJkzLGXLGX7IDrWvhhsV18vf29H0k5tOh+rsXGn/PIkLp6NKWhuEW993KQ odGhAXqnWyb9jYpFzwUnsu1P1eCISsqEx2euSr6H25aAT4wFAMEp01ADg7z47YWSoRkv rZULCF6UdypUxeIPJcIkKCcMuyegU8DX7SnCfp8VGya9lABphzrpbrKYLRsRpkwxPyCI Q1DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718813785; x=1719418585; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+uNoiDs2E3cGW16o1NO4RSMYUNQUB7lOVMYJaSi649Q=; b=TvWT6GCfJaj2+dqAN/VNqsK1taJPZI8eIgZXc7005KRRLM/HdFIE8szpWAFDlKQ7QV mkBHv392eF9UrAf2v/OAfl3Gkdw7EDKXJYHx0L36FVvHLRuykbfbFIt96A2O+f+yALNp NWTGEcyHjiEuYDmYi3RjFhLrzwBs50bzZZmY7QLPXUydaptZvZall32fhTeQtt1xpPsn dXV/g4DObSFWHqXSzBCFiMBjDVbPyQFs9Xj492kWHmGHEOJTZ2SXv3faS4BUK/CSu9kk vU7D4QUR8cVls39/EZWKWjc0oi8FVvQzmxOMOJAEe8gZBUIxW8lKHdWZD5h4vAu2s2Q1 CThQ== X-Forwarded-Encrypted: i=1; AJvYcCWIw+TyUVvO10Tv4lzwr8YDfsmUdBIDlHT5yF5VscFmraj9E3UXk1Dsu8f93dmlPxKqLXv3duqmKX14LD5hYkL9FX+famGv2Q== X-Gm-Message-State: AOJu0YyTIY9GesZ3VRephiudhYtntxOKwWwg7KMAHpFq8fFc5akjXXnV KGHVQ74VRkWVjnwkfD0Pbk4yOb9R5TdncI0wn8G/9DGs0Xkirj9B1L3frG+cqo8= X-Google-Smtp-Source: AGHT+IGhiRTRA5u7dZWR7KWqt2BuT835ie2ErGsId2GzYc5AbLDrZhCXpi7Siev9aX2vDpswmjFawA== X-Received: by 2002:a05:690c:6ac8:b0:61a:b066:3525 with SMTP id 00721157ae682-63a8e6ae7c4mr39237307b3.23.1718813785028; Wed, 19 Jun 2024 09:16:25 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 00721157ae682-631183d7e64sm21812337b3.26.2024.06.19.09.16.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2024 09:16:24 -0700 (PDT) Message-ID: <1E3B4D83-3152-49E5-8FA6-CFCFD3833494@newclarity.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_77B381C5-53CE-42D2-9C88-832F24FBCCAC" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [PHP-DEV] Renaming "strict types" to "scalar type coercion" Date: Wed, 19 Jun 2024 12:16:22 -0400 In-Reply-To: Cc: Robert Landers , internals To: David Gebler References: X-Mailer: Apple Mail (2.3696.120.41.1.8) From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_77B381C5-53CE-42D2-9C88-832F24FBCCAC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jun 18, 2024, at 5:04 PM, David Gebler = wrote: >=20 > On Tue, 18 Jun 2024, 17:40 Robert Landers, > wrote: > Hello internals, >=20 > Many, many people start their files fairly religiously: >=20 > =20 > and I say "religiously" because from talking to people in real life, > reddit, workplaces, etc, very few php programmers actually know what > this does but do it nonetheless.=20 >=20 > I think there's almost certainly a degree of truth, not just in PHP = but programming in general, in the idea that there are many people who = will blindly follow a convention for no better reason they once heard = someone they considered more senior than themselves say the words "best = practice" There is a notable term for that: "Cargo Cult Programming": https://en.wikipedia.org/wiki/Cargo_cult_programming = #fwiw -Mike --Apple-Mail=_77B381C5-53CE-42D2-9C88-832F24FBCCAC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On = Jun 18, 2024, at 5:04 PM, David Gebler <davidgebler@gmail.com> wrote:

On Tue, 18 = Jun 2024, 17:40 Robert Landers, <landers.robert@gmail.com> wrote:
Hello = internals,

Many, many people start their = files fairly religiously:

<?php = declare(strict_types=3D1);

and I say = "religiously" because from talking to people in real life,
reddit, workplaces, etc, very few php programmers actually = know what
this does but do it nonetheless. 

I think there's almost = certainly a degree of truth, not just in PHP but programming in general, = in the idea that there are many people who will blindly follow a = convention for no better reason they once heard someone they considered = more senior than themselves say the words "best = practice"


There is a notable term for that: "Cargo Cult = Programming":

<= /blockquote>

#fwiw

-Mike


= --Apple-Mail=_77B381C5-53CE-42D2-9C88-832F24FBCCAC--