Windows2000/private/shell/docs/style.htm
2020-09-30 17:12:32 +02:00

28 lines
1.3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>&nbsp;</P>
<OL>
</I><LI>Dont use tabs</LI>
</B><P>Use a 4-space indent instead. Before you start writing code, make sure you enable your editors &quot;map tabs to spaces&quot; feature. In MSDEV, you can find this option by clicking &quot;tools&quot;=&gt;&quot;options&quot;=&gt;&quot;tabs.&quot;</P>
<B><LI>Dont use standard C runtime library functions</LI>
</B><P>Weve got internal APIs for everything. So if youre about to type &quot;strcmp&quot; 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. Petzolds <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 &quot;if&quot; and &quot;(&quot;. Put a space between &quot;switch&quot; and &quot;(&quot;. Dont put a space between &quot;foo&quot; and &quot;(&quot;.</P></FONT></BODY>
</OL>
</HTML>