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

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. In this regard, Sebi collaborated with the Telecom Regulatory Authority of India (TRAI) to reduce the vulnerability of the securities market to manipulation through misuse of mass communication medium like bulk SMS. "For Telegram, accountability has always been a problem, which is why it was so popular even before the full-scale war with far-right extremists and terrorists from all over the world," she told AFP from her safe house outside the Ukrainian capital. On Telegram’s website, it says that Pavel Durov “supports Telegram financially and ideologically while Nikolai (Duvov)’s input is technological.” Currently, the Telegram team is based in Dubai, having moved around from Berlin, London and Singapore after departing Russia. Meanwhile, the company which owns Telegram is registered in the British Virgin Islands. As the war in Ukraine rages, the messaging app Telegram has emerged as the go-to place for unfiltered live war updates for both Ukrainian refugees and increasingly isolated Russians alike.
from us


Telegram Laoself 🙂‍↕️
FROM American