LoginSignup
4
3

More than 5 years have passed since last update.

RustとGoのgithub上のプロジェクト名の傾向

Posted at

どうでもいいことが気になるたちです。

最近Rustのプロジェクトをいくつか始めたいと思い、リポジトリ名がどうなってるのか気になりました。

調査方法

Githubの検索APIを叩いてプロジェクト名拾うスクリプトを組んで調べてみました。プロジェクト数は検索数上限の1000を超えてるのでサンプルはスター数多い順に1000プロジェクトです。実際のスクリプトはリンク先を見ていただければと。

結果

Rust

Rustはrustrsがよく目につくのでその2つのキーワードをプレフィックス/サフィックス、-.繋ぎか繋ぎなしかでそれぞれ抽出してみました。

key num example
none 429 hoge
prefix_rust_dash 270 rust-hoge
suffix_rs_dash 114 hoge-rs
prefix_rust 79 rusthoge
suffix_rust_dash 39 hoge-rust
suffix_rs_dot 33 hoge.rs
suffix_rs 11 hogers
suffix_rust 11 hogerust
prefix_rs 6 rshoge
prefix_rs_dash 5 rs-hoge
prefix_rust_dot 2 rust.hoge
suffix_rust_dot 1 hoge.rust
prefix_rs_dot 0 rs.hoge

Go

Goはrust rsのかわりにgoだけで調べてみました。

key num example
none 509 hoge
prefix_rs 245 gohoge
prefix_rs_dash 168 go-hoge
suffix_rs 38 hogego
suffix_rs_dash 31 hoge-go
prefix_rs_dot 7 go.hoge
suffix_rs_dot 2 hoge.go

考察

まぁ以上のような感じでした。好き名前にすればよいのではないでしょうか。

ちなみに以前始めたプロジェクトは Github上はwoothee-rustパッケージ名自体はwoothee にしました。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3