28 lines
1.3 KiB
HTML
28 lines
1.3 KiB
HTML
|
<HTML>
|
|||
|
<HEAD>
|
|||
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
|
|||
|
<META NAME="Generator" CONTENT="Microsoft Word 97">
|
|||
|
<TITLE>Coding Style Guidelines</TITLE>
|
|||
|
</HEAD>
|
|||
|
<BODY>
|
|||
|
|
|||
|
<B><I><FONT FACE="Arial"><P>Coding Style Guidelines</P>
|
|||
|
</FONT><FONT FACE="Arial" SIZE=2>
|
|||
|
<P> </P>
|
|||
|
<OL>
|
|||
|
|
|||
|
</I><LI>Don<EFBFBD>t use tabs</LI>
|
|||
|
</B><P>Use a 4-space indent instead. Before you start writing code, make sure you enable your editor<6F>s "map tabs to spaces" feature. In MSDEV, you can find this option by clicking "tools"=>"options"=>"tabs."</P>
|
|||
|
|
|||
|
<B><LI>Don<EFBFBD>t use standard C runtime library functions</LI>
|
|||
|
</B><P>We<EFBFBD>ve got internal API<50>s for everything. So if you<6F>re about to type "strcmp" ask your mentor or someone else what to use instead. </P>
|
|||
|
|
|||
|
<B><LI>Use Hungarian prefix notation when naming variables</LI>
|
|||
|
</B><P>Any Windows programming book (e.g. Petzold<6C>s <U>Programming Windows 95</U>) should have a discussion of this naming convention. Or you can just look around in the IE code base for examples.</P>
|
|||
|
|
|||
|
<B><LI>Miscellaneous</LI>
|
|||
|
|
|||
|
</B><P>Put a space between "if" and "(". Put a space between "switch" and "(". Don<6F>t put a space between "foo" and "(".</P></FONT></BODY>
|
|||
|
</OL>
|
|||
|
</HTML>
|