    <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  :: Briefs</title>
        <link>http://accu.org/index.php/journals/882</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>


        <h2>Journal Articles</h2>


<div class="xar-mod-head"><span class="xar-mod-title">CVu Journal Vol 11, #4 - Jun 1999</span></div>

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

                                            <a href="http://accu.org/index.php/journals/">All</a>

                     &gt;                         <a href="http://accu.org/index.php/journals/c76/">Journals</a>

                     &gt;                         <a href="http://accu.org/index.php/journals/c77/">CVu</a>

                     &gt;                         <a href="http://accu.org/index.php/journals/c131/">114</a>
                    (20)
<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;Briefs</h1>
<p><strong>Author:</strong>&nbsp;Administrator</p>
<p>
<strong>Date:</strong> 03 June 1999 13:15:31 +01:00 or Thu, 03 June 1999 13:15:31 +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="d0e20" id="d0e20"></a></h2>
</div>
<p>If readers put their minds to it this should become one of the
larger parts of C Vu as well as being one of the more enjoyable
reads. Do not sit down and try to come up with something. Instead,
when you come across something that triggers one of these
reactions:</p>
<div class="itemizedlist">
<ul type="disc">
<li>
<p>That's interesting</p>
</li>
<li>
<p>I never knew that</p>
</li>
<li>
<p>I knew that, but forgot it</p>
</li>
<li>
<p>That looks clever</p>
</li>
<li>
<p>etc.</p>
</li>
</ul>
</div>
<p>make a mental note (or even an actual one) and then write it up
to share with your fellow members. When in doubt, write it up and
send it in.</p>
</div>
<div class="sect1" lang="en">
<div class="titlepage">
<div>
<h2><a name="d0e42" id="d0e42"></a>Using the
Default Constructor</h2>
</div>
<div>
<h3>contributed by Hubert Matthews</h3>
</div>
</div>
<p>The Q&amp;A column in C Vu 11.3 gave the example of a student
writing &quot;<tt class="literal">void convert_case();</tt>&quot; and
wondering why the function wasn't called. I have had similar things
with students writing &quot;<tt class="literal">X x();</tt>&quot; as the
declaration of a local variable called <tt class="varname">x</tt>
of type <tt class="type">X</tt>. Of course, just like the previous
example it declares a function prototype instead of a variable. The
confusion is compounded because when they write &quot;<tt class=
"literal">new X()</tt>&quot; it works as they expect.</p>
<p class="c2"><span class="remark">Now who can tell me the
difference between writing new X and new X()?</span></p>
</div>
<div class="sect1" lang="en">
<div class="titlepage">
<div>
<h2><a name="d0e67" id="d0e67"></a>So You Want to
Do Research?</h2>
</div>
<div>
<h3>contributed by Silas Brown</h3>
</div>
</div>
<p>The following are actual quotes from people responding to my
informal enquiries about PhD research beginning in 2000 in the
field of universal information accessibility:</p>
<p>A PhD supervisor: &quot;It's fundamentally impossible and therefore
not worth bothering with.&quot;</p>
<p>Another supervisor on exactly the same thing: &quot;Why do you think
it's a research problem rather than a simple piece of software
engineering?&quot;</p>
<p>Same person: (quotes my email signature) &quot;Did you think I needed
this information?&quot;</p>
<p>A company (although they usually don't reply at all): &quot;We are
unable to sponsor you, but if you achieve it then please let us
know.&quot; Someone else: &quot;Competition is very tough here and your
chances of getting in are about zero.&quot;</p>
<p>Another from the same establishment: &quot;We're lucky to be here but
that doesn't mean we're good. Find somewhere better.&quot;</p>
<p>A researcher: &quot;Can you send me anything you've done so far? I
might want to put it in a paper I'm writing.&quot;</p>
<p>Another: &quot;I'd love to swap ideas with you but I'm on the FreeBSD
kernel development team and I receive hundreds of emails a day.
I'll get back to you when it's finished.&quot;</p>
<p>Admissions department of leading Japanese university at which
there is already such a research group: &quot;There is no English book.
Please ring....&quot; I did and got &quot;Extension number please?&quot; Any
non-numerical response got the question repeated, so I replied to
the email to no avail.</p>
<p>A &quot;universal design engineer&quot;: &quot;Best thing to do is get yourself
a real job and do it in your spare time.&quot;</p>
</div>
<div class="sect1" lang="en">
<div class="titlepage">
<div>
<h2><a name="d0e92" id="d0e92"></a>A Problem with
unsigned</h2>
</div>
<div>
<h3>contributed by Hubert Matthews <tt class=
"email">&lt;<a href=
"mailto:hubert@patrol.i-way.co.uk">hubert@patrol.i-way.co.uk</a>&gt;</tt></h3>
</div>
</div>
<p>Francis mentioned in a side note (Briefs C Vu 11.3) the implicit
conversion from <tt class="type">int</tt> to <tt class=
"type">unsigned int</tt> when using mixed arithmetic. I got caught
recently with this (heavily abridged) example:</p>
<pre class="programlisting">
    int months(unsigned int perYear) {
        return -12 / perYear;
    }
</pre>
<p>Looks innocuous, but -12 gets converted silently to an
undesirably large positive number. John Lakos in &quot;<i class=
"citetitle">Large Scale C++ Software Design</i>&quot; cautions against
the use of <tt class="type">unsigned</tt> in an interface as the
conversion is silently applied and the compiler cannot warn. Using
<tt class="type">unsigned</tt> doesn't prevent someone passing in a
negative argument, and you can only tell by converting it back to
an int anyway! Hence a better solution to the above would be:</p>
<pre class="programlisting">
    int months(int perYear) {
        assert (perYear &gt; 0);
        return -12 / perYear;
    }
</pre>
<p>which at least would give a run-time warning of a problem. (It
also prevents a possible division by zero error that the first
version might suffer.)</p>
</div>
</p>
<p><strong>Notes:</strong>&nbsp;</p>
<p><em>More fields may be available via dynamicdata ..</em></p>
</div>
</channel>
</rss>
