From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <7a746291161fe83e1df0401af21f6ce4@quintile.net> References: <7a746291161fe83e1df0401af21f6ce4@quintile.net> From: Mathieu Lonjaret Date: Mon, 19 Nov 2012 11:10:57 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] c++ Topicbox-Message-UUID: d8925b36-ead7-11e9-9d60-3106f5b1d025 Hello, Well, I haven't looked at the code, but Russ wrote Re2, so one could hope it's written in a style that's more familiar to you than other projects: http://code.google.com/p/re2/ Mathieu On Mon, Nov 19, 2012 at 10:59 AM, 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 >