From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <7a746291161fe83e1df0401af21f6ce4@quintile.net> References: <7a746291161fe83e1df0401af21f6ce4@quintile.net> Date: Mon, 19 Nov 2012 09:56:33 -0500 Message-ID: From: Calvin Morrison To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf3005140ac514c304ceda521f Subject: Re: [9fans] c++ Topicbox-Message-UUID: d9708564-ead7-11e9-9d60-3106f5b1d025 --20cf3005140ac514c304ceda521f Content-Type: text/plain; charset=ISO-8859-1 On 19 November 2012 04:59, Steve Simon wrote: > I need to learn c++ for work - people have strong opinions on > languages I know, and not everyone likes c++ but its a requirment for me. > > I really want to develop a good sence of c++ style, I learnt C at the feet > of > K&R and then the plan9 sourcecode so I learnt how to write clean elegant > code > (I think :-). The problem I am finding is there are many c++ styles and I > have > yet to find a clean and elegant one. > > anyone sugest a project that I could look at that contains well written > code? > failing that is there a book that teaches good style? > > I am refering to things like adding a leading m_ to class member variables > (which looks horrid to me but I am willing to learn), and smart locks > (mutexs > which unlock on destruct). > > Thanks for any suggestions. > > -Steve > > Isn't all C code valid C++? problem solved. --20cf3005140ac514c304ceda521f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 19 Nov= ember 2012 04:59, Steve Simon <steve@quintile.net> wrote:
I need to learn c++ for work - people have strong opinions on
languages I know, and not everyone likes c++ but its a requirment for me.
I really want to develop a good sence of c++ style, I learnt C at the feet = of
K&R and then the plan9 sourcecode so I learnt how to write clean elegan= t code
(I think :-). The problem I am finding is there are many c++ styles and I h= ave
yet to find a clean and elegant one.

anyone sugest a project that I could look at that contains well written cod= e?
failing that is there a book that teaches good style?

I am refering to things like adding a leading m_ to class member variables<= br> (which looks horrid to me but I am willing to learn), and smart locks (mute= xs
which unlock on destruct).

Thanks for any suggestions.

-Steve


Isn&#= 39;t all C code valid C++? problem solved.
--20cf3005140ac514c304ceda521f--