<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
      <title>Snap on The Art of Computing </title>
    <link>https://artofcomputing.cecs.anu.edu.au/tags/snap/index.xml</link>
    <language>en-US</language>
    <author>Enthusiastic Hugo User</author>
    <rights>Copyright (c) 2014, Enthusiastic Hugo User; all rights reserved.</rights>
    <updated>Mon, 01 Jan 0001 00:00:00 UTC</updated>
    
    <item>
      <title>Running Snap! on your laptop?</title>
      <link>https://artofcomputing.cecs.anu.edu.au/post/do-labs-on-your-laptop/</link>
      <pubDate>Mon, 19 Jan 2015 11:13:58 AEDT</pubDate>
      <author>Enthusiastic Hugo User</author>
      <guid>https://artofcomputing.cecs.anu.edu.au/post/do-labs-on-your-laptop/</guid>
      <description>&lt;p&gt;Q: &amp;ldquo;Can I run Snap! on my personal computer, or some other computer outside of the lab?&amp;rdquo; &lt;br /&gt;
A: Yes of course!  &amp;ndash; and we&amp;rsquo;re including another tip for saving and loading your programs.
&lt;/p&gt;

&lt;p&gt;Simply point your browser (the latest version of Chrome preferred) to a Snap! instance, such as &lt;a href=&#34;https://artofcomputing.cecs.anu.edu.au/snap/snap.html&#34;&gt;https://artofcomputing.cecs.anu.edu.au/snap/snap.html&lt;/a&gt; and you are good to go!&lt;/p&gt;

&lt;p&gt;What you are looking at is a blank Snap! instance, you may wonder how to load/save your work in Snap!, or look at pre-existing programs, as what we did in the &lt;a href=&#34;https://artofcomputing.cecs.anu.edu.au/post/first-look-at-snap&#34;&gt;warm-up excercise&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Open the Snap! environment via &lt;a href=&#34;https://artofcomputing.cecs.anu.edu.au/snap/snap.html#open:https://artofcomputing.cecs.anu.edu.au/code/kpart.xml&#34;&gt;this link&lt;/a&gt;, it will automatically load a simple program into the middle gray space. Notice that the &amp;lsquo;program&amp;rsquo; consists of a series of blocks colored differently based on their functions. Press the gree flag on its top, or on the upper right-hand-corner of the your browser window to start the program. (With your computer speaker on!), see/hear what happens .&lt;/p&gt;

&lt;p&gt;Now open &lt;a href=&#34;http://artofcomputing.cecs.anu.edu.au/snap/snap.html#open:http://snap.berkeley.edu/snapsource/demo/kanon.xml&#34;&gt;this link&lt;/a&gt;, excute the program as above. Can you see/hear how this three-part canon is built from the part above?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The first way is to load the program from a file saved on your computer in so-called &lt;em&gt;xml format&lt;/em&gt;. If you click on the paper icon at the upper left hand side of the Snap! window, you will see a menu item that says &amp;ldquo;Import &amp;hellip;&amp;rdquo; (see picture below). Click on it, and you will be presented with a file chooser. Choose your local xml file, wait, and voila! - the program appears in your workspace.&lt;/p&gt;

&lt;p&gt;&lt;center&gt;
    &lt;image src=/images/snap_import.png height=300&gt;
&lt;/center&gt;&lt;/p&gt;

&lt;p&gt;Now with test your setup with the Canon in the &lt;a href=&#34;https://artofcomputing.cecs.anu.edu.au/post/first-look-at-snap&#34;&gt;warm-up programs&lt;/a&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Save the program xml somewhere to your computer, e.g. the desktop. &lt;a href=&#34;http://snap.berkeley.edu/snapsource/demo/kanon.xml&#34;&gt;http://snap.berkeley.edu/snapsource/demo/kanon.xml&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Load this program via the &amp;ldquo;Import &amp;hellip; &amp;rdquo; menu, test that it runs.&lt;/li&gt;
&lt;li&gt;Change something in the program, and then user &amp;ldquo;export project &amp;hellip; &amp;rdquo; to save your work to disk.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The second way is by encoding the URL that contain the program - i.e., the keyword &amp;ldquo;#open:&amp;rdquo; followed by an ULR to the xml file. For example, as was done in the warm-up excercise: &lt;a href=&#34;http://artofcomputing.cecs.anu.edu.au/snap/snap.html#open:http://snap.berkeley.edu/snapsource/demo/kanon.xml&#34;&gt;http://artofcomputing.cecs.anu.edu.au/snap/snap.html#open:http://snap.berkeley.edu/snapsource/demo/kanon.xml&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>A first look at Snap!</title>
      <link>https://artofcomputing.cecs.anu.edu.au/post/first-look-at-snap/</link>
      <pubDate>Thu, 01 Jan 2015 11:13:58 AEDT</pubDate>
      <author>Enthusiastic Hugo User</author>
      <guid>https://artofcomputing.cecs.anu.edu.au/post/first-look-at-snap/</guid>
      <description>&lt;p&gt;&lt;img align=&#39;right&#39; height=100 title=&#39;snap tree&#39; src=&#34;http://bjc.berkeley.edu/bjc-r/img/recur/tree-nobase.png&#34;&gt;&lt;/img&gt;
Snap! is is a visual, drag-and-drop programming language. This post aims to give you a bit of its background, and a few pointers to explore.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Designed in UC Berkeley, Snap! is an extension of the visual programming tool Scratch. It does not need specialized hardware or complicated installation, and will run within any modern browser &amp;ndash; we recommend a recent version of Chrome.&lt;/p&gt;

&lt;p&gt;If you are new to programming, let&amp;rsquo;s take a sneak peek at the programming environment together, and excute a first snap! program:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open the Snap! environment via &lt;a href=&#34;https://artofcomputing.cecs.anu.edu.au/snap/snap.html#open:https://artofcomputing.cecs.anu.edu.au/code/kpart.xml&#34;&gt;this link&lt;/a&gt;, it will automatically load a simple program into the middle gray space. Notice that the &amp;lsquo;program&amp;rsquo; consists of a series of blocks colored differently based on their functions. Press the gree flag on its top, or on the upper right-hand-corner of the your browser window to start the program. (With your computer speaker on!), see/hear what happens .&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Now open &lt;a href=&#34;http://snap.berkeley.edu/snapsource/snap.html#present:Username=jens&amp;amp;ProjectName=Kanon&amp;amp;editMode&amp;amp;noRun&#34;&gt;this link&lt;/a&gt;, excute the program as above. Can you see/hear how this three-part canon is built from the part above?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;p&gt;&lt;/p&gt;
&lt;br/&gt;
If you are an expereinced programmer, you may want to take a look &lt;em&gt;under-the-hood&lt;/em&gt; and see how Snap! is implmented &lt;a href=&#34;https://github.com/jmoenig/Snap--Build-Your-Own-Blocks&#34;&gt;on github&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For the even more adventurous, you may want to think about the one or two questions below, and &lt;a href=&#34;http://people.cecs.anu.edu.au/projects/pid/0000001087&#34;&gt;help us improve Snap!&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;How to add a new block, such as interpreting a string of text (e.g. &amp;ldquo;March 21, 2012&amp;rdquo;) as a date?&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;How do you usually make a program run faster? Can we speed up Snap?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    
  </channel>
</rss>