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

Convert acronyms correctly. #7

Open
saquibmian opened this issue Jan 8, 2019 · 0 comments
Open

Convert acronyms correctly. #7

saquibmian opened this issue Jan 8, 2019 · 0 comments

Comments

@saquibmian
Copy link
Owner

saquibmian commented Jan 8, 2019

Currently acronyms are treated as a set of single-character parts. So URLOptions will be converted to [u, r, l, options]. This is basically never desirable.

Names should be split like so:

URLOptions[url, options]
URL[url]

Names should be formatted as such:

Style Output
camelCase urlOptions
PascalCase UrlOptions
snake_case url_options
kebab-case url-options
Train-Case Url-Options

Note that we should not entertain retaining whether something is an acronym (i.e., doing URLOptionsURL-Options) -- it becomes messy very fast, and a naming convention should be consistent. See this StackOverflow question for an example argument.

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

1 participant