Path: news.cs.au.dk!news.net.uni-c.dk!newsfeed1.uni2.dk!newsfeed.online.be!newsfeed.ision.net!ision!skynet.be!poster!not-for-mail From: Atle Newsgroups: comp.lang.beta Subject: Coding style? Date: Sat, 24 Jun 2000 15:00:12 -0100 Organization: Belgacom Skynet SA/NV Lines: 24 Message-ID: <3954DB0C.EA6C84AF@skynet.be> NNTP-Posting-Host: dialup363.charleroi.skynet.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news0.skynet.be 961852159 25638 194.78.239.43 (24 Jun 2000 13:09:19 GMT) X-Complaints-To: abuse@skynet.be NNTP-Posting-Date: 24 Jun 2000 13:09:19 GMT X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en Xref: news.cs.au.dk comp.lang.beta:12486 I am trying to learn a coding style, I have already gotten som excellent advice on semantic issues relating to exceptions. Now I am wondering about the 'Lingua Inglesia' of pattern names. I have often done like this: methodName - first char lc, first char in second word UC. ClassName - first char UC, subsequent words have first char UC object_name - all LC, often separated by under_score MACRO_NAME - Constants and macros are all UC There are lots of other possibilities for 'application defined' names: _start_with_underscore sEcondCharUC Uc_And_Under_Score I haven't yet been able to spot any 'pattern' (no pUn intended) - and some seem to write Windows-style Hungarian notation, others something entirely different. Is there a naming, indentation, etc., style convention, is one being worked on, or do I have to develop my own? Or will it become apparent that I will not need to distinguish between methods, classes, objects, etc.? Thanks, Atle