Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camelCase or PascalCase #5

Open
benhickson opened this issue Sep 23, 2021 · 3 comments
Open

camelCase or PascalCase #5

benhickson opened this issue Sep 23, 2021 · 3 comments

Comments

@benhickson
Copy link

The docs recommend using camelCase

hygen-create currently works best if you provide a CamelCased string to the usename command.

but isn't this actually PascalCase?

Which is recommended?

@ronp001
Copy link
Owner

ronp001 commented Sep 24, 2021

According to Wikipedia (https://en.wikipedia.org/wiki/Camel_case):

Camel case is often used as a naming convention in computer programming, but is an ambiguous definition due to the optional capitalization of the first letter. Some programming styles prefer camel case with the first letter capitalised, others not.[1][2][3] For clarity, this article calls the two alternatives upper camel case (initial uppercase letter, also known as Initial Capitals, Initial Caps, InitCaps or Pascal case) and lower camel case (initial lowercase letter, also known as dromedary case). Some people and organizations, notably Microsoft,[2] use the term camel case only for lower camel case.

@benhickson
Copy link
Author

Cool, thanks for the context @ronp001

So which is recommended for hygen-create? First letter capitalized?

@ronp001
Copy link
Owner

ronp001 commented Sep 26, 2021

Yes.

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

No branches or pull requests

2 participants