Format Source Code
Right now all the source code in Kabikaboo is mostly lowercase and full of underscores.
This is difficult to type and read.
I propose CapsLikeThis for object/function names.
Easy to type.
Blueprint information
- Status:
- Not started
- Approver:
- aidave
- Priority:
- High
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Discussion
- Series goal:
- None
- Implementation:
- Not started
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
The use of camelCase is very convenient, to say the least. I say we go for it, although it should be decided immediately such mundane details as: how are acronyms capitalized and how is the first letter capitalized?
My personal preference is variableNameDb, for example: no first letter cap and only the first letter of an acronym capp'd. It doesn't really matter what we pick, so long as everyone does it consistently so we don't have variablename, variable_name, variableName, VariableName, VARIABLEname, variableNAME, etc all in the same file. ~Cody
Dave:
While I prefer to read CamelCase, i like to type camelCase. Hitting shift on my laptop requires alot of accuracy... I'm writing a big project in PHP using camelCase right now, and it looks kinda ugly. I wonder if we can make a regex or something that does this for us...