Java library should not use singletons
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
Start by reviewing the current global initialization around Twilio.init and the context from followup issue #430. Compare the existing client structure with the proposed TwilioApi interface and Twilio implementation. Done means establishing whether this architectural change is feasible for version 9 while preserving the stated consumer use cases.
索引モデルが issue の本文から書いたものです。
説明
As a followup to #430, while using global setup such as Twilio.init is ordinary practice in some languages, it is contrary to Java standard practices and substantially interferes in standard Java application architectures.
For version 9 development, your customers would be much better served by following the standard layout of a service interface TwilioApi and a class Twilio implements TwilioApi; this would not impose any more significant burden on consumers (just new Twilio(username, password) instead of Twilio.init(username, password)) but would dramatically enhance testability and some production use cases such as multitenant implementations.
- 主要言語
- Java
- スター
- 529
- フォーク
- 452
- 平均マージ
- 1時間 30分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
twilio/twilio-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
twilio/twilio-java#976 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
twilio/twilio-java#975 ·
-
[BUG] Sip.Builder(String) drops SIP destinations with an explicit port when the scheme is omittedオープンtype: bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
twilio/twilio-java#982 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
twilio/twilio-java#960 ·
-
MessageIntent is not supported in the Java SDK再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
twilio/twilio-java#950 · コメント 2 件 ·
twilio/twilio-java の issue をすべて見る
似ている issue
-
False Negative: InnerTypeLastCheck does not report members declared after inner enums or annotationsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
checkstyle/checkstyle#22027 ·
メンテナーはふだん 1 日以内に返信
-
bug follow-up lane:auto
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Sanne/incus-spawn#1497 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
[CI] NettyClientTest.testServerDisconnection may fail with DisconnectException対応中かも @yangshangqing95 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100