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

Under the Sebi Act, the regulator has the power to carry out search and seizure of books, registers, documents including electronics and digital devices from any person associated with the securities market. Telegram has gained a reputation as the “secure” communications app in the post-Soviet states, but whenever you make choices about your digital security, it’s important to start by asking yourself, “What exactly am I securing? And who am I securing it from?” These questions should inform your decisions about whether you are using the right tool or platform for your digital security needs. Telegram is certainly not the most secure messaging app on the market right now. Its security model requires users to place a great deal of trust in Telegram’s ability to protect user data. For some users, this may be good enough for now. For others, it may be wiser to move to a different platform for certain kinds of high-risk communications. 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. The S&P 500 fell 1.3% to 4,204.36, and the Dow Jones Industrial Average was down 0.7% to 32,943.33. The Dow posted a fifth straight weekly loss — its longest losing streak since 2019. The Nasdaq Composite tumbled 2.2% to 12,843.81. Though all three indexes opened in the green, stocks took a turn after a new report showed U.S. consumer sentiment deteriorated more than expected in early March as consumers' inflation expectations soared to the highest since 1981. False news often spreads via public groups, or chats, with potentially fatal effects.
from cn


Telegram Laoself 🙂‍↕️
FROM American