[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

K&R

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 20
Thread images: 1

File: 1499927688451.png (69KB, 600x600px) Image search: [Google]
1499927688451.png
69KB, 600x600px
Is K&R sufficient to become a competent C programmer? It seems too compact. Will it teach me how to write actually good C programs, or is it just a reference?
>>
>>62119631
That's like asking if knowing the alphabet will make you rich like jk Rowling. No, but it's a necessary start
>>
>>62120178
So starting with K&R isn't a mistake at least?
What should complete it once I'm done?
>>
>>62119631
K&R is a great book and more advanced than modern intro books.

You're fine if you get through that and have a firm understanding of it.
>>
>>62120195
Some people say K&R teaches bad habits or outdated ones, which is why I'm asking.
>a firm understanding of it
I'm finding some exercises pretty complicated since I tend to get memory errors, segmentation faults and whatnot. I'm hoping the book expands on the safety aspect later on.
>>
>>62120190
Practice
>>
Why don't you learn assembly like a real man?
>>
>>62120797
I will, right after C.
>>62120707
How to make sure I don't acquire bad programming habits though? Maybe I'm worrying over nothing.
>>
>>62119631
Personally, I prefer the O'Reily C Programming book for learning C. A little more modern, good practice exercises and I like how it discusses code documentation.
>>
>>62120848
"Practical C Programming"?
>>
It will teach you C fundamentals but not things like build tools, how to make a parser, how to use network, signals, threading, error handling and logging etc.
>>
>>62121079
>build tools, how to make a parser, how to use network, signals, threading, error handling and logging etc.
Do I use the documentation for that or is there a decent book on those things?
>>
>>62120869
Yeah. Has a cow on the cover. That book taught me C, and I felt like it was thorough and a good starting book.
>>
>>62121140
Oh I see, I think I have it. I'll take a look at it too then, thanks.
>>
>>62120255
>I'm hoping the book expands on the safety aspect
It doesn't really.
>>
>>62120838
K&R C has weird little quirks, eg. you can't declare a loop variable inside the loop

So pay attention to what new versions of C added
>>
>>62121202
There is also a small pocket reference version of it too. If you like the Cow Book, it's a handy guide in case you get stuck or blank on something.
>>
I'd recommend you to get the K&R 2nd edition
>>
>>62119631
K&R is good for turning a beginner C programmer into an intermediate C programmer.
>>
>>62119631
>>62120255
K&R was written in a time before people knew C as "buffer overflow the language."

Read "Learning C the Hard Way" to not contribute to the fall of modern civilization via shit coding practices.
Thread posts: 20
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.