Gea-Suan Lin's BLOG

Thursday, February 08, 2007

Programming 時注意的事情

剛好在 的 Blog 上看到這篇:寫C程式,請勿硬幹,裡面提到的:

  • :在 有,測了一下,真的蠻囉唆的… :p
  • indent 工具:我以前的習慣是 Allman style 的變形 (Maple 3 source code 使用的那種),不過後來跟別人合作的時候就改用 K&R style 了,用 K&R style 的好處在於幾乎所有的 indent tool 都有直接排成 K&R 的選項,像是 -kr,或是 --style=kr

另外還有蠻重要的一點,要養成習慣用 工具…。