Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubyの型チェックについて #19

Open
shoma07 opened this issue Jan 24, 2022 · 4 comments
Open

Rubyの型チェックについて #19

shoma07 opened this issue Jan 24, 2022 · 4 comments

Comments

@shoma07
Copy link

shoma07 commented Jan 24, 2022

  • Rubyで型チェックしているか
  • 周辺ツールについて便利なのあるかな
  • 今後浸透していきそうか
@yusukesugasawa
Copy link
Collaborator

Roppongi.rb#16 用コメント

This was referenced Feb 28, 2022
@hatappi
Copy link
Contributor

hatappi commented Apr 20, 2022

Rubyで型チェックしているか

  • 実際使っている人いる?
    • 現状いなさそう?
  • 普段型を意識はして書いてない => 型ありにする時の移行コスト?

その他

  • Protocol Buffers を使ってクライアントとサーバーサイドとのインターフェースを決めている
  • GraphQL もスキーマでそれぞれのフィールドの型情報を共有できる

@hatappi
Copy link
Contributor

hatappi commented Apr 20, 2022

依存している gem の型情報に関しては公式が提供している↓を使うとよさそう
https://github.com/ruby/gem_rbs_collection

@hatappi
Copy link
Contributor

hatappi commented Apr 20, 2022

そもそも私達はなぜ型がほしいんだっけ?

  • 開発時の型チェックにより開発効率の向上
    • エディタとかで補完が効くと嬉しい!
    • 型がなくても Ruby だと RubyMine である程度の補完は効く

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants