I'm a big believer in conventions. I like having clear directions for minor trivial details instead of hmmm-ing and haw-ing about what to do when it's just not a big deal but also you want to conform to the expectations of the ecosystem. But when entering a new ecosystem it's hard to get a feel for what the conventions are. For instance, if you're a new JavaScript programmer should you put your test code in tests/, test/, or __tests__/? There's not really a good answer on Google.

This is a collection of some of these "what's the most popular way to $X?" questions and their results.

There may be more posts in this series. I'll probably want to write down some other search popularity results at some point.

What name for the rust-toolchain.toml file?

  • rust-toolchain.toml 8.6k
  • rust-toolchain 2.6k

What name for my WASM repository that needs disambiguation?

What name for my Go repository that needs disambiguation?

What name for my C++ repository that needs disambiguation?

What name for my Rust repository that needs disambigation?

What name for my JavaScript repository that needs disambiguation?

What name for my test code folder in a JavaScript project?

What suffix for my test code files in a JavaScript project?

  • *.test.[jt]{sx,x} 4.6M
  • *_test.[jt]{sx,x} 293k

What name for my test code folder in a C++ project?

.yaml or .yml for GitHub actions workflows?

.yaml or .yml in general?

.Equal() or .Equals() in Go?

.equal() or .equals() in JavaScript?

.equal() or .equals() in general?

What file extension for C++?

What file extension for C++ modules?