dzcode.io icon indicating copy to clipboard operation
dzcode.io copied to clipboard

Use kebab-case for URLs

Open Fcmam5 opened this issue 4 years ago • 3 comments

It looks a bit weird for me to see Pascal-case in DzCode.io links. Is there a narrative behind that? Or we should stick with the standard: Use kebab-lower-cases for urls. Example:

https://www.dzcode.io/Contribute
https://www.dzcode.io/contribute

Fcmam5 avatar Jun 17 '21 20:06 Fcmam5

This issue better be resolved now before is becomes a serious problem in the future, thanks @Fcmam5

https://www.searchenginejournal.com/url-capitalization-seo/343369/

This article list many ppl's opinions on this matter, and the way I see it, we should use :

  • one case type consistently across the website.
  • lower case letters seem to be the best option.

It doesn't say anything about spaces in url, but I'm thinking instead of the kabab case style we use snake case, we use '_' instead of '-', because we already have composed words that uses '-' like "open-source"

I would love to hear your opinion on this along with @dzcode-io/maintainers

ZibanPirate avatar Jun 18 '21 12:06 ZibanPirate

For API resources I'd go for -, same for article URLs (I don't have a strong opinion on this tho), some websites use kebab case like:

https://docs.github.com/en/rest/overview/openapi-description

And others use _(I'm talking abt article names and not sub pages/dirs)

https://en.wikipedia.org/wiki/Algerian_cuisine

Fcmam5 avatar Jun 18 '21 16:06 Fcmam5

hi @ZibanPirate and @Fcmam5 i can start work on this soon , i think that we need to talk about it more

abderrahmaneMustapha avatar Sep 18 '21 17:09 abderrahmaneMustapha