More consistent naming #324
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha#324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It seems that right now, there are quite a few naming styles in use. In particular:
dash-separated,withoutseparator,underscore_separatedandcamelCasein different places.camelCaseseems the most used.camelCase, though some functions use ahypha_prefix, while a lot of them do not.UperCamelCaseconsistently, I think.It would be useful to make some choices here and write them down, so we can at least make sure that newly added code is consistent with that style (and maybe slowly convert older code too).
On argument against using
dash-separatedin e.g. CSS, is that PHP variables cannot use-, so using that makes a 1-on-1 correspondence between CSS classes and PHP variables impossible.