Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.unix.programmer > #1236
| From | Rainer Weikusat <rweikusat@mssgmbh.com> |
|---|---|
| Newsgroups | comp.unix.programmer |
| Subject | Re: Any suggestions for Linux Beginners stepping to Linux kernel. |
| Date | 2011-09-08 20:16 +0100 |
| Message-ID | <874o0mrgiq.fsf@sapphire.mobileactivedefense.com> (permalink) |
| References | <2a0bf9fc-e9d7-4db6-b8aa-f6695465bea7@m3g2000pri.googlegroups.com> <87r53tq3aj.fsf@sapphire.mobileactivedefense.com> <9334c330-6bcf-4eb9-93cb-23121059a073@v18g2000yqj.googlegroups.com> <36948fa4-1197-4476-9d34-f682b042ffbb@m4g2000pri.googlegroups.com> |
"onixie@gmail.com" <onixie@gmail.com> writes: > On Sep 7, 4:11 pm, Stanley Rice <hecong...@gmail.com> wrote: >> On Sep 6, 8:11 pm, Rainer Weikusat <rweiku...@mssgmbh.com> wrote: [...] >> > The 'classic' textbook would be >> >> > http://www.informit.com/store/product.aspx?isbn=0201563177 [...] >> I read few chapters of Advanced Programming in the UNIX® Environment, >> it introduces some functions of Linux and some concepts of Linux, >> right? >> The code in each program is less than 200 lines and some body call it >> toy program. [...] > Toy program is just well constructed project for novice to learn. The > difference between toy program and practical program is not language > and technology itself. The major difference I think is the > completeness of the code implementing a full function or system. IMHO, the difference is mainly that the 'toy program' was written to demonstrate what its author considered to be 'best practices' in a way he considered to be easily understood by readers. And that's not usually a concern when code is being written (more correctly, people usually claim that this would be a concern but in reality, they just use it as justification for the essentially arbitrary stylistic habits they happen to have formed for reasons entirely unknown to anyone but themselves. And more often than not, these habits are rather steganographic in nature -- make them simple appear complicated by elaborate, functionless decorations). But what Steven's considers to be best practices is IMHO very debatable: I don't think that hiding the actual API in a custom wrapper library is a good idea. It makes the code more difficult to understand for anyone but the people who happen to know the specific wrapper library being used and it means that 'the novice' will learn how to use the wrapper library instead of the API itself. But I was actually being serious with my remark in an earlier posting: Don't read code in order to learn programming. Read texts about programming and try to apply what you've read (insofar you understood why the author thought this was sensible _and_ agree with it) when writing code. If you don't understand something, don't try to ape it, wait until you either understand why it was a good idea or why not.
Back to comp.unix.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-06 00:41 -0700
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Ian Collins <ian-news@hotmail.com> - 2011-09-06 22:00 +1200
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-06 13:15 +0100
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Ian Collins <ian-news@hotmail.com> - 2011-09-07 08:44 +1200
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-06 22:11 +0100
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Ian Collins <ian-news@hotmail.com> - 2011-09-07 09:18 +1200
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-07 14:22 +0100
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-07 01:03 -0700
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-06 13:11 +0100
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-07 01:11 -0700
Re: Any suggestions for Linux Beginners stepping to Linux kernel. "onixie@gmail.com" <onixie@gmail.com> - 2011-09-07 22:09 -0700
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-08 20:16 +0100
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Volker Birk <bumens@dingens.org> - 2011-09-06 12:50 +0000
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Paul <nospam@needed.com> - 2011-09-06 13:07 -0400
Re: Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-07 01:26 -0700
Re: Any suggestions for Linux Beginners stepping to Linux kernel. "onixie@gmail.com" <onixie@gmail.com> - 2011-09-07 22:01 -0700
csiph-web