[Talk] Question about scripts

Lawrence Kagan talk@flux.org
Thu, 07 Sep 2006 14:26:33 -0400


--=-S04DEedZfKSVUhM3fdNQ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2006-09-07 at 12:29 -0400, Kwan Lowe wrote:

> Not really Linux related so I'm posting it here...
> 
> Say you get a request to print out the first 10 digits of Pi in the fewest possible
> number of lines (source).  You turn in the following:
> 
> #!/bin/sh
> echo "3.141592653"
> 
> The instructor marks it wrong, and argues that it's contrary to the spirit of the
> assignment.  What do you folks think?



The mark can be contested and won.  'Spirits' don't live in code
although some of my code acts possessed sometimes.  I believe the answer
should be marked correct because the coder used a clever and clear
approach to the problem.  Now if the instructor truly wanted the student
to learn how to retrieve the value of Pi from some constant or compute
the value, he should be more clear and allow the student to solve the
problem in this manner for extra credit.

This reminds me of a story I heard recently.  A father told his child
that she could only watch one hour of TV each night.  So the child used
the Tivo and fast forwarded through the commercials so she got to see
two programs.  She was clever and deserves to rewarded for that.  

Just my two cents.

Larry 

--=-S04DEedZfKSVUhM3fdNQ
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.3">
</HEAD>
<BODY>
On Thu, 2006-09-07 at 12:29 -0400, Kwan Lowe wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Not really Linux related so I'm posting it here...</FONT>

<FONT COLOR="#000000">Say you get a request to print out the first 10 digits of Pi in the fewest possible</FONT>
<FONT COLOR="#000000">number of lines (source).  You turn in the following:</FONT>

<FONT COLOR="#000000">#!/bin/sh</FONT>
<FONT COLOR="#000000">echo &quot;3.141592653&quot;</FONT>

<FONT COLOR="#000000">The instructor marks it wrong, and argues that it's contrary to the spirit of the</FONT>
<FONT COLOR="#000000">assignment.  What do you folks think?</FONT>
</PRE>
</BLOCKQUOTE>
<PRE>

</PRE>
The mark can be contested and won.&nbsp; 'Spirits' don't live in code although some of my code acts possessed sometimes.&nbsp; I believe the answer should be marked correct because the coder used a clever and clear approach to the problem.&nbsp; Now if the instructor truly wanted the student to learn how to retrieve the value of Pi from some constant or compute the value, he should be more clear and allow the student to solve the problem in this manner for extra credit.<BR>
<BR>
This reminds me of a story I heard recently.&nbsp; A father told his child that she could only watch one hour of TV each night.&nbsp; So the child used the Tivo and fast forwarded through the commercials so she got to see two programs.&nbsp; She was clever and deserves to rewarded for that.&nbsp; <BR>
<BR>
Just my two cents.<BR>
<BR>
Larry 
</BODY>
</HTML>

--=-S04DEedZfKSVUhM3fdNQ--