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: |

Lastly, the web previews of t.me links have been given a new look, adding chat backgrounds and design elements from the fully-features Telegram Web client. Since January 2022, the SC has received a total of 47 complaints and enquiries on illegal investment schemes promoted through Telegram. These fraudulent schemes offer non-existent investment opportunities, promising very attractive and risk-free returns within a short span of time. They commonly offer unrealistic returns of as high as 1,000% within 24 hours or even within a few hours. Messages are not fully encrypted by default. That means the company could, in theory, access the content of the messages, or be forced to hand over the data at the request of a government. Sebi said data, emails and other documents are being retrieved from the seized devices and detailed investigation is in progress. He floated the idea of restricting the use of Telegram in Ukraine and Russia, a suggestion that was met with fierce opposition from users. Shortly after, Durov backed off the idea.
from tw


Telegram Laoself 🙂‍↕️
FROM American