
September 3rd, 2008, 02:55 AM
|
|
|
Good C Practice
This is my first post to this group so please take it easy.
I'm no C expert but I've been coding in it for a while, I always ask
myself what's the best place to see/read good C, by good C I mean
projects that use C effectively in a "modern" and concise way.
How can I judge what's a good practice ?
Where can we find it ?
For example, glib2, the low level API for the gtk framework uses C in a
OO fashion, full of callbacks and types, providing loads of layers of
abstraction. But each project is completely different from the other in
this aspect.
So what's the *cool* thing ? the right thing and/or the *wrong* thing ?
|

September 3rd, 2008, 03:05 AM
|
|
|
Re: Good C Practice
Christiano Farina Haesbaert wrote:
Quote:
This is my first post to this group so please take it easy.
>
I'm no C expert but I've been coding in it for a while, I always ask
myself what's the best place to see/read good C, by good C I mean
projects that use C effectively in a "modern" and concise way.
>
How can I judge what's a good practice ?
Where can we find it ?
>
|
If you are looking for something recent, manageable and well structured,
have a look at the Solaris ZFS source:
http://opensolaris.org/os/community/zfs/source/
--
Ian Collins.
|

September 3rd, 2008, 05:57 AM
|
|
|
Re: Good C Practice
On Wed, 03 Sep 2008 13:59:30 +1200, Ian Collins <ian-news@hotmail.com>
wrote:
Quote:
>Christiano Farina Haesbaert wrote:
Quote:
>This is my first post to this group so please take it easy.
>>
>I'm no C expert but I've been coding in it for a while, I always ask
>myself what's the best place to see/read good C, by good C I mean
>projects that use C effectively in a "modern" and concise way.
>>
>How can I judge what's a good practice ?
>Where can we find it ?
>>
|
>If you are looking for something recent, manageable and well structured,
>have a look at the Solaris ZFS source:
>
>http://opensolaris.org/os/community/zfs/source/
|
Very interesting link. Pardon what may be a stupid question, but how
similar/different is this from linux?
|

September 3rd, 2008, 06:05 AM
|
|
|
Re: Good C Practice
Pilcrow wrote:
Quote:
On Wed, 03 Sep 2008 13:59:30 +1200, Ian Collins <ian-news@hotmail.com>
wrote:
>
Quote:
>Christiano Farina Haesbaert wrote:
Quote:
>>This is my first post to this group so please take it easy.
>>>
>>I'm no C expert but I've been coding in it for a while, I always ask
>>myself what's the best place to see/read good C, by good C I mean
>>projects that use C effectively in a "modern" and concise way.
>>>
>>How can I judge what's a good practice ?
>>Where can we find it ?
>>>
|
>If you are looking for something recent, manageable and well structured,
>have a look at the Solaris ZFS source:
>>
>http://opensolaris.org/os/community/zfs/source/
|
>
Very interesting link. Pardon what may be a stupid question, but how
similar/different is this from linux?
>
|
Years ahead!
--
Ian Collins.
|

September 3rd, 2008, 06:45 AM
|
|
|
Re: Good C Practice
Pilcrow wrote:
Quote:
>
Very interesting link. Pardon what may be a stupid question, but how
similar/different is this from linux?
|
ZFS is a file system, Linux is an operating system kernel.
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"... the industrial-capitalist mode of software production
was doomed to be outcompeted from the moment capitalism
began to create enough of a wealth surplus for many
programmers to live in a post-scarcity gift culture."
-- Eric S. Raymond
|

September 3rd, 2008, 06:45 AM
|
|
|
Re: Good C Practice
Ian Collins wrote:
Quote:
Quote:
>Very interesting link. Pardon what may be a stupid question, but how
>similar/different is this from linux?
>>
|
Years ahead!
|
Saying ZFS (a filesystem) is years ahead of Linux (an OS kernel) is
is somewhat silly.
Saying "The OpenSolaris platform" is years ahead of "The Linux
Platform" is just as silly because there is at least one area
where OpenSolaris is about a decade behind the commonly used
Linux distros.
Erik (who once worked at SUN but never drank the Koolaid)
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
The word "Windows" is a word out of an old dialect of the
Apaches. It means: "White man staring through glass-screen
onto an hourglass..."
|

September 3rd, 2008, 09:45 AM
|
|
|
Re: Good C Practice
Erik de Castro Lopo <nospam@mega-nerd.comwrote:
Quote:
Ian Collins wrote:
>
Quote:
Quote:
Very interesting link. Pardon what may be a stupid question, but how
similar/different is this from linux?
>
|
Years ahead!
|
>
Saying ZFS (a filesystem) is years ahead of Linux (an OS kernel) is
is somewhat silly.
|
Not if you're talking about programming style. SunOS was years ahead of
Linux in solidity and style decades ago, and still is.
Richard
|

September 3rd, 2008, 12:55 PM
|
|
|
Re: Good C Practice
Erik de Castro Lopo wrote:
Quote:
Pilcrow wrote:
>
Quote:
>Very interesting link. Pardon what may be a stupid question, but how
>similar/different is this from linux?
|
>
ZFS is a file system, Linux is an operating system kernel.
|
I think OP's question was regarding C programming style.
--
/"\ Join the ASCII | Thommy M. Malmström
\ / ribbon campaign | AB Hardeberga IT
X against HTML mail | Skiffervägen 23, 224 78 Lund
/ \ and postings | +46 70 969 57 93
================================================== =====================
http://www.at-hardeberga.com thommym (at) at-hardeberga.com
================================================== =====================
"The box said 'Windows 2000 Server or better', so I installed Solaris."
================================================== =====================
|

September 3rd, 2008, 08:15 PM
|
|
|
Re: Good C Practice
Thommy M. Malmström wrote:
Quote:
Erik de Castro Lopo wrote:
Quote:
>Pilcrow wrote:
>>>ZFS is a file system, Linux is an operating system kernel.
|
>
I think OP's question was regarding C programming style.
>
|
So were my replies.
--
Ian Collins.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|