<?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: Fun With BASIC</title>
	<atom:link href="http://archive.sharpesopinion.co.uk/2008/12/fun-with-basic/feed/" rel="self" type="application/rss+xml" />
	<link>http://archive.sharpesopinion.co.uk/2008/12/fun-with-basic/</link>
	<description>The Weblog of Stuart Sharpe</description>
	<lastBuildDate>Sat, 02 Jan 2010 00:29:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stu</title>
		<link>http://archive.sharpesopinion.co.uk/2008/12/fun-with-basic/#comment-2535</link>
		<dc:creator>Stu</dc:creator>
		<pubDate>Tue, 14 Apr 2009 14:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://stuartsharpe.co.uk/?p=1666#comment-2535</guid>
		<description>...And just to demonstrate the inadequacies of AppleScript...

&lt;a href=&#039;http://www.quicksnapper.com/stuartsharpe/image/applescript-inadequacies&#039; alt=&#039;View the image at QuickSnapper.com&#039; rel=&quot;nofollow&quot;&gt;&lt;img src=&#039;http://www.quicksnapper.com/files/3551/112885827949E499C185E0F_m.png&#039; title=&#039;Hosted by QuickSnapper.com&#039; /&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[	<p>&#8230;And just to demonstrate the inadequacies of AppleScript&#8230;</p>

	<p><a href='http://www.quicksnapper.com/stuartsharpe/image/applescript-inadequacies' alt='View the image at QuickSnapper.com' rel="nofollow"><img src='http://www.quicksnapper.com/files/3551/112885827949E499C185E0F_m.png' title='Hosted by QuickSnapper.com' /></a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stu</title>
		<link>http://archive.sharpesopinion.co.uk/2008/12/fun-with-basic/#comment-2532</link>
		<dc:creator>Stu</dc:creator>
		<pubDate>Tue, 14 Apr 2009 13:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://stuartsharpe.co.uk/?p=1666#comment-2532</guid>
		<description>Javascript version is slightly fudgy:

if (confirm(&quot;Do You Have A Problem?&quot;) &amp;&amp; !confirm(&quot;Can Anyone Else Help?&quot;) &amp;&amp; confirm(&quot;Can You Find Them?&quot;)) { 
alert(&quot;Maybe You Can Hire... The A-Team&quot;);
}
else alert(&quot;You Cannot Hire The A-Team&quot;);	

The issue is that &#039;Confirm&#039; gives you a choice of &#039;OK&#039; or &#039;Cancel&#039; rather than &#039;yes&#039; or &#039;no&#039;</description>
		<content:encoded><![CDATA[	<p>Javascript version is slightly fudgy:</p>

	<p>if (confirm(&#8220;Do You Have A Problem?&#8221;) &#038;& !confirm(&#8220;Can Anyone Else Help?&#8221;) &#038;& confirm(&#8220;Can You Find Them?&#8221;)) { <br />
alert(&#8220;Maybe You Can Hire&#8230; The A-Team&#8221;);<br />
}<br />
else alert(&#8220;You Cannot Hire The A-Team&#8221;);	</p>

	<p>The issue is that &#8216;Confirm&#8217; gives you a choice of &#8216;OK&#8217; or &#8216;Cancel&#8217; rather than &#8216;yes&#8217; or &#8216;no&#8217;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AJS</title>
		<link>http://archive.sharpesopinion.co.uk/2008/12/fun-with-basic/#comment-2531</link>
		<dc:creator>AJS</dc:creator>
		<pubDate>Tue, 14 Apr 2009 13:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://stuartsharpe.co.uk/?p=1666#comment-2531</guid>
		<description>Gick.  It got mangled by the formatter!  You need a line break after the first line.

And thinking about it, maybe I should have put the (y/n): within the function.  And made that regular expression /[yj]/i for compatibility with German-speakers.  Or /[yjos]/i for compatibility with German, French and Spanish-speakers.

Nah, s*d it .....  I can always put some of those features into the next release.  And if I can&#039;t think of anything to add to the next-plus-one release, then I&#039;ll just hold something back from the next one.</description>
		<content:encoded><![CDATA[	<p>Gick.  It got mangled by the formatter!  You need a line break after the first line.</p>

	<p>And thinking about it, maybe I should have put the (y/n): within the function.  And made that regular expression /[yj]/i for compatibility with German-speakers.  Or /[yjos]/i for compatibility with German, French and Spanish-speakers.</p>

	<p>Nah, s*d it &#8230;..  I can always put some of those features into the next release.  And if I can&#8217;t think of anything to add to the next-plus-one release, then I&#8217;ll just hold something back from the next one.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AJS</title>
		<link>http://archive.sharpesopinion.co.uk/2008/12/fun-with-basic/#comment-2530</link>
		<dc:creator>AJS</dc:creator>
		<pubDate>Tue, 14 Apr 2009 13:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://stuartsharpe.co.uk/?p=1666#comment-2530</guid>
		<description>Hmm.  Will this descend into a sort of &quot;how many languages can we write this in?&quot; fest?  I&#039;ll see your Ruby and raise you a Perl.

&lt;code&gt;#!/usr/bin/perl -w
use strict;
sub yn { $_ = shift; print; $_ = ; /y/i };
if ((yn &quot;Do you have a problem? (y/n): &quot;)
&amp;&amp; (!yn &quot;Can anyone else help? (y/n): &quot;)
&amp;&amp; (yn &quot;Can you find them? (y/n): &quot;)) {print &quot;Maybe you can hire… the A-Team!\n&quot;;}
else {print &quot;You Cannot Hire the A-Team.\n&quot;};
&lt;/code&gt;</description>
		<content:encoded><![CDATA[	<p>Hmm.  Will this descend into a sort of &#8220;how many languages can we write this in?&#8221; fest?  I&#8217;ll see your Ruby and raise you a Perl.</p>

	<p><code>#!/usr/bin/perl -w
use strict;
sub yn { $_ = shift; print; $_ = ; /y/i };
if ((yn &#34;Do you have a problem? (y/n): &#34;)
&#38;amp;&#38;amp; (!yn &#34;Can anyone else help? (y/n): &#34;)
&#38;amp;&#38;amp; (yn &#34;Can you find them? (y/n): &#34;)) {print &#34;Maybe you can hire… the A-Team!\n&#34;;}
else {print &#34;You Cannot Hire the A-Team.\n&#34;};
</code></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://archive.sharpesopinion.co.uk/2008/12/fun-with-basic/#comment-815</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Sun, 14 Dec 2008 17:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://stuartsharpe.co.uk/?p=1666#comment-815</guid>
		<description>Wow. I, sir, salute you.</description>
		<content:encoded><![CDATA[	<p>Wow. I, sir, salute you.</p>]]></content:encoded>
	</item>
</channel>
</rss>
