www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - What do you think about my D style guide? - CLAYTEK_3D_STYLEGUIDE.d

reply clayasaurus <clayasaurus_member pathlink.com> writes:
Hello. I've been working on a project and something that is setting me back
is to have a good consistent style to code with. 

I've created a style guide for myself and am posting it here for comments
and critiques. 

Some of you will have differing opinions on things which may be constructive.
Also, I'm open to any additional ideas.

Thanks all for your time

(see attachment)
(http://svn.dsource.org/svn/projects/claytek/trunk/CLAYTEK_3D_STYLEGUIDE.d)


begin 0644 CLAYTEK_3D_STYLEGUIDE.d

M*BHJ*BHJ*BHJ*BHJ*BHJ*GP*?"`B2&5R92!I;B!T:&ES(&=U:61E('!R;W9I


M('-T>6QE"B!I;G1R;V1U8V5S(&-O;G-I<W1E;G0 86YD(')E861A8FQE('-T
M>6QE(&%C<F]S<R!A;&P 0VQA>51E:PH 8V]D92!F:6QE<RX 270 :7, 8F%S
M960 ;VX =&AE($0 <')O9W)A;6UI;F< <W1Y;&4L($U(3RP*(&%N9"!S=6=G
M97-T:6]N<R!F<F]M('1H92!D:6=I=&%L;6%R<R!D+D0 ;F5W<V=R;W5P+B(*
M?"`)"2T 8VQA>6%S875R=7,)"0D)"0I\+2TM+2TM+2TM+2TM+2TM+2TM+2TM
M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM?`I\*BHJ
M*BHJ*BHJ*BHJ*BHJ*BH 5F%R:6%B;&4 1&5C;W)A=&EO;B`J*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ?`I\7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?
M7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U\*?"`B1F]R('=H870 :71S
M('=O<G1H+"!F;W( =&AE(&QA<W0 ;6%N>2UY96%R<R!N;W<L($DG=F4 " EG
M96YE<F%L;'D 8F5E;B!P<F5F:7AI;F< ;7D :61E;G1I9F5R(&YA;65S('=I
M=&  82!C;V1E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VYS(&UU<W0 8F4 <&QA:6YL>2!M87)K960 87, <W5C:"P 86YD(&UU
M<W0 ;F]T(&)E(&UI<W)E<')E<V5N=&5D(&%S(&)E:6YG('1H90H)"6]R:6=I
M;F%L('-O9G1W87)E+ H*"0DS+B!4:&ES(&YO=&EC92!M87D ;F]T(&)E(')E
M;6]V960 ;W( 86QT97)E9"!F<F]M(&%N>2!S;W5R8V4 9&ES=')I8G5T:6]N
M+ HJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
:*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ+PH*" HJ
`
end
Aug 01 2004
next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
hungarian notation must die!  ;)

i hate to say it but your style annoys me.  my style would probably be as
equally annoying to you.  which is why i never really saw the point in
universal coding styles, unless there are several people working on the same
project!
Aug 02 2004
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Jarrett Billingsley wrote:

 hungarian notation must die!  ;)
 
 i hate to say it but your style annoys me.  my style would probably be as
 equally annoying to you.  which is why i never really saw the point in
 universal coding styles, unless there are several people working on the same
 project!
My department doesn't seem to be able to agree on a style. Maybe it's time to get together. The only trouble is that there are different code editors around - those that use tabs and those (Emacs) that indent by two spaces. And some of the others' styles are already abominable to me. Like economising on spaces, and making every blank like a comment.... (This is in Fortran 90 - it appears that the one bit of coding style in the department is to use this!) Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Aug 02 2004
prev sibling parent Andy Friesen <andy ikagames.com> writes:
clayasaurus wrote:
 Hello. I've been working on a project and something that is setting me back
 is to have a good consistent style to code with. 
 
 I've created a style guide for myself and am posting it here for comments
 and critiques. 
 
 Some of you will have differing opinions on things which may be constructive.
 Also, I'm open to any additional ideas.
 
 Thanks all for your time
Bear in mind that this is all purely subjective. Sticking with a standard is more important than what precise standard is used. So... I *hate*, loathe, despise, and abhor (in that precise order, no less) variable decorations of all description. Variable names should be unique, beautiful little snowflakes. In particular, locals and parameters are never used far from their declaration anyway. Structs are basically useful for three things: communication with C, value type semantics, and as a speed hack. (remember the first rule of optimization: /Don't/) Keep in mind that the public interface of a class is going to be referred to quite a lot more than its internals: put private things at the end, public at the top. And most importantly: Break your own rules if there's a good enough reason to. The entire point is to write code that's easy to read. -- andy
Aug 02 2004