Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122981 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 03C2E1A009C for ; Fri, 5 Apr 2024 19:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712344559; bh=VjOqe0ik80hIMEAsRDHrlmwzAPiV8rnZ/v6fpA6w2N4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=OvT38EQQF+k93Y0EJ9VWORS/Gvla0v/W0GYCEUO9/YaLE5pJ1olyAkwtqL2KIFgy4 si1iQNIy4GCWo0lFK3phT7LX8xOequtspWSsNXjjt7Y2w9cX5lEfC6rcMPN8qUj+vD KjBc6fWFNZRSqBQC0thNmetOG+XcLdB/dToFWJWt6OA4HvYOpEcGcFFEBItz1gbRLb DpNuZLN3AM4A7vT7K5z3a1XMmtCuKUxCmb0awVvQkYaN37enZo+2jeDZaBxRDs91Yk lEGNyQCvpbvIAFhAGGU2ectrV2HPcICS0Nghwkn6o2SLIgimikQJwGakuVJWEjYipx eI1lulF3CnWLQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A46F8180A21 for ; Fri, 5 Apr 2024 19:15:58 +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=1.7 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A,URI_DOTEDU 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 ; Fri, 5 Apr 2024 19:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1712344526; bh=QHeciewwn/qcVZbBWfMZmczN+pur8SCY6rJKbV8wKww=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=h9B29upSPXP+GzuLWqGg8JZ11Qock/hotyHEVzUG2QTp5CYu13A1/u0F/XlmPhyB3 MEtr8x6zU2hzRD8T1uDiWLJVOAuFTkciC9VKDHpY9ezGK6IZ4joRPIK2c075ZF39d6 7OV6uLr9fn6FFoyc/ZZOih/PScSf2ETP2Tbd8ojQGDkF6hGXTIsjSZD93wfaGLjyPh LqzAchR/Q+hNRyH9grsritMWUlOLhKlBPnPdY65LbwA1aD6CMyA8rJK/PrYUYW+8eC zEHLbmYGV0tQniNbn0F/9jJDwaGqWVavt5UqjDifP7cYO8gGD/4p4Pe+TeW96uA66U nDHd9p2wSPHhg== Message-ID: <80ac7108-e016-4ae8-87ad-50afa0c2f257@bastelstu.be> Date: Fri, 5 Apr 2024 21:15:25 +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> Content-Language: en-US In-Reply-To: <66103C7A.3040906@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/5/24 20:01, Juliette Reinders Folmer wrote: > In the "It decreases readability" section you make a sweeping statement > about accessibility, but don't back that up with research. Please back > your statement up as based on my understanding, the opposite is true. For context: This paragraph was added by Larry. It's my name on the RFC of course and I approved of the addition he made. Nevertheless Larry might've additional resources to add here. > Case in point: if written in all caps, screenreaders will spell the > characters out - think HTML -. If written in Mixed case, screenreaders > will try to pronounce the word, making acronyms and other abbreviations > very hard to understand for anyone using a screenreader. > > This is something which has repeatedly been pointed out, for instance at > conferences regarding conference acronym hashtags, like #DPC. > > So, I'd be very interested to see your statement backed up by actual > research and invite you to look into this a little deeper. Your remark looks at the accessibility from the PoV of a developer with impaired eyesight that is dependent on assistive technology. However accessibility also affects developers with regular vision. The concerns of these two groups might conflict. W3C's accessibility guidelines point out that: > Text in all capital letters is more difficult to read for most people, with and without disabilities. (https://w3c.github.io/low-vision-a11y-tf/requirements.html#capitalization) Harvards's Accessibility Guidelines agree: > Avoid using all caps. Readability is reduced with all caps because all words have a uniform rectangular shape, meaning readers can't identify words by their shape. (https://accessibility.huit.harvard.edu/design-readability) Of course program identifiers are not regular text and indeed more similar to hashtags, in that they do not permit the inclusion of whitespace to separate words. Underscores would work, but that would just add to the inconsistency. For Hashtags I found several resources pointing out to capitalize each word separately. For acronyms most resources pointed out that they should be avoided entirely (e.g. https://studentlife.mit.edu/das/accessibility/digital-accessibility/socialmedia, https://www.nyu.edu/life/information-technology/web-and-digital-publishing/digital-publishing/accessibility/how-to-guides/social-media.html#acronyms) and that recommendation is already part of the existing guidelines. I've tested with my Android phone with the 'performHttpRequest' example and both variants where read out equally terrible as 'per-form age tee tee pre-quest' (i.e. merging the p with the request). And your example of HTML was read out as 'age tee em el' (or rather the German pronounciation of the letters) for both HTML and Html. The lack of vowels might've helped with the result, though. The case of the boundary between two consecutive acronyms being unclear should affect developers with regular vision and impaired vision alike (i.e. PDOODBC and XSLRR). From my personal experience as a human with regular vision (not even glasses), the variant of treating acronyms as regular words is much easier to parse. Best regards Tim Düsterhus