Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

File Naming Conventions #351

brownts started this conversation in General
Discussion options

Most of the files in the current code base are only single word files. I'm planning to add a new multi-word file as part of a bug fix and trying to decide what the correct filename convention should be. I looked around the code base for some guidance, but most files are single word only. I did find a few examples, but they appear to be inconsistent:

  • mi_parser.ts
  • gdb_expansion.ts
  • mi2mago.ts
  • mi2lldb.ts

Is there any guidance or preference for file naming conventions? Seems like there are at least the following options:

  • PascalCase
  • camelCase
  • snake_case
  • kebab-case
  • alloneword

From the code base examples shown above, they seem to fall into the "snake_case" or "alloneword" scenarios. Any thoughts on this?

You must be logged in to vote

Replies: 1 comment

Comment options

I'm totally into using full words (seldom abbreviation) and when using multiple words separating them with an underscore.
Reasoning.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /