Telegram Group & Telegram Channel
回看過去幾年使用GitHub Copilot輔助開發的經歷,我感覺Copilot確實很大程度上改變了我寫程式的一些習慣。
純靠人腦寫的時候比較傾向於把一整個feature的流程一整坨拉出來,然後在debug過程中做抽象拆分,慢慢從spaghetti變成比較理想的可維護的project。
現在知道copilot的優勢是在一個小需求輸入輸出確定的情況下直接出implementation,且拆分越細緻我自己review也越容易,所以更多從頂向下寫code,先理清data flow,拆分好步驟,寫出來一大堆function signature和type definition,然後讓copilot一個個implement出來,人工review過一遍後再讓copilot寫test cases,結合test case review一遍。debug時間大大減少,很多時候這樣well-tested code組合完都能一遍過,而且知道不用再返工做拆分,心情大為舒暢。
即使是需求變化或者一開始架構設計有問題,後面更改也會更多在architecture上做調整然後讓copilot重寫對應部分。因為具體的implementation基本上不是我自己一行行碼出來的了,所以不會像以前一樣因為覺得敲掉重頭再來很可惜,做調整也會更聚焦於怎麼調整比較符合需求,而不是動歪腦筋怎麼retrofit比較方便。



group-telegram.com/Laoself/10215
Create:
Last Update:

回看過去幾年使用GitHub Copilot輔助開發的經歷,我感覺Copilot確實很大程度上改變了我寫程式的一些習慣。
純靠人腦寫的時候比較傾向於把一整個feature的流程一整坨拉出來,然後在debug過程中做抽象拆分,慢慢從spaghetti變成比較理想的可維護的project。
現在知道copilot的優勢是在一個小需求輸入輸出確定的情況下直接出implementation,且拆分越細緻我自己review也越容易,所以更多從頂向下寫code,先理清data flow,拆分好步驟,寫出來一大堆function signature和type definition,然後讓copilot一個個implement出來,人工review過一遍後再讓copilot寫test cases,結合test case review一遍。debug時間大大減少,很多時候這樣well-tested code組合完都能一遍過,而且知道不用再返工做拆分,心情大為舒暢。
即使是需求變化或者一開始架構設計有問題,後面更改也會更多在architecture上做調整然後讓copilot重寫對應部分。因為具體的implementation基本上不是我自己一行行碼出來的了,所以不會像以前一樣因為覺得敲掉重頭再來很可惜,做調整也會更聚焦於怎麼調整比較符合需求,而不是動歪腦筋怎麼retrofit比較方便。

BY Laoself 🙂‍↕️


Warning: Undefined variable $i in /var/www/group-telegram/post.php on line 260

Share with your friend now:
group-telegram.com/Laoself/10215

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

NEWS On Feb. 27, however, he admitted from his Russian-language account that "Telegram channels are increasingly becoming a source of unverified information related to Ukrainian events." The fake Zelenskiy account reached 20,000 followers on Telegram before it was shut down, a remedial action that experts say is all too rare. Pavel Durov, a billionaire who embraces an all-black wardrobe and is often compared to the character Neo from "the Matrix," funds Telegram through his personal wealth and debt financing. And despite being one of the world's most popular tech companies, Telegram reportedly has only about 30 employees who defer to Durov for most major decisions about the platform. A Russian Telegram channel with over 700,000 followers is spreading disinformation about Russia's invasion of Ukraine under the guise of providing "objective information" and fact-checking fake news. Its influence extends beyond the platform, with major Russian publications, government officials, and journalists citing the page's posts.
from ar


Telegram Laoself 🙂‍↕️
FROM American