<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SE1SA5 &#8211; Programming Project Review</title>
	<atom:link href="http://blog.jamesbmarshall.com/2009/03/se1sa5-programming-project-review/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jamesbmarshall.com/2009/03/se1sa5-programming-project-review/</link>
	<description></description>
	<lastBuildDate>Sun, 04 Dec 2011 21:19:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James</title>
		<link>http://blog.jamesbmarshall.com/2009/03/se1sa5-programming-project-review/comment-page-1/#comment-55</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 16 Mar 2009 23:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jamesmarshall.org.uk/?p=489#comment-55</guid>
		<description>I think the freedom to choose between the two languages would have been a more appropriate move, as it gives more confident / proficient coder-writers a chance to show off their skills.

I learnt a little Java when I did my OU course last year so my mind is already familiar with classes - having to learn C feels like a step backwards; albeit a necessary one.

I don&#039;t know if doing the whole thing again in C++ would be of help or hinderence - I don&#039;t think developing a chatbot in either language is easy.</description>
		<content:encoded><![CDATA[<p>I think the freedom to choose between the two languages would have been a more appropriate move, as it gives more confident / proficient coder-writers a chance to show off their skills.</p>
<p>I learnt a little Java when I did my OU course last year so my mind is already familiar with classes &#8211; having to learn C feels like a step backwards; albeit a necessary one.</p>
<p>I don&#8217;t know if doing the whole thing again in C++ would be of help or hinderence &#8211; I don&#8217;t think developing a chatbot in either language is easy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Harvey</title>
		<link>http://blog.jamesbmarshall.com/2009/03/se1sa5-programming-project-review/comment-page-1/#comment-54</link>
		<dc:creator>Andrew Harvey</dc:creator>
		<pubDate>Mon, 16 Mar 2009 23:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jamesmarshall.org.uk/?p=489#comment-54</guid>
		<description>Strictly, you shouldn&#039;t use fflush() for stdin.
http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html

Probably best to read everything in as a string from the user, do some checks and convert it as appropriate.

I like the review though. Do you think the freedom to do this in C++ would have helped or hindered? (i.e. uncertainties over string handling, etc.)

Andrew</description>
		<content:encoded><![CDATA[<p>Strictly, you shouldn&#8217;t use fflush() for stdin.<br />
<a href="http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html" rel="nofollow">http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html</a></p>
<p>Probably best to read everything in as a string from the user, do some checks and convert it as appropriate.</p>
<p>I like the review though. Do you think the freedom to do this in C++ would have helped or hindered? (i.e. uncertainties over string handling, etc.)</p>
<p>Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Calderbank</title>
		<link>http://blog.jamesbmarshall.com/2009/03/se1sa5-programming-project-review/comment-page-1/#comment-56</link>
		<dc:creator>Will Calderbank</dc:creator>
		<pubDate>Mon, 16 Mar 2009 13:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jamesmarshall.org.uk/?p=489#comment-56</guid>
		<description>i had the same problem with scanf as you did with getchar, it turned out, like you said the buffer wasnt beeing flushed properly. I found using getchar twice would only work if there was 1 character then the return, and therefore if in my case someone something totally random in it would loop the lenght of that random string. To solve it i manually flushed the buffer, with fflush(stdin).</description>
		<content:encoded><![CDATA[<p>i had the same problem with scanf as you did with getchar, it turned out, like you said the buffer wasnt beeing flushed properly. I found using getchar twice would only work if there was 1 character then the return, and therefore if in my case someone something totally random in it would loop the lenght of that random string. To solve it i manually flushed the buffer, with fflush(stdin).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

