    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>ACCU  :: From the Coalface</title>
        <link>https://members.accu.org/index.php/articles/670</link>
        <description>Professionalism in Programming</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Administrator</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.xaraya.org" /> 
        <admin:errorReportsTo rdf:resource="mailto:webeditor@accu.org" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>




<div class="xar-mod-head"><span class="xar-mod-title">CVu Journal Vol 16, #3 - Jun 2004</span></div>

<table border="0" cellpadding="1" cellspacing="0">
    <tbody>
    <tr>
        <td valign="top">
            Browse in :
       </td>
       <td valign="top">

                                            <a href="https://members.accu.org/index.php/articles/">All</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c76/">Journals</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c77/">CVu</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c102/">163</a>
<br />
</td>
   </tr>
   </tbody>
</table>




<div class="xar-error">
   <p>
 <strong>Note:</strong> when you create a new publication type,
the articles module will automatically use the templates
<em>user-display-[publicationtype].xt</em>
and <em>user-summary-[publicationtype].xt</em>.
If those templates do not exist when you try to preview or display a new article,
you'll get this warning :-)  Please place your own templates in themes/<em>yourtheme</em>/modules/articles . The templates will get the extension .xt there. </p>
</div>
<div class="xar-norm xar-standard-box-padding">
   <h1><strong>Title:</strong>&nbsp;From the Coalface</h1>
<p><strong>Author:</strong>&nbsp;</p>
<p>
<strong>Date:</strong> 03 June 2004 13:16:04 +01:00 or Thu, 03 June 2004 13:16:04 +01:00</p>
<p><strong>Summary:</strong>&nbsp;</p>
<p><strong>Body:</strong>&nbsp;<div class="sect1" lang="en">
<div class="titlepage">
<h2><a name="d0e13" id="d0e13"></a></h2>
</div>
<p>A friend approached me with a sudden desire to learn C++ in one
week. It was for a job interview. She didn't know anything about
programming, and she wanted to pick it up in such a short time so
that she could say she had the skills when she went for the
interview.</p>
<p>I explained to her that it would be much better to learn Python
in such a short time. I showed her the Python website
(www.python.org) and we looked through their tutorials to decide
which one was best for her. Installing Python was out of the
question, since she did not own a computer and we had to use the
library computers (which don't let you install anything).</p>
<p>Fortunately, though, they had some machines running Mac OS X,
which has various command-line programming tools as standard,
including Python and Emacs. It took me a while to persuade my
friend to use Mac OS instead of Windows, and there were some
teething troubles, but in the end she was able to go into the
Terminal and write simple programs using Python and Emacs. I left
her working through the exercises in the tutorial.</p>
<p>Later she called me and asked me to explain format strings and
padding, which I did (while thinking that perhaps I could have
picked a better tutorial), and then asked if I could write and
explain a quick simulation program (it didn't take long in Python
to write a simple monte-carlo queuing simulation). Meanwhile she
had somehow found herself an old copy of Stroustrup's &quot;The C++
Programming Language&quot; and asked me to show her how to invoke a C++
compiler. &quot;Oh dear&quot;, I thought, &quot;now she will need a lot more
help&quot;.</p>
<p>Needless to say, her first C++ program would never compile.
She'd apparently got C++ muddled up not only with Python but also
with higherorder logic (she had a slightly mathematical background)
and the result was an &quot;interesting&quot; programming language but it
wasn't C++. She'd tried to define a factorial function by writing
something like this:</p>
<pre class="programlisting">
#include &lt;iostream&gt;
1! = 1;
for(n = 2; n &lt; 10; n++)
n! = n * n-1!;
cout &lt;&lt; 10!
</pre>
<p>I gently explained what was wrong, gradually put the code right
and compiled it, only to find that this Macintosh was somehow
missing the C++ streams library (it must have been a mistake made
by their remote system administration software).</p>
<p>&quot;Stick to Python&quot;, I wanted to say, but no, she was determined
to work through the exercises even without trying her code on a
compiler. As I was quite busy, I left her to it, but not before
showing her ACCU.</p>
<p>I don't know what happened since then. I suppose she must have
lost interest after the interview.</p>
</div>
</p>
<p><strong>Notes:</strong>&nbsp;</p>
<p><em>More fields may be available via dynamicdata ..</em></p>
</div>
</channel>
</rss>
