TGTGInsighttelegram intelligenceLIVE / telegram public index
← ʜ.-ʜ. ʜᴏʟᴇ
ʜ.-ʜ. ʜᴏʟᴇ avatar

TGINSIGHT POST

Post #158

@H2HOLE

ʜ.-ʜ. ʜᴏʟᴇ

Views381帖子阅读量
发布3月21日2024/03/21 07:11
Post content

帖子内容

作為開發者,我們經常需要尋找並實踐各種問題的最佳實踐(best practice),那麼有沒有想過最糟實踐(worst practice)呢? 暢銷書籍《Effective Python》的作者 Brett Slatkin 在去年開設了 YouTube 頻道 —— Worst Practices in Software Development 與工程師們進行訪談聊聊他們實際的開發狀況,並提出了一個想法: “I have a theory that nearly all of the horrible things that everyone tells you to avoid in programming are precisely the best way to build software.” 是不是避開了大家所謂的最糟實踐,恰恰就是我們在開發過程中尋尋覓覓的最佳實踐呢? 剛剛聽了 Leah Culver debugs with print statements 這一集,隔著螢幕都能感受到 Leah Culver 的歡愉,我自己也經常隨便在程式中隨便輸出個 5566, 55688, 123, test123 去確認執行順序,以及函數與方法是否確實被呼叫與執行。 是說……這應該不是需要被改善的 worst practice 吧?不是吧?不是吧! #Hurhur