Static Type Checking 🤔

オープン
#201 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ruby
領域
tooling

調査の方向性

特定のファイルやテストは指定されていません。まず Ruby release-toolkit のコードを確認し、導入に必要な労力という観点で RBS と Sorbet を比較してください。有用な spike では、型付きクラスと型なしクラスが共存できるか、また段階的な導入が現実的かどうかを明らかにする必要があります。

索引モデルが issue の本文から書いたものです。

説明

What do you think of adding static type checking, either via RBS (which would require upgrading to Ruby 3.x RBS requires Ruby >= 2.6) or sorbet?

I love that we are putting effort in documentation and writing good Ruby to help us compensate for the lack of type checking. Those are great initiatives that we should definitely pursue but I wonder if we could augment them with the introduction of static type checking.

@jkmassel showed me a similar approach using Psalm for PHP in an internal project and I found it super useful.

Note: I never used either of those tools but I imagine seriously adopting them would be quite a process. I'm not arguing we should jump onto it right away, I'm just curious of your opinion. If there's interest, we should run an humble spike first, just to see if it's straightforward to adopt them and if type-annotated classes can coexist with non-type-annotated ones, allowing us a gradual adoption path.

主要言語
Ruby
スター
32
フォーク
7
平均マージ
1日 15時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wordpress-mobile/release-toolkit のほかの issue

wordpress-mobile/release-toolkit の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。