Naming Convention For Acronyms In Method Name (As Per PSRs)
41 views
Skip to first unread message
Daniyal Hamid
unread,
Oct 17, 2019, 1:57:11 PM10/17/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PHP Framework Interoperability Group
Hi Guys,
We were having a debate at work about the proper casing for acronyms in method names, but upon searching through PSR-1, 2 and 12, I couldn't find anything specific on the topic. What's the group's take on this?
Thanks!
Matthew Weier O'Phinney
unread,
Oct 17, 2019, 5:04:07 PM10/17/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
We were having a debate at work about the proper casing for acronyms in method names, but upon searching through PSR-1, 2 and 12, I couldn't find anything specific on the topic. What's the group's take on this?
I see it vary from project to project. Some will PascalCase the acronym, others will keep it all upper-case. I think that's a preference that individual projects should likely spell out for themselves, as it's deeply subjective.