<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2689881006482382221</id><updated>2024-12-18T19:31:54.483-08:00</updated><category term="featured"/><category term="squeak pharo smalltalk morphic beginners"/><title type='text'>withaguide.com</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.withaguide.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-5635651283017744066</id><published>2014-10-31T17:13:00.000-07:00</published><updated>2014-10-31T17:14:09.524-07:00</updated><title type='text'>Pride and Shame: A simple code review format for developing developers</title><content type='html'>Gave this talk at BarCamp Omaha this September. Thanks to &lt;a href=&quot;https://www.youtube.com/channel/UChI86oFVtYdQZDc8_kvSWCg&quot;&gt;TechOmaha&lt;/a&gt; for recording!&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/Bw9tGbNhsdk&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/5635651283017744066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/5635651283017744066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/5635651283017744066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/5635651283017744066'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2014/10/pride-and-shame-code-review-format-for.html' title='Pride and Shame: A simple code review format for developing developers'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/Bw9tGbNhsdk/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-3647259620008530448</id><published>2012-06-17T07:21:00.000-07:00</published><updated>2012-06-17T07:21:08.218-07:00</updated><title type='text'>Installing Dart and CoffeeScript</title><content type='html'>Giving a talk on Monday, June 18 on&amp;nbsp;&lt;a href=&quot;http://www.withaguide.com/2012/04/javascript-as-assembly-exploring.html&quot;&gt;CoffeeScript and Dart&lt;/a&gt;&amp;nbsp;that will mostly be a code-along.&lt;br /&gt;
&lt;br /&gt;
For CoffeeScript, make sure you can run coffee from a command line:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;node, download here:&amp;nbsp;&lt;a href=&quot;http://nodejs.org/&quot;&gt;http://nodejs.org/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;npm, now included in node&lt;/li&gt;
&lt;li&gt;CoffeeScript, use the &lt;a href=&quot;http://autotelicum.github.com/Smooth-CoffeeScript/literate/install-notes.html&quot;&gt;CoffeeScript with Node and npm instructions&lt;/a&gt; (basically one line, but...)&lt;/li&gt;
&lt;li&gt;Some kind of programmer&#39;s text editor. I&#39;ll be using jEdit, but I&#39;d recommend VIM or TextMate as they both have great CoffeeScript integration.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
For Dart, install the Dart editor, which is an IDE with a browser (Dartium).&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Dart editor, download here:&amp;nbsp;&lt;a href=&quot;http://www.dartlang.org/docs/editor/getting-started/&quot;&gt;http://www.dartlang.org/docs/editor/getting-started/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Unpack the archive someplace and run the program from there.&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/3647259620008530448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/3647259620008530448' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/3647259620008530448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/3647259620008530448'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2012/06/installing-dart-and-coffeescript.html' title='Installing Dart and CoffeeScript'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-8578572514134185867</id><published>2012-04-30T14:01:00.005-07:00</published><updated>2012-05-06T08:53:35.531-07:00</updated><title type='text'>JavaScript as Assembly – Exploring CoffeeScript &amp; Dart</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
Just agreed to a talk on Monday, June 18 for &lt;a href=&quot;http://www.meetup.com/upfront/events/63151752/&quot;&gt;UpFront KC&lt;/a&gt;. Here is a quick summary:&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;JavaScript as Assembly – Exploring CoffeeScript &amp;amp; Dart&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
JavaScript can be both awesome and terrible. We’ll talk about the history of generating JavaScript and then work through some quick exercises in two languages that can produce JavaScript as output: CoffeeScript and Dart. Then, we’ll compare the two and look where they are headed.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
This is an interactive talk, so plan to bring a laptop and code along. At the end, you&#39;ll at least have run a bit of CoffeeScript and Dart. You don’t have to be an experienced developer, as we’ll keep it super-high level.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;About your presenter:&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
By day, David Mitchell is a mild mannered Group Technical Director at &lt;a href=&quot;http://www.vml.com/&quot;&gt;VML&lt;/a&gt;, where he is more likely to review JavaScript code than write it. By night, David is a polygot programmer, exploring languages like JavaScript, Smalltalk, and Lisp. David has presented nationally and at regional conferences and has taught programming at Sprint, Centriq, and at workshops for kids through local schools and homeschool groups.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/8578572514134185867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/8578572514134185867' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/8578572514134185867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/8578572514134185867'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2012/04/javascript-as-assembly-exploring.html' title='JavaScript as Assembly – Exploring CoffeeScript &amp; Dart'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-7768850320105226699</id><published>2010-06-30T21:11:00.000-07:00</published><updated>2010-06-30T21:15:20.264-07:00</updated><title type='text'>Apple Hater Converted? I want an iPad!</title><content type='html'>I&#39;ve tweeted several times about my misgivings on the Apple iPad.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Still not getting an iPad (I&#39;m a h8r), but Gruber&#39;s got a point against my main beef (the closed platform) &lt;a href=&quot;http://bit.ly/a0vO6j&quot;&gt;http://bit.ly/a0vO6j&lt;/a&gt;&lt;br /&gt;
Apr 02 2010&lt;/li&gt;
&lt;li&gt;No scripting/coding on the iPhone was pad enough. But the iPad could have been great 4 kids to learn 2 code. Too bad. &lt;a href=&quot;http://bit.ly/ayKHYM&quot;&gt;http://bit.ly/ayKHYM&lt;/a&gt;&lt;br /&gt;
Jan 31st&lt;/li&gt;
&lt;li&gt;if I had an iPad rather than a real computer as a kid, I’d never be a programmer today -- Alex Payne &lt;a href=&quot;http://al3x.net/2010/01/28/ipad.html&quot;&gt;http://al3x.net/2010/01/28/ipad.html&lt;/a&gt;&lt;br /&gt;
Jan 29th&lt;/li&gt;
&lt;/ul&gt;I&#39;d prefer an open platform. I think the changes to section 3.2.2 of the developer agreement are a small step in the right direction, and &amp;nbsp;I&#39;d like to see more openness. From &lt;a href=&quot;http://www.boygeniusreport.com/2010/06/14/apple-adjusts-section-3-2-2-of-developer-agreement-again-becomes-slightly-more-inclusive/&quot;&gt;Boy Genius&lt;/a&gt;:&lt;br /&gt;
&lt;blockquote&gt;Apple has again tweaked section 3.2.2 of the agreement, adding in a loophole which will allow them to approve certain interpretive code tools. The old section 3.2.2 read like this:&amp;nbsp;&lt;i&gt;No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s).﻿&lt;/i&gt;&lt;/blockquote&gt;&lt;blockquote&gt;While the updated version looks like this:&amp;nbsp;&lt;i&gt;Unless otherwise approved by Apple in writing, no interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s). Notwithstanding the foregoing, with Apple’s prior written consent, an Application may use embedded interpreted code in a limited way if such use is solely for providing minor features or functionality that are consistent with the intended and advertised purpose of the Application.﻿&lt;/i&gt;&lt;/blockquote&gt;And I particularly hope that Squeak and Scratch and other great programming environments for kids and otherwise make it onto the iPad or similar devices.&lt;br /&gt;
&lt;br /&gt;
But, the iPad is just too good for me to not want one. Stefan Miller let me try his iPad a couple of times and I&#39;m sold.&lt;br /&gt;
&lt;br /&gt;
The main reason is that I want a great PDF reader. The iPad is significantly better than the Kindle or even the Kindle DX for reading PDFs. I also want to annotate, and that capability is available as well.&lt;br /&gt;
&lt;br /&gt;
I read a lot of books on programming. These books tend to be heavy and expensive. The PDF versions can often be had for less than half the cost. But, that means carrying a laptop. (I&#39;ve been known to hold my HP EliteBook sideways with the screen orientation on portrait.&lt;br /&gt;
&lt;br /&gt;
Hopefully innovative programming environments like the Lively Kernel will make it possible to write some code on the device and do some programming with kids. Quoting &lt;a href=&quot;http://www.infoq.com/interviews/ingalls-smalltalk&quot;&gt;an interview with Dan Ingalls&lt;/a&gt;:&lt;br /&gt;
&lt;blockquote&gt;The fact that the Lively Kernel is just a web page and you click on it and you&#39;re running this system, it&#39;s a system that can do graphics editing, can produce images, can do simple programs, like Squeak that you can save a page from, means that basically anywhere you have a network computer, you can have authoring.&lt;/blockquote&gt;&lt;blockquote&gt;That&#39;s one ingredient. Another is I noticed that there is a certain challenge you have before you can become a developer for say the iPhone and yet the iPhone has Safari in it and it runs Lively Kernel applications just fine. It seems to me there is an opportunity here for something much more open than the App Store in which everybody can contribute and produce and share active content.&lt;/blockquote&gt;And, I hold out hope that &lt;a href=&quot;http://news.squeak.org/2010/06/17/squeak-running-on-ipad/&quot;&gt;eToys&lt;/a&gt;, &lt;a href=&quot;http://isqueak.org/HomePage&quot;&gt;Squeak &lt;/a&gt;and &lt;a href=&quot;http://news.ycombinator.com/item?id=1268382&quot;&gt;Scratch&lt;/a&gt; will someday be approved as well.&lt;br /&gt;
&lt;br /&gt;
But, for now, I am looking forward to compromising my principles! The iPad is on my birthday list! As are a number of apps, gift cards will be welcomed!</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/7768850320105226699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/7768850320105226699' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/7768850320105226699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/7768850320105226699'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2010/06/apple-hater-converted-i-want-ipad.html' title='Apple Hater Converted? I want an iPad!'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-8677149080702236975</id><published>2010-01-18T15:15:00.000-08:00</published><updated>2010-01-18T15:23:11.638-08:00</updated><title type='text'>Iowa Code Camp 5 on May 1, 2010</title><content type='html'>The &lt;a href=&quot;http://iowacodecamp.com&quot;&gt;site&lt;/a&gt; is still showing ICC4 info, but the countdown clock has been updated to a new date! Looks like I need to free up a spring day for some hacking!&lt;br /&gt;&lt;br /&gt;While browsing the site, found a &lt;a href=&quot;http://picasaweb.google.com/iowacodecamp/Fall2009#5402299305993242594&quot;&gt;picture&lt;/a&gt; of me presenting Seaside at ICC4. The book in the picture is Learning Programming with Robots. I think I was answering a question about Alice.</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/8677149080702236975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/8677149080702236975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/8677149080702236975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/8677149080702236975'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2010/01/iowa-code-camp-5-on-may-1-2010.html' title='Iowa Code Camp 5 on May 1, 2010'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-6891194374186746987</id><published>2010-01-12T15:00:00.000-08:00</published><updated>2010-01-12T15:02:10.136-08:00</updated><title type='text'>Nice and simple script to install rails on Ubuntu 9.10</title><content type='html'>Thanks to castilho:&lt;br /&gt;http://castilho.biz/blog/2009/11/05/ruby-on-rails-ubuntu-9-10-karmic-koala/</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/6891194374186746987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/6891194374186746987' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/6891194374186746987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/6891194374186746987'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2010/01/nice-and-simple-script-to-install-rails.html' title='Nice and simple script to install rails on Ubuntu 9.10'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-4014759566173305428</id><published>2010-01-08T16:16:00.001-08:00</published><updated>2010-01-08T16:16:59.699-08:00</updated><title type='text'>Refactoring – Ruby Ed.</title><content type='html'>&lt;p&gt;The original Refactoring book by Martin Fowler had a big impact on how I thought about writing software. I’d used the refactoring tools in Smalltalk, but the book changed the way I thought about refactoring and gave names to many new refactorings.&lt;/p&gt;  &lt;p&gt;This Ruby edition of the book is highly anticipated. I received my copy at a drawing in our local Ruby user’s group. Part of the deal was you had to write a review (you are reading it) in exchange for the book. Nearly everyone at the meeting wanted a crack at the book.&lt;/p&gt;  &lt;p&gt;The authors suggest that if you have the original work, you probably shouldn’t purchase this new edition. I don’t agree. There is plenty of new content with around 20 new refactorings and a few new code smells to make the difference worthwhile. There is a tremendous amount of thoughtful Ruby code snippets inserted throughout the text.&lt;/p&gt;  &lt;p&gt;In fact, this is one of those books that is great for everyone on a team to have a copy. It is the kind of book that can be used to raise the quality of communication across the team.&lt;/p&gt;  &lt;p&gt;You can see the respect the new authors had for the original work, as the new refactorings jibe with the old. Much of the text remains unchanged, which is good as things like the justification, most of the code smells, and background have aged well. Even the order of the refactorings has been largely preserved, which makes it easy to compare the two editions. &lt;/p&gt;  &lt;p&gt;Jay Fields and Shane Harvey have updated the examples and step-by-step examples using idiomatic Ruby. Where the original book used Java for the code examples, the examples were pretty language-agnostic, not using anything from beyond the core SDK and even avoiding things like inner classes in examples. This book leverages Ruby’s strengths.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/4014759566173305428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/4014759566173305428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/4014759566173305428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/4014759566173305428'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2010/01/refactoring-ruby-ed.html' title='Refactoring – Ruby Ed.'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-2857976444335558731</id><published>2009-11-05T13:35:00.000-08:00</published><updated>2011-04-29T12:41:37.810-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="featured"/><title type='text'>New Environment for &quot;Programming with Kids&quot;</title><content type='html'>I was psyched to see the &lt;a href=&quot;http://news.squeak.org/2009/10/31/etoys-4-released/&quot;&gt;Etoys 4.0 release last week&lt;/a&gt;. It&#39;s been a while since I looked at &lt;a href=&quot;http://www.squeakland.org/&quot;&gt;Squeakland&lt;/a&gt; so I took some time to play with it last weekend. I am directing a hands-on exploratory session called &quot;Programming with Kids&quot; this Saturday at &lt;a href=&quot;http://iowacodecamp.com/&quot;&gt;Iowa Code Camp 4&lt;/a&gt; and Etoys will definitely be the jumping off spot.&lt;br /&gt;
&lt;br /&gt;
I&#39;ll be using the Etoys to Go package. This is a nicely packaged environment that runs your code portably across Windows, Mac, and Linux without installation. You can put it on a flash drive, plug it in, and go. Save your work, switch to another computer and go. Etoys to Go is a much better name than the old &quot;One-click image&quot; since it really has little to do with the image or how many clicks it takes.&lt;br /&gt;
&lt;br /&gt;
In addition to eToys, I&#39;ll be mixing in some examples from Ducasse&#39;s great book, &quot;&lt;a href=&quot;http://scg.unibe.ch/wiki/botsinc&quot;&gt;Learn Programming with Robots&lt;/a&gt;,&quot; and from the &lt;a href=&quot;http://www.seaside.st/&quot;&gt;Seaside web application framework&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I just finished testing the distribution on Windows, Mac, and Ubuntu. I&#39;ll be putting it on media to hand out at the conference and I&#39;ll post a download link here soon.&lt;br /&gt;
&lt;br /&gt;
Updated:&lt;br /&gt;
&lt;br /&gt;
Download the ZIP here and expand to any folder on Windows, Macintosh, or Linux:&lt;br /&gt;
http://bit.ly/4khd83</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/2857976444335558731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/2857976444335558731' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/2857976444335558731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/2857976444335558731'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2009/11/new-environment-for-programming-with.html' title='New Environment for &quot;Programming with Kids&quot;'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-7210532213090431314</id><published>2009-10-12T09:26:00.001-07:00</published><updated>2009-10-13T10:00:53.798-07:00</updated><title type='text'>Hands-on Microformats: Quickly build an hCalendar-based view with XSLT and Seaside</title><content type='html'>I gave a talk with the title, &quot;Hands-on Microformats: Quickly build an hCalendar-based view&quot; at the 2009 &lt;a href=&quot;http://barcampomaha.org/&quot;&gt;BarCamp Omaha&lt;/a&gt;. Since the presentation was really looking at code, I didn&#39;t have a slide deck. So I thought I would share my notes in a series of posts. This is the first.&lt;br /&gt;&lt;br /&gt;Short version: By adding a few specific attributes and abiding by some date formatting rules, you can generate a great-looking monthly calendar with surprisingly little effort. That is, get something like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixjt6z-73HE47MhRQjg_Nz_f6uaAaG6c5tE_ZwDPKVPvedy2naPUOkzOXW0xu1EsGsFe_V_8LRqOYojIsEGEinaAa1jV7oATlCZEBo40XJf7-2KrNOdjDJAAFoVlVcYiRuLPHOzRwaN7RO/s1600-h/calendar.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 309px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixjt6z-73HE47MhRQjg_Nz_f6uaAaG6c5tE_ZwDPKVPvedy2naPUOkzOXW0xu1EsGsFe_V_8LRqOYojIsEGEinaAa1jV7oATlCZEBo40XJf7-2KrNOdjDJAAFoVlVcYiRuLPHOzRwaN7RO/s400/calendar.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391889732366540834&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;From HTML that looks like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIhi-m2C_mDGmq0MKpW73N5ydiOHa_0a76ohRfZ-ZQ5f0Zz4XRb4YT3oO66wkDnrYYJlOkrUvhAYYeDzBDrPAnpayoOjaBH8gjOlHuVQOfjmpR_QEpWnTBWRubZl-0DebBESBlk65EXptg/s1600-h/calendarcode.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 245px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIhi-m2C_mDGmq0MKpW73N5ydiOHa_0a76ohRfZ-ZQ5f0Zz4XRb4YT3oO66wkDnrYYJlOkrUvhAYYeDzBDrPAnpayoOjaBH8gjOlHuVQOfjmpR_QEpWnTBWRubZl-0DebBESBlk65EXptg/s400/calendarcode.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5392116138807428610&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A &lt;a href=&quot;http://microformats.org/wiki/Main_Page#Definition&quot;&gt;microformat&lt;/a&gt; lets you use standard XHTML but add in some semantic goodness without resorting to a separate XML namespace and corresponding set of tags (or formally, an &lt;a href=&quot;http://www.google.com/search?q=define:xml+application&quot;&gt;XML application&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;For our example, &lt;a href=&quot;http://microformats.org/wiki/hcalendar&quot;&gt;hCalendar&lt;/a&gt; uses a 1:1 representation of standard iCalendar (&lt;a href=&quot;http://microformats.org/wiki/rfc-2445&quot; title=&quot;rfc-2445&quot;&gt;RFC2445&lt;/a&gt;) VEVENT properties and values in &lt;a href=&quot;http://microformats.org/wiki/semantic-xhtml&quot; title=&quot;semantic-xhtml&quot;&gt;semantic XHTML&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;hCalendar wouldn&#39;t have caught my attention if it weren&#39;t for &lt;a href=&quot;http://code.google.com/p/js-hcalendar/&quot;&gt;js-hCalendar&lt;/a&gt;. This bit of JavaScript created by &lt;a href=&quot;http://code.google.com/u/dglasser/&quot;&gt;David Glasser&lt;/a&gt; and hosted at Google code will take some hCalendar-laced HTML and give you back a Monthly calendar view of the data.&lt;br /&gt;&lt;br /&gt;Now, if you are working in the heart of the application and you already have (or can acquire) a calendar component that does what you want, then this code may be less useful. But, I&#39;ve found it very handy when I&#39;m working around the edges of an application or I&#39;m using a language with a smaller set of available components. The key is, no matter what platform on which I&#39;m running, I can probably generate the required HTML to get this working in an hour or two.&lt;br /&gt;&lt;br /&gt;Up next: some examples from &lt;a href=&quot;http://www.w3schools.com/xsl/&quot;&gt;XSLT&lt;/a&gt; and &lt;a href=&quot;http://www.seaside.st/download/pharo#167943699&quot;&gt;Seaside&lt;/a&gt; (Smalltalk).</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/7210532213090431314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/7210532213090431314' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/7210532213090431314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/7210532213090431314'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2009/10/hands-on-microformats-quickly-build.html' title='Hands-on Microformats: Quickly build an hCalendar-based view with XSLT and Seaside'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixjt6z-73HE47MhRQjg_Nz_f6uaAaG6c5tE_ZwDPKVPvedy2naPUOkzOXW0xu1EsGsFe_V_8LRqOYojIsEGEinaAa1jV7oATlCZEBo40XJf7-2KrNOdjDJAAFoVlVcYiRuLPHOzRwaN7RO/s72-c/calendar.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-5837195606020961356</id><published>2009-04-20T20:33:00.000-07:00</published><updated>2009-04-20T20:53:55.496-07:00</updated><title type='text'>What makes Squeak special?</title><content type='html'>Avidan Ackerson asked a great &lt;a href=&quot;http://www.nabble.com/Squeak-vs.-Smalltalk-td23148311.html&quot;&gt;question&lt;/a&gt;:&lt;br /&gt;&lt;blockquote&gt;I know that Squeak is written in Smalltalk, but are there specific advantages to Squeak over Smalltalk proper?&lt;br /&gt;&lt;/blockquote&gt;What makes &lt;a href=&quot;http://squeak.org/&quot;&gt;Squeak&lt;/a&gt; special is the &lt;a href=&quot;http://squeak.org/Community/&quot;&gt;Squeak community&lt;/a&gt;. Fantastic history and tradition. Inspiring thinkers. &lt;a href=&quot;http://wiki.squeak.org/squeak/158&quot;&gt;Colorful ideas&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For someone used to &lt;a href=&quot;http://www.bobjectsinc.com/cstug/vendors.htm&quot;&gt;commercial Smalltalk &lt;/a&gt;development, Squeak is a bit of a &lt;a href=&quot;http://en.wikipedia.org/wiki/Siren&quot;&gt;siren song&lt;/a&gt;. I&#39;ve certainly felt that way. Much of Squeak&#39;s GUI wasn&#39;t built to satisfy commercial developers, but to get some &lt;a href=&quot;http://www.squeakland.org/&quot;&gt;wild, crazy, next generation media playground &lt;/a&gt;for kids and adults to experiment with. Very trippy but sometimes frustrating to someone who just wants to build a &lt;a href=&quot;http://en.wikipedia.org/wiki/Create,_read,_update_and_delete&quot;&gt;CRUD GUI&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you want to build for the web, Squeak is a nice home for &lt;a href=&quot;http://www.seaside.st/&quot;&gt;Seaside&lt;/a&gt; development. I&#39;m currently using &lt;a href=&quot;http://www.pharo-project.org/home&quot;&gt;Pharo&lt;/a&gt;, which is still Squeak to me, but it may diverge in the near future.&lt;br /&gt;&lt;br /&gt;Now to get a little pedantic:&lt;br /&gt;&lt;br /&gt;Squeak is a Smalltalk. It is written in Squeak Smalltalk&lt;sup&gt;[*]&lt;/sup&gt;. Visual Works is a Smalltalk. Most of it is also written in Visual Works Smalltalk.&lt;br /&gt;&lt;br /&gt;All Smalltalks have little variations. There is no downloadable, runnable thing called Smalltalk proper. You might call Smalltalk-80 Smalltalk proper. Squeak and VisualWorks both descend&lt;sup&gt;[**]&lt;/sup&gt; from Smalltalk-80. You might also call ANSI Smalltalk proper, but there is no implementation of Smalltalk that is only ANSI Smalltalk.&lt;br /&gt;&lt;br /&gt;If you want to write code that you can take from one Smalltalk into another, you&#39;re in for a bit of a bumpy ride. The Seaside team probably has the most broad and most current experience here. Looking at the work they are doing for 2.9 (as well as their coding standards) are a good things to emulate.&lt;br /&gt;&lt;br /&gt;Squeak and GNU Smalltalk are both open-source. GNU is GPL, natch. Squeak predates the OSI definition of that term and so has a more colorful license history, but it will (soon) be MIT with bits of APSL.&lt;br /&gt;&lt;br /&gt;VisualWorks and GemStone are not open-source, but each provides professional commercial support and licenses that make it easy to start exploring and developing. VW is probably the most mainstream, commercial tool. GemStone is the leader for big Object-Oriented DBs.&lt;br /&gt;&lt;br /&gt;Instantiations still supports VisualAge Smalltalk (formerly IBM Smalltalk). Also good commercial support.&lt;br /&gt;&lt;br /&gt;Lots of other Smalltalks I&#39;m leaving out.&lt;br /&gt;&lt;br /&gt;Between Squeak and GNU, Squeak is the more traditional, image-based Smalltalk. GNU keeps its code in files, which makes sense to most non-Smalltalkers. But, as &lt;a href=&quot;http://stackoverflow.com/users/62970/markusq&quot;&gt;MarkusQ&lt;/a&gt; &lt;a href=&quot;http://stackoverflow.com/questions/670347/misunderstanding-smalltalk-and-tdd&quot;&gt;wrote&lt;/a&gt; recently:&lt;a href=&quot;http://stackoverflow.com/questions/670347/misunderstanding-smalltalk-and-tdd&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;blockquote&gt;Trying to get your head around smalltalk without using the IDE is like going to Paris and eating at McDonalds. Sure, you&#39;re in Paris, but you aren&#39;t really exposing yourself to what it&#39;s all about.&lt;/blockquote&gt;Footnotes:&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;star&quot;&gt;[*]&lt;/a&gt; There are a few parts of the Virtual Machine that are written in C, but even those are actually written in a pidgin (reduced) Squeak Smalltalk called Slang. It really is a C subset with Squeak Smalltalk style. The benefit of this is you can simulate the VM using Smalltalk tools as you develop.&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;starstar&quot;&gt;[**] &lt;/a&gt;and lore has it they may actually both still be running some of the same bits as an ancient Smalltalk image.</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/5837195606020961356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/5837195606020961356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/5837195606020961356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/5837195606020961356'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2009/04/what-makes-squeak-special.html' title='What makes Squeak special?'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-5235590978023181180</id><published>2009-04-10T07:56:00.000-07:00</published><updated>2009-04-10T08:23:38.786-07:00</updated><title type='text'>Seaside Community Service (Picking Up Garbage)</title><content type='html'>(OK, this post is more for my reference than to teach anything, but hopefully at least I&#39;ll learn something!)&lt;br /&gt;&lt;br /&gt;Pharo, Squeak, and most Smalltalks have the ability to save everything you are working on when you exit the environment. This saves all of the objects you have created, any text you&#39;ve written, and if your program is running, it will still be running when you restart the environment, exactly where you left off.&lt;br /&gt;&lt;br /&gt;In Smalltalk, we call it saving the image.&lt;br /&gt;&lt;br /&gt;Images are cool, but you really shouldn&#39;t depend on them for source code control. You should back up your program code using a separate source code control system. Examples include CVS, Subversion, and Git. Some Smalltalks can use those tools and there are certainly bridges for others, but most Smalltalkers use a version control tool written especially for Smalltalk.&lt;br /&gt;&lt;br /&gt;In Pharo, I use Monticello. Monticello integrates nicely with the existing tools. In fact, most of the time, I don&#39;t even think that I&#39;m using Monticello at all. I just code and when it comes time to save my code, I switch to the Monticello Browser window, click Save and type in a comment. I then save my image.&lt;br /&gt;&lt;br /&gt;Still, it takes a bit of time to load a new image from scratch. I try to do it once a month. I know a good agile process would let me do it every day or at any moment, but I&#39;m not there yet with my Pharo work.&lt;br /&gt;&lt;br /&gt;Even though I&#39;m only running a personal web server and my load is light, I&#39;m pumping a fair bit of data from a back-end data store. I cache a lot in memory to keep my query time light. Over a few weeks of running, my image will start to grow. Today I noticed I was over 100MB! That seemed like a bit much. I&#39;m in the 30-40MB when I load from source on top of a full set of development and web serving tools.&lt;br /&gt;&lt;br /&gt;I went searching for a quick cleanup script and I turned up a message from Bill Schwab where he had found a Seaside FAQ with some workspace code:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;WARegistry clearAllHandlers.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt; Smalltalk garbageCollect.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That knocked 30MB off my image.&lt;br /&gt;&lt;br /&gt;Adrian Lienhard noted that to go further, he might want to look at SpaceTally.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;SpaceTally new systemWideSpaceTally inspect&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;I was about to spend some time inspecting the tally, but I noticed as soon as I ran that, another 50MB flew off. I was back under 60MB, which is my pain point.&lt;br /&gt;&lt;br /&gt;&lt;bschwab@anest.ufl.edu&gt;&lt;/bschwab@anest.ufl.edu&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/5235590978023181180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/5235590978023181180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/5235590978023181180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/5235590978023181180'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2009/04/seaside-community-service-picking-up.html' title='Seaside Community Service (Picking Up Garbage)'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-15714536575494805</id><published>2009-02-01T12:48:00.000-08:00</published><updated>2009-02-01T13:08:43.586-08:00</updated><title type='text'>Characters, Strings, and Things</title><content type='html'>&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;Sebastian Nozzi asked on the beginners list:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;I&#39;ve been struggling a bit with some basics about Strings for which I&lt;br /&gt;couldn&#39;t find an answer (yet).&lt;br /&gt;&lt;br /&gt;1) How to construct a String from Characters?&lt;br /&gt;&lt;br /&gt;For example, I want to construct a String from the Chatacter literals:&lt;br /&gt;&lt;br /&gt;$H $I&lt;br /&gt;Character cr&lt;br /&gt;$T $H $E $R $E&lt;br /&gt;&lt;br /&gt;2) How to replace a sequence of Characters in a String for others?&lt;br /&gt;&lt;br /&gt;For exaple, I want to replace every &#39;HI&#39; (in this case only one) for&lt;br /&gt;&#39;HELLO&#39; in the String above (not necesarily destructively, getting a&lt;br /&gt;new String is also ok). Is there a quick way to do that?&lt;br /&gt;&lt;br /&gt;Thanks in advance! &lt;/blockquote&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;Smalltalk isn&#39;t known for being a scripting language. The runtime and object model are very similar to Ruby, but it is lacking all of the little Perl-isms that we associate with scripting languages.&lt;br /&gt;&lt;br /&gt;To deal with the input characters, it is useful to have them in an array. A traditional Smalltalk array with characters would look like this #($a $b $c) but it isn&#39;t obvious what to do with the carriage return. For this, the Squeak brace array is handy and also works in Pharo.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;characters := {&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$H.$I.&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;Character cr.&lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;$T.$H.$E.$R.$E&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}.&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;&lt;br /&gt;It isn&#39;t terribly portable to other Smalltalks, but it sure is easy to type. Now we&#39;ve got an array of characters, how to create the new String? Another Squeak-ism is the class method #streamContents:. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;It takes a one argument block. The argument is a writeable stream that will return its contents at the end. I have to admit I was &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;thrown by it the first time I saw it.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;string := String streamContents: &lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;    [:writeStream | &lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;    characters do:  &lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;        [:c | writeStream nextPut: c]].&lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;&lt;br /&gt;Like the brace array, it isn&#39;t very portable to other Smalltalks, but it is pretty handy.&lt;br /&gt;&lt;br /&gt;That leaves us with replacing. I opened the method finder and typed replace into the search box.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuTeQkMBkR0Jynoa1y9Gsw4NotNvzVMiUSg6cZtWg4vnOII3QXNYvJYNKZ-UREtxyUzzg08Kk6TqLGYZip-ABnrmJIyelCg5von_RqeDgnuGv7fVvS6CTgpx4HAUqL8f11b7Qk-wyYjKgP/s1600-h/Method+Finder.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 98px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuTeQkMBkR0Jynoa1y9Gsw4NotNvzVMiUSg6cZtWg4vnOII3QXNYvJYNKZ-UREtxyUzzg08Kk6TqLGYZip-ABnrmJIyelCg5von_RqeDgnuGv7fVvS6CTgpx4HAUqL8f11b7Qk-wyYjKgP/s320/Method+Finder.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5297938166966636194&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That gives us the following complete solution:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;| characters string |&lt;br /&gt;characters := {&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$H.$I.&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;Character cr.&lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;$T.$H.$E.$R.$E&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}.&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;string := String streamContents: &lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;    [:writeStream | &lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;    characters do:  &lt;/span&gt;  &lt;span style=&quot;font-family:courier new;&quot;&gt;        [:c | writeStream nextPut: c]].&lt;br /&gt;string copyReplaceAll: &#39;HI&#39; with: &#39;HELLO&#39;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Enjoy!</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/15714536575494805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/15714536575494805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/15714536575494805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/15714536575494805'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2009/02/characters-strings-and-things.html' title='Characters, Strings, and Things'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuTeQkMBkR0Jynoa1y9Gsw4NotNvzVMiUSg6cZtWg4vnOII3QXNYvJYNKZ-UREtxyUzzg08Kk6TqLGYZip-ABnrmJIyelCg5von_RqeDgnuGv7fVvS6CTgpx4HAUqL8f11b7Qk-wyYjKgP/s72-c/Method+Finder.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2689881006482382221.post-1236556506511422653</id><published>2009-01-31T08:58:00.000-08:00</published><updated>2009-01-31T09:11:44.039-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="squeak pharo smalltalk morphic beginners"/><title type='text'>Learning by tearing things apart</title><content type='html'>&lt;span style=&quot;&quot;&gt;Daniel Klein posted to the Squeak Beginners list:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;I&#39;m currently reading the &#39;Squeak by Example&#39; book with the goal of being able to do some Morphic stuff.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Anyway, I get the impression that everything in the image at my fingertips. So what if I want to add something to one of the context menus, or find out what message gets sent to invoke a menu entry so that I can run it directly in a workspace, or change the order of the objects in one of the flaps, etc.&lt;/div&gt; &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What are the steps to go about finding out where this stuff is in the image?&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;color: rgb(136, 136, 136);&quot;&gt;&lt;div&gt;&lt;div id=&quot;:8i&quot; class=&quot;ArwC7c ckChnd&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;One of the neat things about Morphic is that you can tear it apart while it is running. This can give you some clues as to how a GUI was built. Note that the image is built by direct manipulation as well as by code. If you move a window and then save the image, the window will be where you left it. But, you won&#39;t be able to find the code that moved the window to that location because there isn&#39;t any.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;But, most GUIs in Squeak are built with Smalltalk code, not with direct manipulation.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;One of my favorite things to show a new Squeaker is that they can Alt+Shift click on the World menu to bring up a halo on a menu item (Alt+Clicking will let you drill into a GUI, Alt goes backward which usually gets to the menu or icon directly and bypasses all of the alignment morphs.) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;&lt;b&gt;&lt;img src=&quot;https://mail.google.com/mail/?attid=0.1&amp;amp;disp=emb&amp;amp;view=att&amp;amp;th=11f2d7a120284710&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;I then click on the debug halo and look at an explorer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span&gt;&lt;span style=&quot;&quot;&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;&lt;b&gt;&lt;img src=&quot;https://mail.google.com/mail/?attid=0.2&amp;amp;disp=emb&amp;amp;view=att&amp;amp;th=11f2d7a120284710&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;This tells me that the Menu Item calls #doMenuItem:with: and passes two arguments. TheWorldMenu and another selector helpDo.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;I can then start browsing implementors and senders. I think helpDo is the more interesting implementation and leads me quickly to helpMenu.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;doMenuItem:with: is the more interesting sender. It takes me to fillIn:from: and then senders there takes me to I think what you are looking for (I see my CSS is cropping the pic, click to see the whole thing).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;&quot;&gt;&lt;b&gt;&lt;img src=&quot;https://mail.google.com/mail/?attid=0.3&amp;amp;disp=emb&amp;amp;view=att&amp;amp;th=11f2d7a120284710&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.withaguide.com/feeds/1236556506511422653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2689881006482382221/1236556506511422653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/1236556506511422653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2689881006482382221/posts/default/1236556506511422653'/><link rel='alternate' type='text/html' href='http://www.withaguide.com/2009/01/daniel-klein-posted-to-squeak-beginners.html' title='Learning by tearing things apart'/><author><name>David</name><uri>http://www.blogger.com/profile/14110604812109593844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fr7Df6_40Aayofpa9DIWFUf2l7izGitBGNhvcDmfzCxtlj8Rs1cFAAc9mMWaX6mQIwheypx_88zEbekAGKdzvWqcBCMtgFSnFBUtSEGr3Egg_uoG7S6ebwZYvNK_TAc/s220/david-headshot-90-117.jpg'/></author><thr:total>0</thr:total></entry></feed>