Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.franciliens.net!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Bo Persson" Newsgroups: comp.lang.misc,comp.lang.c++ Subject: Re: Learning to code by reading code (was: The way to read STL source code) Date: Sun, 19 Feb 2012 16:10:57 +0100 Lines: 31 Message-ID: <9qchntFbrU1@mid.individual.net> References: <3157b4bc-b7bd-43bb-984f-b9f314a0024a@kh11g2000pbb.googlegroups.com> <4f3e01dc$0$3078$7b1e8fa0@news.nbl.fi> <39812a37-6724-467d-894b-1be9f303959b@o4g2000pbc.googlegroups.com> <4f3e48ba$0$3101$7b1e8fa0@news.nbl.fi> <20416684.591.1329526538907.JavaMail.geo-discussion-forums@pbjr9> X-Trace: individual.net zl4tVhhLuMk3hH74mkJxQw7Kq8FqrIM55przqb4AwSBVPFEBsM Cancel-Lock: sha1:f3TVMMLOL0FjgPOtdM93aTnW/MU= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original X-Antivirus: avast! (VPS 120219-0, 2012-02-19), Outbound message X-Antivirus-Status: Clean Xref: x330-a1.tempe.blueboxinc.net comp.lang.misc:949 comp.lang.c++:14280 Ebenezer wrote: > On Feb 18, 12:56 pm, r...@zedat.fu-berlin.de (Stefan Ram) wrote: >> Newsgroups: comp.lang.c++,comp.lang.misc >> Followup-To: comp.lang.misc >> >> Stanley Rice writes: >>> But if you said that reading others' code is not the way to >>> improve your programming skills, I have no ideas how to improve >>> it. Reading the >> >> Reading others' code /is/ the way to improve the skills: >> >> - Of course, one should select code written by masters, >> not code written by arbitrary authors. For example, >> in the realm of C++, one might read boost source code. > > I suggest "chewing the meat and spitting the bones" with Boost. > Some of it is great, but not all of it. > > Yes, some libaries are so full of configuration macros and workarounds for ancient compilers that you will have a hard time even finding some code. Been there, done that. Bo Persson