Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

File names convention: use camel case #88

Open
damithc opened this issue May 4, 2017 · 1 comment
Open

File names convention: use camel case #88

damithc opened this issue May 4, 2017 · 1 comment

Comments

@damithc
Copy link
Contributor

damithc commented May 4, 2017

The current convention is to use PascalCase for files and camelCase for folders.
After using that convention for a while, I realized may be it is better to use camelCase for both. The reason is some 'default' files expected by other conventions (e.g. index.html) has a better chance of not conflicting with camelCase. Furthermore, I think it is more common for people to use all lower case letters for file names when the name has only one word (too lazy to press Shift key? :-p)

@yamgent
Copy link
Contributor

yamgent commented May 11, 2017

The current convention is to use PascalCase for files and camelCase for folders.

I didn't realize that this is the current convention. :p

I agree that we should use camalCase for files. Right now our .md files, .xml files and .fxml files in addressbook have a mixture of PascalCase and camelCase, which is quite inconsistent.

The only exceptions I can think of right now would be:

  1. Java files where the filename has to match the class name.
  2. Standard expected filenames such as README.md.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants