Zhigang Wang
  • Home
  • Blog
  • Wiki
  • LDP
  • Planet

Write Canonical Linux program

Last modified on 2009-12-01

Every area has its own standards, conventions and specification. Linux programming field does too.

Canonical programs are easy to use even without any manual; the code is well formed for other developers to understand and so gets more contribution.

How to write canonical Linux programs?

I think you can think about the following things as you are designing and implementing a program.

  1. Are there any spec/rfc related to the standard?
  2. Does it follow the Linux standard base specifications?
  3. How does the most famous software design and implement such kind of functions?
  4. Can I reuse a module of other software rather than rewrite the code?

Some guidelines:

If you are writing a GNU program, please refer to the GNU Coding Standards first.

If you are writing for Linux kernel, please refer to Linux kernel coding style first.

If you are writing Python code, please refer to Python Style Guide first.

 

Categories

  • All contents
  • English contents
  • Chinese contents

Feeds

  • AtomAll contents
  • AtomEnglish contents
  • AtomChinese contents

Tags

  • gtd
  • syslog
  • twiki
  • virtualizaion
  • wiki
  • xen

Copyright © 2012 Zhigang Wang. Some right reserved.

The views expressed on this web site are my own and do not necessarily reflect the views of Oracle.