DEV Community

Joan Perals
Joan Perals

Posted on

1

File naming: kebab-case or camelCase?

When it comes to name files and directories, kebab-case should have the following advantages over camelCase:

  • Easier to type: no need to hold one key while typing another
  • More readable: words are more clearly separated
  • No problems for non case-sensitive file systems or configurations

However, camelCase seems to have become the standard for naming files in frontend. Why is that? Maybe because of "convention contamination" from JavaScript? Does anyone have other, maybe more solid, reasons for that?

Top comments (0)

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay