* Linux coding standards - User space
@ 2009-04-13 19:10 Krishna Gopal
2009-04-13 19:54 ` Matti Aarnio
0 siblings, 1 reply; 2+ messages in thread
From: Krishna Gopal @ 2009-04-13 19:10 UTC (permalink / raw)
To: linux-kernel
Are there any coding guidelines for Linux User space programming ?
BR,
Krishna
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Linux coding standards - User space
2009-04-13 19:10 Linux coding standards - User space Krishna Gopal
@ 2009-04-13 19:54 ` Matti Aarnio
0 siblings, 0 replies; 2+ messages in thread
From: Matti Aarnio @ 2009-04-13 19:54 UTC (permalink / raw)
To: Krishna Gopal; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-13 19:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-13 19:10 Linux coding standards - User space Krishna Gopal
2009-04-13 19:54 ` Matti Aarnio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®