<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to dev-docs</title><link>https://sourceforge.net/p/fldigi/wiki/dev-docs/</link><description>Recent changes to dev-docs</description><atom:link href="https://sourceforge.net/p/fldigi/wiki/dev-docs/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 27 Jan 2025 19:54:48 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/fldigi/wiki/dev-docs/feed" rel="self" type="application/rss+xml"/><item><title>dev-docs modified by Haris Andrianos</title><link>https://sourceforge.net/p/fldigi/wiki/dev-docs/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,23 +1,23 @@
 ### Developers
-These documents are located on the http://www.w1hkj.com site, docs directory
-
-* [Advanced Bash](http://www.w1hkj.com/docs/advanced_bash.pdf)
-* [Bash Guide](http://http://www.w1hkj.com/docs/bash_guide.html)
-* [Beginners Bash](http://www.w1hkj.com/docs/beginners_bash.pdf)
-* [Doxygen Manual](http://www.w1hkj.com/docs/doxygen_manual-1.8.4.pdf)
-* [Git User Manual](http://www.w1hkj.com/docs/git_user_manual.pdf)
-* [Gnu Linux Tools Summary](http://www.w1hkj.com/docs/gnu_linux_tools_summary.pdf)
-* [Gnu Debugger (gdb) Manual](http://www.w1hkj.com/docs/gdb.pdf)
-* [Intro to Linux](http://www.w1hkj.com/docs/intro-linux.pdf)
-* [Linux Fundamentals](http://www.w1hkj.com/docs/linux_fundamentals.pdf)
-* [Linux Tutorial](http://www.w1hkj.com/docs/linux_tutorial.pdf)
-* [Introduction to the Bash Shell](http://www.w1hkj.com/docs/shell_intro.pdf)
-* [SSH Guide](http://www.w1hkj.com/docs/ssh-guide.txt)
-* [Stgit Tutorial](http://www.w1hkj.com/docs/stgit-tutorial.html)
-* [Pro-Git](http://www.w1hkj.com/docs/pro_git.pdf)
-
-
-* [Writing C++ code for fldigi](http://www.w1hkj.com/docs/pretty_cpp.txt) :
+These documents are located on the https://www.w1hkj.org site, docs directory
+
+* [Advanced Bash](https://www.w1hkj.org/docs/advanced_bash.pdf)
+* [Bash Guide](https://www.w1hkj.org/docs/bash_guide.html)
+* [Beginners Bash](https://www.w1hkj.org/docs/beginners_bash.pdf)
+* [Doxygen Manual](https://www.w1hkj.org/docs/doxygen_manual-1.8.4.pdf)
+* [Git User Manual](https://www.w1hkj.org/docs/git_user_manual.pdf)
+* [Gnu Linux Tools Summary](https://www.w1hkj.org/docs/gnu_linux_tools_summary.pdf)
+* [Gnu Debugger (gdb) Manual](https://www.w1hkj.org/docs/gdb.pdf)
+* [Intro to Linux](https://www.w1hkj.org/docs/intro-linux.pdf)
+* [Linux Fundamentals](https://www.w1hkj.org/docs/linux_fundamentals.pdf)
+* [Linux Tutorial](https://www.w1hkj.org/docs/linux_tutorial.pdf)
+* [Introduction to the Bash Shell](https://www.w1hkj.org/docs/shell_intro.pdf)
+* [SSH Guide](https://www.w1hkj.org/docs/ssh-guide.txt)
+* [Stgit Tutorial](https://www.w1hkj.org/docs/stgit-tutorial.html)
+* [Pro-Git](https://www.w1hkj.org/docs/pro_git.pdf)
+
+
+* [Writing C++ code for fldigi](https://www.w1hkj.org/docs/pretty_cpp.txt) :

 This file contains coding guidelines for NBEMS application source. You should follow them if you want to contribute to NBEMS.
 ###General rules
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Haris Andrianos</dc:creator><pubDate>Mon, 27 Jan 2025 19:54:48 -0000</pubDate><guid>https://sourceforge.net0d3e3d7b7fa0c8ecf67a51be24b1020fc3f23aa0</guid></item><item><title>dev-docs modified by David Freese</title><link>https://sourceforge.net/p/fldigi/wiki/dev-docs/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -7,6 +7,7 @@
 * [Doxygen Manual](http://www.w1hkj.com/docs/doxygen_manual-1.8.4.pdf)
 * [Git User Manual](http://www.w1hkj.com/docs/git_user_manual.pdf)
 * [Gnu Linux Tools Summary](http://www.w1hkj.com/docs/gnu_linux_tools_summary.pdf)
+* [Gnu Debugger (gdb) Manual](http://www.w1hkj.com/docs/gdb.pdf)
 * [Intro to Linux](http://www.w1hkj.com/docs/intro-linux.pdf)
 * [Linux Fundamentals](http://www.w1hkj.com/docs/linux_fundamentals.pdf)
 * [Linux Tutorial](http://www.w1hkj.com/docs/linux_tutorial.pdf)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Freese</dc:creator><pubDate>Wed, 30 Dec 2020 21:31:15 -0000</pubDate><guid>https://sourceforge.nete17dbff8ea7a5dc8be6c6fb01acfd09214dd7a93</guid></item><item><title>dev-docs modified by David Freese</title><link>https://sourceforge.net/p/fldigi/wiki/dev-docs/</link><description>&lt;div class="markdown_content"&gt;&lt;h3 id="developers"&gt;Developers&lt;/h3&gt;
&lt;p&gt;These documents are located on the &lt;a href="http://www.w1hkj.com" rel="nofollow"&gt;http://www.w1hkj.com&lt;/a&gt; site, docs directory&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/advanced_bash.pdf" rel="nofollow"&gt;Advanced Bash&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://http://www.w1hkj.com/docs/bash_guide.html" rel="nofollow"&gt;Bash Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/beginners_bash.pdf" rel="nofollow"&gt;Beginners Bash&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/doxygen_manual-1.8.4.pdf" rel="nofollow"&gt;Doxygen Manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/git_user_manual.pdf" rel="nofollow"&gt;Git User Manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/gnu_linux_tools_summary.pdf" rel="nofollow"&gt;Gnu Linux Tools Summary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/intro-linux.pdf" rel="nofollow"&gt;Intro to Linux&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/linux_fundamentals.pdf" rel="nofollow"&gt;Linux Fundamentals&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/linux_tutorial.pdf" rel="nofollow"&gt;Linux Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/shell_intro.pdf" rel="nofollow"&gt;Introduction to the Bash Shell&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/ssh-guide.txt" rel="nofollow"&gt;SSH Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.w1hkj.com/docs/stgit-tutorial.html" rel="nofollow"&gt;Stgit Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="" href="http://www.w1hkj.com/docs/pro_git.pdf" rel="nofollow"&gt;Pro-Git&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="" href="http://www.w1hkj.com/docs/pretty_cpp.txt" rel="nofollow"&gt;Writing C++ code for fldigi&lt;/a&gt; :&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This file contains coding guidelines for NBEMS application source. You should follow them if you want to contribute to NBEMS.&lt;/p&gt;
&lt;h3 id="general-rules"&gt;General rules&lt;/h3&gt;
&lt;p&gt;The recommended developers editor is &lt;a class="" href="https://www.geany.org/" rel="nofollow"&gt;Geany&lt;/a&gt;.  It is available for every target operating system.  Set the editor preferences to use a fixed font.  Set the tab interval to 4 spaces, use tabs for indentation.  Set the end-of-line to use the Unix standard of LF and not CR-LF which is commonly used by Windows developers.&lt;/p&gt;
&lt;h4 id="language"&gt;Language&lt;/h4&gt;
&lt;p&gt;The project language is English. All comments, variable names, class names, commit messages and so on, must be in English.&lt;/p&gt;
&lt;h4 id="version-control"&gt;Version Control&lt;/h4&gt;
&lt;p&gt;Version control is maintained using git.  The remote repository for each application is at Source Forge.&lt;/p&gt;
&lt;h3 id="style-indentation-and-braces"&gt;Style, indentation and braces&lt;/h3&gt;
&lt;h4 id="indentation"&gt;Indentation&lt;/h4&gt;
&lt;p&gt;Use TABS (ASCII character #9) and &lt;em&gt;not&lt;/em&gt; SPACES. This allow everyone to set tab width to the preferred settings of 4 spaces / tab.&lt;/p&gt;
&lt;h4 id="brace-position"&gt;Brace position&lt;/h4&gt;
&lt;p&gt;Open braces should always be at the end of the line of the statement that begins the block. Contents of the brace should be indented by 1 tab.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;do_something&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="n"&gt;do_another_thing&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;do_something_else&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;A function with few arguments:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;hasField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;fieldName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;A function with more arguments:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;parseImpl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="n"&gt;parsingContext&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;size_t&lt;/span&gt; &lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;size_t&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="kt"&gt;size_t&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;newPosition&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
         &lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h4 id="switch-statement"&gt;"switch" statement&lt;/h4&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;switch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;something&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;something_else&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;another_thing&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;default&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;something&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h4 id="single-instruction"&gt;Single instruction&lt;/h4&gt;
&lt;p&gt;Don't omit braces around simple single-statement body:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;   &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(...)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;something&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and not:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(...)&lt;/span&gt;
    &lt;span class="n"&gt;something&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h4 id="line-length"&gt;Line length&lt;/h4&gt;
&lt;p&gt;If possible, each line of text should not exceed 80 characters, except if manual line wrapping breaks code clarity.&lt;/p&gt;
&lt;p&gt;Exception: if a comment line contains an example command or a literal URL longer than 100 characters, that line may be longer than 100 characters for ease of cut and paste.&lt;/p&gt;
&lt;h4 id="spaces-and-parentheses"&gt;Spaces and parentheses&lt;/h4&gt;
&lt;p&gt;Put spaces around operators: =, &amp;gt;, &amp;lt;, !=, +, -, /, *, ^, %, ||, &amp;amp;&amp;amp;, &amp;amp;, |:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Do not put spaces around parentheses.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Do not put spaces around "-&amp;gt;", or "."&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;object&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Do not put spaces inside brackets:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;     &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="nl"&gt;_NOT_&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Do not use space between a function name and parenthesis. No extra spaces between parameters and arguments, just after commas:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arg1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;arg2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;...)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Do use a single space before flow control statements:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;     &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="nl"&gt;_NOT_&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h4 id="end-of-line-character"&gt;End-of-line character&lt;/h4&gt;
&lt;p&gt;Configure your editor to use "\n" (UNIX convention) for end-of-line sequence, and not "\r\n" (Windows), nor "\n\r", nor any other combination.&lt;/p&gt;
&lt;h4 id="short-functions"&gt;Short functions&lt;/h4&gt;
&lt;p&gt;To the extent that it is feasible, functions should be kept small and focused.  It is, however, recognized that long functions are sometimes appropriate, so no hard limit is placed on method length. If a function exceeds 40 lines or so, think about whether it can be broken up without harming the structure of the program.&lt;/p&gt;
&lt;h4 id="limit-variable-scope"&gt;Limit Variable Scope&lt;/h4&gt;
&lt;p&gt;The scope of local variables should be kept to a minimum. By doing so, you increase the readability and maintainability of your code and reduce the likelihood of error. Each variable should be declared in the innermost block that encloses all uses of the variable.&lt;/p&gt;
&lt;p&gt;Local variables should be declared at the point they are first used. Nearly every local variable declaration should contain an initializer. If you don't yet have enough information to initialize a variable sensibly, you should postpone the declaration until you do.&lt;/p&gt;
&lt;h3 id="naming-conventions"&gt;Naming conventions&lt;/h3&gt;
&lt;h4 id="classes"&gt;Classes&lt;/h4&gt;
&lt;p&gt;Classes names are in lower-case. However, each word should start with an upper-case letter, or be separated with an underscore. Examples: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;exampleClass&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;anotherExampleClass&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;example_class&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;another_example_class&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h4 id="variablesparametersmember-variables"&gt;Variables/parameters/member variables&lt;/h4&gt;
&lt;p&gt;Variable names should be enough explicit so that someone reading the code can instantly understand what the variable contains and is used for.&lt;/p&gt;
&lt;p&gt;Variables names are in lower-case.&lt;/p&gt;
&lt;p&gt;DO NOT use Hungarian notation.&lt;/p&gt;
&lt;p&gt;Examples: "address", "recipientMailbox", "recipient_mailbox" ...&lt;/p&gt;
&lt;p&gt;Avoid variable names with less than 5 characters, except for loop indices and iterators.&lt;/p&gt;
&lt;p&gt;NOTE: variable names like "it", "jt" and so on are commonly used when iterating over STL containers.&lt;/p&gt;
&lt;h4 id="member-variables"&gt;Member variables&lt;/h4&gt;
&lt;p&gt;Use a prefix for class members: "m_" for normal class members, and "sm_" for static members, if they are not public.&lt;/p&gt;
&lt;p&gt;Examples: "m_mailboxList", "sm_instance"...&lt;/p&gt;
&lt;h4 id="files"&gt;Files&lt;/h4&gt;
&lt;p&gt;Use ".h" for header files, and ".cxx" for implementation files.&lt;/p&gt;
&lt;p&gt;If possible, files should be named exactly like the class they define. For example, class "mailboxList" should be declared in "mailboxList.h" and &lt;br/&gt;
implemented in "mailboxList.cxx".&lt;/p&gt;
&lt;p&gt;Implementation files are placed in src/implementation-directory&lt;/p&gt;
&lt;p&gt;Header files are placed either in ~~~src/include/~~~, or in ~~src/implementation-directory/include/~~~.  The latter if the headers are only used by the implementation.&lt;/p&gt;
&lt;h4 id="namespaces"&gt;Namespaces&lt;/h4&gt;
&lt;p&gt;Namespaces are named exactly like variables.&lt;/p&gt;
&lt;h4 id="constants"&gt;Constants&lt;/h4&gt;
&lt;p&gt;Constants are ALL_CAPS_WITH_UNDERSCORES.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="cp"&gt;#define PI_DIV_2 (M_PI / 2.0)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h3 id="comments"&gt;Comments&lt;/h3&gt;
&lt;p&gt;The ~~~//~~~ (two slashes) style of comment tags should be used in most situations.  Where ever possible, place comments above the code instead of beside it.&lt;/p&gt;
&lt;p&gt;Comments can be placed at the end of a line when one or more spaces follow.&lt;br/&gt;
Tabs should NOT be used to indent at the end of a line:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;myClass&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
 &lt;span class="k"&gt;private&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;m_member1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;         &lt;span class="c1"&gt;// first member&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;m_secondMember&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    &lt;span class="c1"&gt;// second member&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Note about special comment blocks: Doxygen is used to generate documentation from annotated C++ sources, so be sure to use available markings to annotate the purpose of the functions/classes and the meaning of the parameters.&lt;/p&gt;
&lt;p&gt;Doxygen comment are delineated with three slashes ~~~///~~~ vice two.&lt;/p&gt;
&lt;h3 id="miscellaneous"&gt;Miscellaneous&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;No code should be put in header files, only declarations (except for templates and inline functions).&lt;/li&gt;
&lt;li&gt;Try to avoid public member variables. Write accessors instead (get/set).&lt;/li&gt;
&lt;li&gt;Do NOT use 'using namespace' (and especially not in header files). All namespaces should be explicitely named. (notable exception is for std, "using namespace std".&lt;/li&gt;
&lt;li&gt;Use the 'get' and 'set' prefix for accessors:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nl"&gt;Variable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="n"&gt;m_foo&lt;/span&gt;
&lt;span class="n"&gt;Get&lt;/span&gt; &lt;span class="nl"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;getFoo&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;Set&lt;/span&gt; &lt;span class="nl"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;setFoo&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;No more than one class per file (except for inner classes).&lt;/li&gt;
&lt;li&gt;Put the #include for the class's header file first in the implementation  file.&lt;/li&gt;
&lt;li&gt;Put the copyright header at the top of each file.&lt;/li&gt;
&lt;li&gt;Write "unique inclusion #ifdef's" for header files:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="cp"&gt;#ifndef N1_N2_FILENAME_HPP_INCLUDED&lt;/span&gt;
&lt;span class="cp"&gt;#define N1_N2_FILENAME_HPP_INCLUDED&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="cp"&gt;#endif &lt;/span&gt;&lt;span class="c1"&gt;// N1_N2_FILENAME_HPP_INCLUDED&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;where N1 is the top-level namespace, N2 the sub-namespace, and so on.  For example, class ~~~vmime::utility::stringUtils~~~ uses the following&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="cp"&gt;#ifdef name: VMIME_UTILITY_STRINGUTILS_HPP_INCLUDED.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;h3 id="copyright-header"&gt;Copyright header&lt;/h3&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c1"&gt;// =====================================================================&lt;/span&gt;
&lt;span class="c1"&gt;//&lt;/span&gt;
&lt;span class="c1"&gt;// file_name.cxx&lt;/span&gt;
&lt;span class="c1"&gt;//&lt;/span&gt;
&lt;span class="c1"&gt;// Authors:&lt;/span&gt;
&lt;span class="c1"&gt;//&lt;/span&gt;
&lt;span class="c1"&gt;// Copyright (C) 2019, Dave Freese, W1HKJ&lt;/span&gt;
&lt;span class="c1"&gt;//&lt;/span&gt;
&lt;span class="c1"&gt;// This is free software; you can redistribute it and/or modify&lt;/span&gt;
&lt;span class="c1"&gt;// it under the terms of the GNU General Public License as published by&lt;/span&gt;
&lt;span class="c1"&gt;// the Free Software Foundation; either version 3 of the License, or&lt;/span&gt;
&lt;span class="c1"&gt;// (at your option) any later version.&lt;/span&gt;
&lt;span class="c1"&gt;//&lt;/span&gt;
&lt;span class="c1"&gt;// This software is distributed in the hope that it will be useful,&lt;/span&gt;
&lt;span class="c1"&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;/span&gt;
&lt;span class="c1"&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;/span&gt;
&lt;span class="c1"&gt;// GNU General Public License for more details.&lt;/span&gt;
&lt;span class="c1"&gt;//&lt;/span&gt;
&lt;span class="c1"&gt;// You should have received a copy of the GNU General Public License&lt;/span&gt;
&lt;span class="c1"&gt;// along with this program.  If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.&lt;/span&gt;
&lt;span class="c1"&gt;//&lt;/span&gt;
&lt;span class="c1"&gt;// =====================================================================&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Freese</dc:creator><pubDate>Tue, 23 Jun 2020 14:22:39 -0000</pubDate><guid>https://sourceforge.neta83d91b37b4368b2817891a3f810e13745a9adb3</guid></item></channel></rss>