<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Floehopper: Tag programming</title>
    <link>http://blog.floehopper.org/articles/tag/programming?tag=programming</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts on the bergy bits of life</description>
    <item>
      <title>Remote Pair Programming</title>
      <description>&lt;p&gt;A while ago, &lt;a href="http://blog.seagul.co.uk/"&gt;Chris&lt;/a&gt; mentioned that &lt;a href="http://blog.seagul.co.uk/articles/2007/09/29/monitoring-the-mac-osx-filesystem-with-ruby"&gt;we&amp;#8217;ve been trying out a few ideas&lt;/a&gt; for making remote &lt;a href="http://www.extremeprogramming.org/rules/pair.html"&gt;pair-programming&lt;/a&gt; easier. We&amp;#8217;ve been doing quite a bit more remote pairing recently. Most of the time we just use a combination of &lt;a href="http://en.wikipedia.org/wiki/VNC"&gt;&lt;span class="caps"&gt;VNC&lt;/span&gt;&lt;/a&gt; (I&amp;#8217;ve been using &lt;a href="http://www.redstonesoftware.com/products/vine/server/vineosx/index.html"&gt;Vine Server&lt;/a&gt;) and voice over &lt;a href="http://www.skype.com/"&gt;Skype&lt;/a&gt; (using a headset really helps).&lt;/p&gt;


	&lt;p&gt;But something else we&amp;#8217;ve used successfully is multi-user &lt;a href="http://www.gnu.org/software/screen/"&gt;&lt;span class="caps"&gt;GNU&lt;/span&gt; screen&lt;/a&gt; sessions. The advantage of this technique is that much less bandwidth is required and the terminal is much more responsive. I thought I&amp;#8217;d post the magic incantation we&amp;#8217;ve been using (on &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;&lt;span class="caps"&gt;OSX&lt;/span&gt;&lt;/a&gt;), in case anyone else finds it useful&amp;#8230;&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;  # on the server
  sudo chmod u+s /usr/bin/screen

  # first user connects to server over ssh and runs the following
  screen -S &amp;lt;session_name&amp;gt;
  ctrl-A :multiuser on
  ctrl-A :acladd &amp;lt;client_username&amp;gt;

  # second user connects to server over ssh and runs the following
  screen -x &amp;lt;server_username&amp;gt;/&amp;lt;session_name&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 13 Mar 2008 09:48:22 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d04659dc-9918-4e46-8387-35eb394e538f</guid>
      <author>James Mead</author>
      <link>http://blog.floehopper.org/articles/2008/03/13/remote-pair-programming</link>
      <category>pair</category>
      <category>programming</category>
      <category>agile</category>
      <category>xp</category>
      <category>gnu</category>
      <category>screen</category>
      <category>vnc</category>
      <category>skype</category>
      <category>osx</category>
      <category>terminal</category>
    </item>
    <item>
      <title>Mocha in Java using bytecode manipulation</title>
      <description>&lt;p&gt;My former colleague and &lt;a href="http://asm.objectweb.org/"&gt;bytecode&lt;/a&gt; maestro &lt;a href="http://digital-compulsion.blogspot.com/"&gt;Stacy Curl&lt;/a&gt; has an &lt;a href="http://digital-compulsion.blogspot.com/2006/09/java-mocking-without-injection-same.html"&gt;interesting article&lt;/a&gt; explaining how it would be possible to implement &lt;a href="http://mocha.rubyforge.org"&gt;Mocha&lt;/a&gt; in &lt;a href="http://java.sun.com/"&gt;Java&lt;/a&gt; using experience from his &lt;a href="http://picounit.codehaus.org/"&gt;PicoUnit&lt;/a&gt; project.&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s good to be reminded that meta-programming is possible in Java, but just a bit more effort.&lt;/p&gt;</description>
      <pubDate>Sat, 16 Sep 2006 14:43:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:afe10f9a-e930-4e80-9e10-d8c65f682f4e</guid>
      <author>James Mead</author>
      <link>http://blog.floehopper.org/articles/2006/09/16/mocha-in-java-using-bytecode-manipulation</link>
      <category>ruby</category>
      <category>java</category>
      <category>bytecode</category>
      <category>mocha</category>
      <category>mock</category>
      <category>pico</category>
      <category>unit</category>
      <category>dependency</category>
      <category>injection</category>
      <category>meta</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
