Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123014 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 AACBD1A009C for ; Sun, 7 Apr 2024 14:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712499031; bh=gGZBB+LO2NSOtt/Ym8IxM3px5fYLGy6H8fLJ8zraJWU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=beVxAf1stoE6Dz6wji1GxZ3gSFIKlCerWeFLBNZYS0iuPlEE9odu3FVQQ0Lk8FBWi ornGJVSsNQYHj5wgTp+X7jFLvtvfpf2OAyeIlGpbjm//F0zg8bT12pNQmvM9Dg0c6A BieSpF/p1vXwgtIxcGIGHOMExpqjpaFmLIoU8KwHJtN49XqzsLDFuDEQp+bKDAyvsf BPTXgcN8zwRBHwYpWLDT/HTwCqx706IXJM5z9TaZUNDJw7WiPE/WJPOmSDOTsprf5D r74NGKEvowi7sqIPmeZ/YJdsotyS1WGLfANZRTb/SlfC30ZyqmCJMpJ6YuBMG1DVUf ZsY/qYtzBt8IQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4BB7F1801DD for ; Sun, 7 Apr 2024 14:10:29 +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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 7 Apr 2024 14:10:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1712498996; bh=rJHueSW7vrTkF0R0jopqdvyeGoSr8mmDIkyl15hVSCA=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=cFCDba6FPrZbKtwc7P/mg5XsrWE4XQ0aEy3PWIfkv4ReBx5j9wzXUBHPKx4gb97Cw oFAxuOADrkJMHIB8lkHBdRPWuATk7QL6MX1BemPP91XXH007kjvusAg17f3I0Fm954 X/S7Uzxg2GVMmjdqUqVK8GoYlBCVubGSsSlMwPQwp2TaPu9H13bcQeDynSIMnMW1ge sbEq3dw7jgyX/ZkR4K3ut0e+uSULyyh/pl77f9zn/qwrePzaG3kDJ2Mel9AuDxi5Ep YMZjwB7nz9zOJvq5k0/4rDNYySIm2viWPzeifn+EBqHPS8/3TtSPrMoJB5FI/hLZPJ OyMmMh0P/mc6A== Message-ID: Date: Sun, 7 Apr 2024 16:09:52 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names To: Juliette Reinders Folmer , internals@lists.php.net References: <792b2282-b7a3-40dd-899c-daab55353316@bastelstu.be> <69107662-eb03-4b75-8eed-59dd2eed6559@gmail.com> <66103C7A.3040906@adviesenzo.nl> <80ac7108-e016-4ae8-87ad-50afa0c2f257@bastelstu.be> <37f1b0c6-a7c8-41f3-bf2f-7dd466bb31c9@app.fastmail.com> <66106DDF.6050308@adviesenzo.nl> <2eb57476-1952-44f7-8408-762faa4f5971@bastelstu.be> <661222EE.3050303@adviesenzo.nl> Content-Language: en-US In-Reply-To: <661222EE.3050303@adviesenzo.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 4/7/24 06:37, Juliette Reinders Folmer wrote: > I forwarded your questions from above verbatim to Nicolas and this was > his response (also quoted verbatim): Thank you. > > So, this one is interesting. > > Sure, if you look at these extremes, stringing them back to back all > in a uppercase, they are not particularly user-friendly to read. > > Then again, none of these solutions are super user-friendly. We are > dealing with making the best of things. > > I have to say, it always gets my goat a little bit when people raise > “the extremes” in the context of accessibility. Somehow it always ends > up feeling like, to me at least, like a copout. > > Like, sure if you have someone who is blind, deaf, and paralyzed from > a stroke, making something accessible to them is going to be extremely > difficult. It doesn’t mean you shouldn’t make things accessible to > people who are blind, to people who are deaf, and to people who are > paralyzed from a stroke. > > This is a little bit like that. The solution I proposed earlier may > not work for everybody. But it will work for a majority. While I've called the examples “extreme” myself, I don't believe they are *uncommon*. Programming is full of various acronyms and it naturally follows that some identifiers will consist of consecutive acronyms or abbreviations. I've mentioned five of them in my previous email, but added some more to the RFC as part of Saki's namespace question (SSL + CRL + URL). Here are some more acronyms that are reasonable to appear within in a single identifier. Some of them might make sense to put in a namespace hierarchy which comes with the backslash as a separator, but this does not work for method names: ASN.1 + DER AES + GCM JWT + RSA HMAC + SHA-256 API + Anything probably SAML + SSO GPU + CUDA ARM + CPU Apologize the focus on cryptographic concepts, but these case to my mind most easily :-) Best regards Tim Düsterhus