-
Notifications
You must be signed in to change notification settings - Fork 0
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
我想重構程式碼可是主管跟團隊不支持怎麼辦? #2
Comments
如果有好的理由,重構可能會更容易推行。例如有辦法量化出重構後的 effort 降低多少的話,可能就會更容易獲得主管或團隊的支持。 我之前估計的方法是衡量 dependency 數量減少多少,以及新增一個相似的功能可以減少多少程式碼。不過我自己覺得這個量化方法沒有很好,也希望有大大提供更合適的量化方法 XD。 |
你這段蠻好的,我應該補一下為什麼要做重構 #8 |
如果確定要重構,是要以function的粒度,小步漸進的分段規劃嗎? |
小步漸進地分段進行比較好。可以參考 Martin Fowler 的書,他認為大型的重構是由很多個小型的重構所組成的。透過這樣有規劃的步驟,才有辦法確保重構完的商業邏輯跟重構前是一樣的。 |
推薦去上課,真的會有收獲 |
重構應該要配合對於 problem scope 的 insight,沒有 insight 重構容易沒有方向。有 insight 也比較好說服團隊為何要重構 如果 unit test 跟 insight 衝突,那 unit test 應該要修正或是捨棄 |
The text was updated successfully, but these errors were encountered: