473,806 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I've read K&R, what now?

I'd like to say I have a basic control of the C language. Is there any
reccomended reading upon completion of K&R?

Are there any projects someone new to C could study/watch over/ and
eventually contribute to in order to get a grip on the development
process and/or expand their knowledge?

Thank you.

May 31 '07
22 2585
Michael said:
Is there any reccomended reading upon completion of K&R?

I would also add Writing Solid Code by Steve Maguire.
I wouldn't.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
May 31 '07 #11
Richard Heathfield wrote:
Tor Rustad said:
.... snip ...
>
>That completes the recommendations from Richard H., which lack
any references to platform-dependent coding, if OP is using
UNIX/Linux, a book on POSIX (e.g. Stevens APUE
http://www.kohala.com/start/) is much more useful, than many of
the above suggestions.

Well, this is a platform-independent group. If I were pushed for
platform-specific recommendations , I would start off by saying
APUE to the POSIX people, PW (Petzold, 5th edition ONLY) to the
Win32 people, and UNP to both groups (yes, even the Win32 people,
and even though porting the code from one to the other isn't
entirely effortless).
I note the absence of "Practice of Programming", which I consider
excellent.

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfoc us.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

May 31 '07 #12
CBFalconer said:
Richard Heathfield wrote:
>Tor Rustad said:
... snip ...
>>
>>That completes the recommendations from Richard H., which lack
any references to platform-dependent coding, if OP is using
UNIX/Linux, a book on POSIX (e.g. Stevens APUE
http://www.kohala.com/start/) is much more useful, than many of
the above suggestions.

Well, this is a platform-independent group. If I were pushed for
platform-specific recommendations , I would start off by saying
APUE to the POSIX people, PW (Petzold, 5th edition ONLY) to the
Win32 people, and UNP to both groups (yes, even the Win32 people,
and even though porting the code from one to the other isn't
entirely effortless).

I note the absence of "Practice of Programming", which I consider
excellent.
But it's not about C! :-)

Yes, of course you're right - but my "recommende d reading" list is a
list of ***C*** books. If you look carefully at the list on my site,
you will also note the absence of APUE (see above), PW (again, see
above), UNP (ditto), Stevens' "TCP/IP Illustrated" series, TAOCP, "Code
Complete", the Wirth book, Stroustrup, Hofstadter, and the entire
Discworld series, not to mention the Bible and Shakespeare.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
May 31 '07 #13
Tor Rustad <to********@hot mail.comwrites:
[...]
4. C: A Reference Manual, 4th Ed. Harbison & Steele

Comment: OP don't need H&S now, just use K&R2.
There's a 5th edition of H&S. Unlike K&R2, it covers C99 (and yes, it
clearly distinguishes which features are new in C99). I recommend it
as a reference, as opposed to a tutorial.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
May 31 '07 #14
Richard Heathfield wrote:
CBFalconer said:
.... snip ...
>
>I note the absence of "Practice of Programming", which I consider
excellent.

But it's not about C! :-)
But largely. The association with other languages gives the reader
a good introduction to the general subject of languages. It's
probably closer to on-topic here than 50% of the enquiries.
>
Yes, of course you're right - but my "recommende d reading" list is
a list of ***C*** books. If you look carefully at the list on my
site, you will also note the absence of APUE (see above), PW (again,
see above), UNP (ditto), Stevens' "TCP/IP Illustrated" series,
TAOCP, "Code Complete", the Wirth book, Stroustrup, Hofstadter, and
the entire Discworld series, not to mention the Bible and Shakespeare.
How could you leave the Bible and Shakespeare, not to mention the
Koran, off that list? :-)

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfoc us.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

May 31 '07 #15
Richard Heathfield wrote:
Tor Rustad said:
[...]
>7. ISO/IEC 9899:1999 ISO.

Comment: Latest draft is available online, likely a far too advanced
text for beginners.

He's hardly a beginner. He's completed almost all the exercises in K&R2!
Well done indeed and a very good starting point for OP, but still... at
least for me, it took years before advancing above "beginner". :-/

>11. Algorithms in C, 3rd Ed. Robert Sedgewick

Comment: Excellent book, if OP is interested in algorithms

If he isn't, he sure picked a funny career.
Who says OP has picked a career yet? Not everyone are CS students you
know. :)

Anyway, there are multiple possible paths, OP's interest might be in
Communication, Cryptology, Data Compression, Compiler Design or even
Operating Systems, if so, I'm just saying that it makes sense to
consider C book on such a topic first.

Knuth & Bentley has also some nice books on algorithms.

>14. Programs and Data Structures in C, Leendert Ammeraal.

Comment: I haven't this book either, but IMO a book on Data Structures
is the natural step after K&R2.

I do have a copy, and it's first-class.
OK, I take your word for it. I used "Data Structures Using C" by
Tenenbaum, Langsam & Augenstein, which I can recommended too. However,
by looking at the ACCU reviews, "Advanced C Struct Programming" by John
W.L. Ogilvie, got the highest score of all the C books on data structures.

>That completes the recommendations from Richard H., which lack any
references to platform-dependent coding, if OP is using UNIX/Linux, a
book on POSIX (e.g. Stevens APUE http://www.kohala.com/start/) is much
more useful, than many of the above suggestions.

Well, this is a platform-independent group.
Sure is, still the world consist of more than strictly conforming C
programs. :)
If I were pushed for
platform-specific recommendations , I would start off by saying APUE to
the POSIX people, PW (Petzold, 5th edition ONLY) to the Win32 people,
and UNP to both groups (yes, even the Win32 people, and even though
porting the code from one to the other isn't entirely effortless).
I have not read "Programmin g Windows" by Petzold, but rather "Advanced
Windows" by Jeffrey Richter, which was sufficient along with the MSDN
doc. I do agree that Stevens UNP is useful for all, even his APUE, won't
hurt the Windows people.

--
Tor <torust [at] online [dot] no>
May 31 '07 #16
Keith Thompson wrote:
Tor Rustad <to********@hot mail.comwrites:
[...]
>4. C: A Reference Manual, 4th Ed. Harbison & Steele

Comment: OP don't need H&S now, just use K&R2.

There's a 5th edition of H&S. Unlike K&R2, it covers C99 (and yes, it
clearly distinguishes which features are new in C99). I recommend it
as a reference, as opposed to a tutorial.
I do have the H&S 5th ed. for reference, but don't see this as the
natural next step for OP, which IMO is rather a good book on data
structures and using the C FAQ.

--
Tor <torust [at] online [dot] no>
May 31 '07 #17
Tor Rustad said:
Richard Heathfield wrote:
>Tor Rustad said:

[...]
>>7. ISO/IEC 9899:1999 ISO.

Comment: Latest draft is available online, likely a far too advanced
text for beginners.

He's hardly a beginner. He's completed almost all the exercises in
K&R2!

Well done indeed and a very good starting point for OP, but still...
at least for me, it took years before advancing above "beginner". :-/
I proceeded quite smoothly and quickly up the ladder to 'expert' - and
then I landed on comp.lang.c, which is one hell of a snake.
>>That completes the recommendations from Richard H., which lack any
references to platform-dependent coding, if OP is using UNIX/Linux,
a book on POSIX (e.g. Stevens APUE http://www.kohala.com/start/) is
much more useful, than many of the above suggestions.

Well, this is a platform-independent group.

Sure is, still the world consist of more than strictly conforming C
programs. :)
Huh? Whatever gave you that idea? ;-)
>
>If I were pushed for
platform-specific recommendations , I would start off by saying APUE
to the POSIX people, PW (Petzold, 5th edition ONLY) to the Win32
people, and UNP to both groups (yes, even the Win32 people, and even
though porting the code from one to the other isn't entirely
effortless).

