lkml.org 
[lkml]   [2009]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux coding standards - User space
On Mon, Apr 13, 2009 at 02:10:48PM -0500, Krishna Gopal wrote:
>
> Are there any coding guidelines for Linux User space programming ?
>

No. The problem space is way too large.

Understand the problem being solved, use tools you know how, learn better
ones when necessary, try using existing tools. Do not recreate the wheel
(write new program code) without good reason. This results often in amazing
number of libraries needed for even _simple_ programs to work, which itself
has become a problem.

Trade that code self-writing/copying against the number of needed libraries,
and their source licenses. Self-written and copied codes are prone to
errors, which does not mean that popular libraries are immuned to errors
either, but getting library fixed does fix all programs using that library.

I am hyper-conservative myself to add any new library into use. The less
libraries the code uses, the better is its portability to new platforms.
I myself do not consider locking application code to only Linux being
acceptable, it is more sign of its coder having too narrow thinking.

Portability among different flavours of UNIX may need surprising things,
and $BigMoney applications get to run in POSIX systems that often are not
Linux. Sometimes even on Windows.

> BR,
> Krishna

BR, Matti


\
 
 \ /
  Last update: 2009-04-13 21:57    [W:0.161 / U:0.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site