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

Inconsistent variable name Url #817

Closed
EthanThatOneKid opened this issue Mar 20, 2023 · 6 comments · Fixed by #866
Closed

Inconsistent variable name Url #817

EthanThatOneKid opened this issue Mar 20, 2023 · 6 comments · Fixed by #866
Labels
bug Something isn't working charmander gfi miscellaneous — csuf students only

Comments

@EthanThatOneKid
Copy link
Owner

EthanThatOneKid commented Mar 20, 2023

What happened?

It can be tricky deciding which way to capitalize a variable name. Let's make it not so tricky by deciding that from this point, all camel case variable names containing acronyms should always be fully capitalized unless it is the first segment of the camel case variable name.

For example:

OK NOT OK
getURL getUrl
urlFrom UrlFrom

Related:

@EthanThatOneKid EthanThatOneKid added bug Something isn't working charmander gfi miscellaneous — csuf students only labels Mar 20, 2023
@EthanThatOneKid
Copy link
Owner Author

Note: JsonUrl should be renamed to something more accurate, such as PageDataURL.

@Louiza02
Copy link
Contributor

Hi,
I would be happy to fix this

@EthanThatOneKid
Copy link
Owner Author

Hi,
I would be happy to fix this

Hi @Louiza02! Feel free to fork this repository and fix this issue.

@Louiza02
Copy link
Contributor

Louiza02 commented May 31, 2023

Hi @EthanThatOneKid,
If I understand well the issue, I think it has already been resolved at commit 6adad2a
Please tell me if I'm wrong
Thank you

@EthanThatOneKid
Copy link
Owner Author

Hi @EthanThatOneKid, If I understand well the issue, I think it has already been resolved at commit 6adad2a Please tell me if I'm wrong Thank you

@Louiza02 thank you for looking into this issue! The issue is still open because there are some inconsistent instances of Url in the source code. Here are a few instances:

export function makeBlogPostsJsonUrl(labels: string[]): string {

export function makeBlogPostsPageUrl(labels: string[]): string {

export function makeBlogPostPageUrl(id: number): string {

@EthanThatOneKid
Copy link
Owner Author

Resolved by #866.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working charmander gfi miscellaneous — csuf students only
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants