雖然因為 php 是弱型別,所以 #PhpStorm 不像 #IntelliJ 或 #ReSharper 有 "Transform Parameter Object" 的功能可以用。
但是我們還是可以創造出自己的 #套路,把 function 標記成 static 後,inline method, 再針對 inline 完的內容,extract method,透過 extract method 來輔助精鍊參數的個數與型別。
IDE 最強大的威能,就在於重構。如果用了 PhpStorm,仍然用舊的方式在開發,真的不如用 Visual Studio Code 或是 vim 就好。
--
什麼?你沒有這問題跟需求?你是沒有在重構吧?
在【#極速開發】中,會學習到如何把整個生產環境,相關的工具鏈組合起來,發揮最大綜效,而不是一個一個的單點功能。有興趣可以參考:https://dotblogs.com.tw/hatelove/2018/10/29/201901-extreme-developing
在【#演化式設計:#測試驅動開發與持續重構】的培訓中,則是如何把這些東西進階應用在實戰上,讓你的測試驅動開發與持續重構,能行雲流水一般優雅。有興趣可以參考:https://dotblogs.com.tw/hatelove/2018/10/29/201902-refactor-and-tdd-training
「visual studio extract method」的推薦目錄:
- 關於visual studio extract method 在 91 敏捷開發之路 Facebook 的精選貼文
- 關於visual studio extract method 在 Extract Method | Python in Visual Studio Code 的評價
- 關於visual studio extract method 在 VS code "Extract Method" and "Extract Variable" not in context ... 的評價
- 關於visual studio extract method 在 提取方法- visualstudio-docs.zh-cn - GitHub 的評價
- 關於visual studio extract method 在 Is it good to create static method at Visual Studio refactoring? 的評價
visual studio extract method 在 VS code "Extract Method" and "Extract Variable" not in context ... 的推薦與評價
... <看更多>
visual studio extract method 在 提取方法- visualstudio-docs.zh-cn - GitHub 的推薦與評價
Contribute to MicrosoftDocs/visualstudio-docs.zh-cn development by creating an account on ... visualstudio-docs.zh-cn/docs/ide/reference/extract-method.md. ... <看更多>
visual studio extract method 在 Extract Method | Python in Visual Studio Code 的推薦與評價
Select the text (expression/code block) to be extracted into a method · Launch the Command Palette via the shortcut (⇧⌘P or Ctrl+Shift+P) · Select the 'Extract ... ... <看更多>