I have not read "Programmin g Windows" by Petzold, but rather "Advanced
Windows" by Jeffrey Richter, which was sufficient along with the MSDN
doc.
I, too, have Richter's book, but it's a bit heavy IMHO - Petzold is
gentler, and very thorough. Having said that, his C really sucks. :-)

I do agree that Stevens UNP is useful for all, even his APUE,
won't hurt the Windows people.
That depends on how hard you throw it.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
May 31 '07 #18
Richard Heathfield wrote:
Tor Rustad said: (referencing a list of recommended texts)
15. Numerical Recipes in C
Comment: Mainly relevant for physics and chemistry students, not the
place to learn C.

Yeah, I ought to strip that off the list, really.
Or, place it on the list of "Decent books that describe
reasonable algorithms, but with extremely poor coding
style and practice." (I haven't looked at it for years,
and perhaps my memory misleads me, but I'm pretty
sure I learned a LOT of bad habits from that book.)

--
William Pursell

Jun 1 '07 #19
Tor Rustad wrote:
Richard Heathfield wrote:
>Tor Rustad said:

[...]
>>14. Programs and Data Structures in C, Leendert Ammeraal.

Comment: I haven't this book either, but IMO a book on Data Structures
is the natural step after K&R2.

I do have a copy, and it's first-class.

OK, I take your word for it. I used "Data Structures Using C" by
Tenenbaum, Langsam & Augenstein, which I can recommended too. However,
by looking at the ACCU reviews, "Advanced C Struct Programming" by John
W.L. Ogilvie, got the highest score of all the C books on data structures.
I just searched Amazon for Ogilvie's book:

http://www.amazon.com/Advanced-Struc.../dp/047151943X

and did remember it when I saw the cover image! LOL, it must be more
than 15 years ago I worked my way through that one.

Not sure if I agree with Francis Glassborow ACCU review as "Highly
Recommended" though, when Tanenbaum only received "Recommende d".
However, Glassborow do have point, since you only really *work* your way
through a good book. Ogilvie and Tanenbaum are not really overlapping
books, Ogilvie's book was more about program design, i.e. how to master
real-life projects, i.e. designing and programming bigger and more
complex systems.

--
Tor <torust [at] online [dot] no>
Jun 1 '07 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
8581
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character reference (i.e.  ) and it seems to be converting the character to its UNICODE representation. Take this source XML document: <?xml version="1.0" encoding="UTF-8"?>
1
11445
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a href="mailto:DrTebi@yahoo.com">DrTebi</a> This would work like a regular mailto link in any browser, but wouldn't be visible to spiders if they don't have a function to decode it.
0
2427
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a href="http://blah.com/?test=test&amp;amp;test2=test2">Test2&amp;amp;</a> This results in the following HTML Code:
1
7067
by: Richard P | last post by:
I've feel that I have tried everything possible but I still cannot get my code to work in both netscape version 6 and IE. My Javascript is in XSL files but this should not matter. I am using the frameset below, the ids are different but the names are the same. The names are the same because I have a function to minimise and maximise a frame given its name and this uses getElementsByName. <frameset rows="50,50" id="fsMain">
14
4641
by: vic | last post by:
My manager wants me to develop a search program, that would work like they have it at edorado.com. She made up her requirements after having compared how search works at different websites, like eBay, Yahoo and others. This is what she wants my program to be able to do: (try this test at different websites just for fun). At eBay: - enter the word 'television' in a search field à you will get 2155 items.
4
3231
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know that I could externalize my JavaScript, but that will not be practical throughout this application. Is there any way to get around this issue? Xalan processor. Stripped down stylesheet below along with XHTML output. <?xml version='1.0'?>...
14
5943
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary changed to "&" by a browser when or other software, when editing and uploading the file to the web...
7
4633
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get BeautifulSoup to clean those up? There are various parsing options related to "&" handling, but none of them seem to do quite the right thing. If I write the BeautifulSoup parse tree back out with "prettify", the loose "&" is still in there. So...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10620
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10369
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.