Editing Coding habits to avoid

Revision as of 19:18, 5 November 2025 by Planetoid (talk | contribs) (Created page with "避免的 coding 習慣 * 避免使用簡化的的變數名稱,例如 $sd 或 $d 也許一開始還會記得,但是過一陣子就會忘記這是什麼 * 避免使用過於籠統的變數名稱,例如 $data 或 $file_path 「這個 $data 裡面放的是什麼?」當變數名稱不夠明確時,三個月後連自己都會忘記當初的設計。使用具描述性的變數名稱,可以讓程式碼自我說明,減少日後維護的困擾。 ** $data 可能代...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Warning: You are editing an out-of-date revision of this page. If you publish it, any changes made since this revision will be lost.

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see LemonWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: