Coding habits to avoid: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

5 November 2025

  • curprev 19:1919:19, 5 November 2025Planetoid talk contribsm 2,357 bytes −1 No edit summary undo
  • curprev 19:1819:18, 5 November 2025Planetoid talk contribs 2,358 bytes +2,358 Created page with "避免的 coding 習慣 * 避免使用簡化的的變數名稱,例如 $sd 或 $d 也許一開始還會記得,但是過一陣子就會忘記這是什麼 * 避免使用過於籠統的變數名稱,例如 $data 或 $file_path 「這個 $data 裡面放的是什麼?」當變數名稱不夠明確時,三個月後連自己都會忘記當初的設計。使用具描述性的變數名稱,可以讓程式碼自我說明,減少日後維護的困擾。 ** $data 可能代..."