<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><id>tag:blogger.com,1999:blog-12626926</id><updated>2010-02-05T10:55:12.867-08:00</updated><title type="text">crazybob.org</title><subtitle type="html">Bob Lee's Blog - Java and some occasional baby making</subtitle><link rel="alternate" type="text/html" href="http://crazybob.org/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default?start-index=26&amp;max-results=25" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://crazybob.org/roller/rss/crazybob" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>290</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/crazybob" /><feedburner:info uri="crazybob" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><logo>http://farm1.static.flickr.com/87/277001636_c52e65c63f_m.jpg</logo><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><entry><id>tag:blogger.com,1999:blog-12626926.post-2577515428436928603</id><published>2010-02-05T09:17:00.000-08:00</published><updated>2010-02-05T10:55:12.879-08:00</updated><title type="text">Android: Trusting SSL certificates</title><content type="html">&lt;img style="float:right; margin:0 0 0 0; width: 125px; height: 125px;" src="http://crazybob.org/uploaded_images/key-737977.jpg" border="0" alt="" /&gt;We use &lt;a href="http://en.wikipedia.org/wiki/Self-signed_certificate"&gt;a self-signed SSL certificate&lt;/a&gt; for the test version of our backend web service. Since our certificate isn't signed by a &lt;a href="http://en.wikipedia.org/wiki/Certificate_authority"&gt;CA&lt;/a&gt; that Android trusts by default, we need to add our server's public certificate to our Android app's trusted store. 

&lt;p&gt;These same instructions apply to trusting a custom CA, except you'd get the public certificate directly from the CA instead of from a server.

&lt;p&gt;Required tools:

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.openssl.org/"&gt;OpenSSL&lt;/a&gt;'s command line client&lt;/li&gt;
&lt;li&gt;&lt;a href="http://java.sun.com/javase/downloads/index.jsp"&gt;Java SE 6&lt;/a&gt; (for &lt;tt&gt;keytool&lt;/tt&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.bouncycastle.org/latest_releases.html"&gt;Bouncy Castle's provider jar&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;1. Grab the public certificate from the server you want to trust. Replace &lt;tt&gt;${MY_SERVER}&lt;/tt&gt; with your server's address.

&lt;pre&gt;
echo | openssl s_client -connect ${MY_SERVER}:443 2&gt;&amp;1 | \
 sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' &gt; mycert.pem
&lt;/pre&gt;

&lt;p&gt;For example, here's the PEM-encoded public certificate from google.com:

&lt;pre&gt;
-----BEGIN CERTIFICATE-----
MIIDITCCAoqgAwIBAgIQL9+89q6RUm0PmqPfQDQ+mjANBgkqhkiG9w0BAQUFADBM
MQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg
THRkLjEWMBQGA1UEAxMNVGhhd3RlIFNHQyBDQTAeFw0wOTEyMTgwMDAwMDBaFw0x
MTEyMTgyMzU5NTlaMGgxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlh
MRYwFAYDVQQHFA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKFApHb29nbGUgSW5jMRcw
FQYDVQQDFA53d3cuZ29vZ2xlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA6PmGD5D6htffvXImttdEAoN4c9kCKO+IRTn7EOh8rqk41XXGOOsKFQebg+jN
gtXj9xVoRaELGYW84u+E593y17iYwqG7tcFR39SDAqc9BkJb4SLD3muFXxzW2k6L
05vuuWciKh0R73mkszeK9P4Y/bz5RiNQl/Os/CRGK1w7t0UCAwEAAaOB5zCB5DAM
BgNVHRMBAf8EAjAAMDYGA1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9jcmwudGhhd3Rl
LmNvbS9UaGF3dGVTR0NDQS5jcmwwKAYDVR0lBCEwHwYIKwYBBQUHAwEGCCsGAQUF
BwMCBglghkgBhvhCBAEwcgYIKwYBBQUHAQEEZjBkMCIGCCsGAQUFBzABhhZodHRw
Oi8vb2NzcC50aGF3dGUuY29tMD4GCCsGAQUFBzAChjJodHRwOi8vd3d3LnRoYXd0
ZS5jb20vcmVwb3NpdG9yeS9UaGF3dGVfU0dDX0NBLmNydDANBgkqhkiG9w0BAQUF
AAOBgQCfQ89bxFApsb/isJr/aiEdLRLDLE5a+RLizrmCUi3nHX4adpaQedEkUjh5
u2ONgJd8IyAPkU0Wueru9G2Jysa9zCRo1kNbzipYvzwY4OA8Ys+WAi0oR1A04Se6
z5nRUP8pJcA2NhUzUnC+MY+f6H/nEQyNv4SgQhqAibAxWEEHXw==
-----END CERTIFICATE-----
&lt;/pre&gt;

&lt;p&gt;2. Android has built-in support for the Bouncy Castle keystore format (BKS). Put Bouncy Castle's jar in your classpath, and create a keystore containing only your trusted key.

&lt;pre&gt;
export CLASSPATH=bcprov-jdk16-145.jar
CERTSTORE=res/raw/mystore.bks
if [ -a $CERTSTORE ]; then
    rm $CERTSTORE || exit 1
fi
keytool \
      -import \
      -v \
      -trustcacerts \
      -alias 0 \
      -file &lt;(openssl x509 -in mycert.pem) \
      -keystore $CERTSTORE \
      -storetype BKS \
      -provider org.bouncycastle.jce.provider.BouncyCastleProvider \
      -providerpath /usr/share/java/bcprov.jar \
      -storepass ez24get
&lt;/pre&gt;

&lt;p&gt;3. Create a custom Apache &lt;tt&gt;HttpClient&lt;/tt&gt; that uses your custom store for HTTPS connections.

&lt;pre&gt;
import android.content.Context;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.SingleClientConnManager;

import java.io.InputStream;
import java.security.KeyStore;

public class MyHttpClient extends DefaultHttpClient {

  final Context context;

  public MyHttpClient(Context context) {
    this.context = context;
  }

  @Override protected ClientConnectionManager createClientConnectionManager() {
    SchemeRegistry registry = new SchemeRegistry();
    registry.register(
        new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
    registry.register(new Scheme("https", newSslSocketFactory(), 443));
    return new SingleClientConnManager(getParams(), registry);
  }

  private SSLSocketFactory newSslSocketFactory() {
    try {
      KeyStore trusted = KeyStore.getInstance("BKS");
      InputStream in = context.getResources().openRawResource(R.raw.mystore);
      try {
        trusted.load(in, "ez24get".toCharArray());
      } finally {
        in.close();
      }
      return new SSLSocketFactory(trusted);
    } catch (Exception e) {
      throw new AssertionError(e);
    }
  }
}
&lt;/pre&gt;

&lt;p&gt;That's it! If you think this kind of stuff is fun, &lt;a href="https://squareup.com/jobs"&gt;Square is hiring&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-2577515428436928603?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=TrtYskyM-ww:A0K5jlslQmI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=TrtYskyM-ww:A0K5jlslQmI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=TrtYskyM-ww:A0K5jlslQmI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/TrtYskyM-ww" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/2577515428436928603/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=2577515428436928603" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2577515428436928603" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2577515428436928603" /><link rel="alternate" type="text/html" href="http://crazybob.org/2010/02/android-trusting-ssl-certificates.html" title="Android: Trusting SSL certificates" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-2187140590090334329</id><published>2009-08-14T14:36:00.000-07:00</published><updated>2009-08-14T15:36:44.051-07:00</updated><title type="text">Tomorrow is the big day.</title><content type="html">&lt;img src="http://go.liverfoundation.org/images/friendraiser_uploads/1540.1474558500.custom.jpg" width="267" height="400" align="right" style="margin-left: 10px"&gt;Friends,

&lt;p&gt;Tomorrow morning, I'll swim 1.5 miles from Alcatraz to SF to benefit the American Liver Foundation. I set my fund raising goal at $10k, and I'm already 30% of the way there. If you've already donated, thank you! If not, please &lt;a href="http://is.gd/1S7eL"&gt;sponsor me&lt;/a&gt;.

&lt;p&gt;Thanks,&lt;br/&gt;
Bob&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-2187140590090334329?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=7z6T3clP8Ew:bypEEhg9F0w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=7z6T3clP8Ew:bypEEhg9F0w:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=7z6T3clP8Ew:bypEEhg9F0w:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/7z6T3clP8Ew" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/2187140590090334329/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=2187140590090334329" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2187140590090334329" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2187140590090334329" /><link rel="alternate" type="text/html" href="http://crazybob.org/2009/08/tomorrow-is-big-day.html" title="Tomorrow is the big day." /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-4265000668286941219</id><published>2009-05-20T17:13:00.000-07:00</published><updated>2009-05-20T20:20:48.862-07:00</updated><title type="text">It's in the JCP's hands now.</title><content type="html">&lt;p&gt;This morning, Google and SpringSource submitted &lt;a href="http://docs.google.com/Doc?id=dd2fhx4z_22g7x8zdfn"&gt;an updated version&lt;/a&gt; of &lt;a href="http://crazybob.org/2009/05/announcing-javaxinjectinject.html"&gt;the aforementioned @Inject proposal&lt;/a&gt; to the &lt;a href="http://jcp.org/"&gt;JCP&lt;/a&gt;. In response to popular demand, we expanded the proposal's scope to include a low-level build-time and run-time configuration API. You might think of the new API as a type-safe analogue to JNDI and &lt;span style="font-family:courier new;"&gt;@Resource&lt;/span&gt;. Having a central integration point for DI configuration means you can use multiple configuration approaches in a single application without suffering from the-chicken-or-the-egg problem; anyone who has tried to use more than one DI framework in the same application knows that deciding which framework to initialize first can be problematic to say the least.

&lt;p&gt;Our goals are to enable portable applications and to spark further innovation in the DI configuration space. By making it easier to use multiple configuration approaches with the same tools and in the same application, we lower the barriers to entry and adoption for new approaches.

&lt;p&gt;We've added the following paragraphs to the JSR proposal's introduction:

&lt;blockquote&gt;A programmer configures a dependency injector so it knows what to &lt;span class="il"&gt;inject&lt;/span&gt;. Different configuration approaches make sense in different contexts. One approach is to search the classpath for dependency implementations, avoiding the need for the programmer to write explicit code. This approach could be useful in quick-and-dirty prototypes. A programmer working on a large, long-lived application might prefer a more explicit, compartmentalized approach. For example, the programmer could write XML that tells the injector to inject an EJB client proxy named &lt;tt&gt;"NetworkTimeSource"&lt;/tt&gt; when a class needs a &lt;tt&gt;TimeSource&lt;/tt&gt;:

&lt;pre&gt;
  &amp;lt;binding type="TimeSource" ejb="NetworkTimeSource"/&gt;
&lt;/pre&gt;

&lt;p&gt;It often makes sense to use more than one configuration mechanism in the the same application. For example, a quick and dirty prototype might grow into a real application, and the programmer could incrementally migrate to a more maintainable configuration. As another example, a program might configure some resources explicitly, while others are configured automatically based on an external XML file or database.

&lt;p&gt;This JSR will standardize a low-level kernel API that can be used directly by a user or as an integration point for higher level configuration approaches. This approach enables portable Java applications without quashing innovation in dependency injector configuration.&lt;/blockquote&gt;

&lt;p&gt;We've rewritten the scope:

&lt;blockquote&gt;This JSR will standardize:
&lt;ol&gt;&lt;li&gt;A set of annotations for use on injectable classes&lt;/li&gt;&lt;li&gt;A typesafe, user-friendly injector configuration API that provides an integration point for higher level dependency injection configuration approaches&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;

&lt;p&gt;And we've adjusted the time line and other parameters accordingly. Check out &lt;a href="http://docs.google.com/Doc?id=dd2fhx4z_22g7x8zdfn"&gt;the full proposal&lt;/a&gt;.

&lt;p&gt;What will the new API look like? That's for the expert group to decide, and they'll do so in an open and inclusive manner. In addition to Guice and Spring, this proposal already has support from the PicoContainer, Plexus and Tapestry IoC teams, not to mention prominent users like &lt;span class="gI"&gt;Tim Peierls and James Strachan, and well known API designers like Doug Lea and Josh Bloch.&lt;/span&gt; We'll have no shortage of expertise when it comes time to assemble the group.

&lt;p&gt;&lt;a href="http://crazybob.org/2009/05/guice.html"&gt;Guice 2&lt;/a&gt; already provides a great foundation for &lt;a href="http://code.google.com/p/guiceyfruit/"&gt;extensions&lt;/a&gt; and &lt;a href="http://code.google.com/p/google-guice/wiki/Grapher"&gt;tools&lt;/a&gt;. The Guice team is excited to start with a clean slate and apply the lessons we've learned over the past few years. This time around, we'll be able to work &lt;span style="font-style: italic;"&gt;with&lt;/span&gt; the platform instead of around it. As a member of the &lt;a href="http://jcp.org/en/jsr/detail?id=294"&gt;JSR-294&lt;/a&gt; expert group, I'm eager to align our dependency injection efforts with the &lt;a href="http://openjdk.java.net/projects/jigsaw/"&gt;module support&lt;/a&gt; coming in Java 7. JSR-294 modules will enable sharing types, and this proposed JSR will build on that foundation and enable sharing instances.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-4265000668286941219?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=Y0jUwxcEW8o:2AT7NmPscsM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=Y0jUwxcEW8o:2AT7NmPscsM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=Y0jUwxcEW8o:2AT7NmPscsM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/Y0jUwxcEW8o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/4265000668286941219/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=4265000668286941219" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4265000668286941219" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4265000668286941219" /><link rel="alternate" type="text/html" href="http://crazybob.org/2009/05/its-in-jcps-hands-now.html" title="It's in the JCP's hands now." /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-4576793364859148496</id><published>2009-05-19T19:21:00.000-07:00</published><updated>2009-05-19T20:00:24.796-07:00</updated><title type="text">Guice²</title><content type="html">After two years in the making, it's official. We've released &lt;a href="http://code.google.com/p/google-guice/wiki/Guice20"&gt;Guice 2&lt;/a&gt;! Here's &lt;a href="http://google-code-updates.blogspot.com/2009/05/guice-deuce.html"&gt;Jesse's announcement&lt;/a&gt; from the Google Code Blog:

&lt;blockquote&gt;
&lt;p&gt;Two years ago, Bob Lee and Kevin Bourrillion &lt;a href="http://google-code-updates.blogspot.com/2007/03/guice-googles-internal-java-dependency.html" id="y7_x" title="released Guice 1.0"&gt;open sourced Google Guice 1.0&lt;/a&gt;, a lightweight Java dependency injection framework. Guice takes the pain out of writing and maintaining Java applications big and small. Guice has gained a great deal of traction both inside and outside of Google. Almost every Java-based application at Google is also a Guice-based application; the list includes AdWords, Google Docs, Gmail, and even YouTube. Open source users run Guice in everything from file-sharing software to ATMs. They've even written &lt;a title="two" href="http://www.apress.com/book/view/1590599977" id="k.w_"&gt;two&lt;/a&gt; &lt;a title="books" href="http://www.manning.com/prasanna/" id="hbx3"&gt;books&lt;/a&gt; about &lt;a title="the Jolt-award-winning framework" href="http://www.ddj.com/blog/portal/archives/2008/03/jolt_award_winn.html" id="vq_o"&gt;this Jolt-award-winning framework&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Today, we're releasing Guice 2. The minimally-sized API extensions introduced by Guice 2 will have a majorly positive impact on the size and maintainability of your code. We closely scrutinized each addition, carefully balancing maintainability and flexibility. Here are a few of my favorite new features:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;a title="Provider methods" href="http://code.google.com/docreader/#p=google-guice&amp;amp;s=google-guice&amp;amp;t=ProvidesMethods" id="l4we"&gt;Provider methods&lt;/a&gt;&lt;/b&gt; eliminate the boilerplate of manually-constructed dependencies.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a title="Module overrides" href="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/util/Modules.html#override%28java.lang.Iterable%29" id="k5y:"&gt;Module overrides&lt;/a&gt;&lt;/b&gt; allow you to tweak a production module for a unit test or QA deployment.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a title="Private modules" href="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/PrivateModule.html" id="i.ic"&gt;Private modules&lt;/a&gt;&lt;/b&gt; enable compartmentalized configuration, simplifying module reuse.&lt;/li&gt;&lt;/ul&gt;Guice works with Java SE, Java EE, &lt;a href="http://code.google.com/appengine/" id="kr65" title="Google App Engine"&gt;Google App Engine&lt;/a&gt;, &lt;a href="http://code.google.com/android/" id="h1hz" title="Android"&gt;Android&lt;/a&gt;, and even &lt;a href="http://code.google.com/webtoolkit/" id="y.xm" title="Google Web Toolkit"&gt;Google Web Toolkit&lt;/a&gt; (via &lt;a href="http://code.google.com/p/google-gin/" id="o83t" title="GIN"&gt;GIN&lt;/a&gt;).&lt;br /&gt;&lt;br&gt;&lt;b&gt;References&lt;/b&gt;&lt;br /&gt;&lt;a href="http://code.google.com/p/google-guice/wiki/Guice20" id="lgwa" title="Guice 2.0 Release Notes"&gt;Guice 2.0 Release Notes&lt;/a&gt;&lt;br /&gt;&lt;a href="http://code.google.com/p/google-guice/downloads/list" id="f75-" title="Downloads"&gt;Downloads&lt;/a&gt;&lt;br /&gt;&lt;a href="http://code.google.com/p/google-guice/wiki/Motivation" id="hrtf" title="User's Guide"&gt;User's Guide&lt;/a&gt;&lt;br /&gt;&lt;a href="http://google-guice.googlecode.com/svn/trunk/javadoc/index.html" id="vom1" title="Javadoc"&gt;Javadoc&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;" class="byline-author"&gt;By Jesse Wilson, Google Developer Team&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;

In addition to the user-facing features mentioned by Jesse, Guice 2 provides an &lt;a href="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/spi/package-summary.html"&gt;extensive service provider API&lt;/a&gt; that enables first class extensions like James Strachan's &lt;a href="http://code.google.com/p/guiceyfruit/"&gt;GuiceyFruit&lt;/a&gt; and makes writing tools like &lt;a href="http://code.google.com/p/google-guice/wiki/Grapher"&gt;Guice Grapher&lt;/a&gt; a snap.

&lt;p&gt;Thanks, Jesse, for all of your hard work on this release. Special thanks goes to our users for being patient and building a vibrant community around Guice.

&lt;p&gt;If you're interested in learning more, don't miss Jesse and Dhanji's Guice 2 talks at &lt;a href="http://code.google.com/events/io/sessions/BigModularJavaGuice.html"&gt;Google I/O&lt;/a&gt; and &lt;a href="http://java.sun.com/javaone/"&gt;JavaOne&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-4576793364859148496?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=vgq0_SBuhb0:4OTCQWA8FwM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=vgq0_SBuhb0:4OTCQWA8FwM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=vgq0_SBuhb0:4OTCQWA8FwM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/vgq0_SBuhb0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/4576793364859148496/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=4576793364859148496" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4576793364859148496" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4576793364859148496" /><link rel="alternate" type="text/html" href="http://crazybob.org/2009/05/guice.html" title="Guice²" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-714670845476929860</id><published>2009-05-05T10:34:00.000-07:00</published><updated>2009-05-05T11:01:28.227-07:00</updated><title type="text">Announcing @javax.inject.Inject</title><content type="html">I'm proud to announce a &lt;a href="http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/package-summary.html"&gt;new dependency injection specification&lt;/a&gt; backed by both Google Guice and Spring. You can catch &lt;a href="http://google-code-updates.blogspot.com/2009/05/javaxinjectinject.html"&gt;the official announcement&lt;/a&gt; over on the Google Code Blog:
&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Five years ago, &lt;a title="Spring 1.0" href="http://www.springsource.org/" id="ehcd"&gt;Spring 1.0&lt;/a&gt; brought Java &lt;a title="dependency injection" href="http://en.wikipedia.org/wiki/Dependency_injection" id="w1gf"&gt;dependency injection&lt;/a&gt; into the mainstream. Three years later, &lt;a title="Google Guice 1.0" href="http://code.google.com/p/google-guice/" id="kds5"&gt;Google Guice 1.0&lt;/a&gt; introduced annotation-based dependency injection and made Java programming a little easier. Since then, developers have had to choose between a) writing external configuration or b) importing vendor-specific annotations.

&lt;p&gt;Today, we hope to give developers the best of both worlds. &lt;b&gt;Google Guice and SpringSource have partnered to standardize a proven, non-controversial set of annotations that make injectable classes &lt;/b&gt;&lt;b&gt;portable &lt;/b&gt; &lt;b&gt;across frameworks.&lt;/b&gt; At the moment, the set of specified annotations consists of:
&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:'Courier New';"&gt;@Inject&lt;/span&gt; - Identifies injectable constructors, methods, and fields&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Courier New';"&gt;@Qualifier&lt;/span&gt; - Identifies qualifier annotations&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Courier New';"&gt;@Scope&lt;/span&gt; - Identifies scope annotations&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Courier New';"&gt;@Named&lt;/span&gt; - String-based qualifier&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Courier New';"&gt;@Singleton&lt;/span&gt; - Identifies a type that the injector only instantiates once&lt;/li&gt;&lt;/ul&gt;One additional interface is specified for use in conjunction with these annotations:
&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:'Courier New';"&gt;Provider&lt;t&gt;&lt;/t&gt;&lt;/span&gt; - Provides instances of a type T. For any type T that can be injected, you can also inject &lt;span style="font-family:'Courier New';"&gt;Provider&lt;t&gt;&lt;/t&gt;&lt;/span&gt;.&lt;/li&gt;&lt;/ul&gt;You can check out an early draft of the &lt;a title="specification" href="http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/package-summary.html" id="bwe9"&gt;specification&lt;/a&gt;. We deliberately left external dependency configuration out, so as not to quash ongoing innovation. We haven't formally submitted this standard to the JCP yet, but we plan to do so shortly. Standards wonks can read a draft of our &lt;a title="JSR proposal" href="http://docs.google.com/Doc?id=dd2fhx4z_13cw24s7dj" id="xuzd"&gt;JSR proposal&lt;/a&gt;.

&lt;p&gt;The expert group will be inclusive and will work in the open. For example, our mailing list is publicly readable, and we host the specification at &lt;a title="Google Code" href="http://code.google.com/p/atinject/" id="rp_9"&gt;Google Code&lt;/a&gt;. Several industry players have already expressed interest in supporting this effort. &lt;a title="Contact us" href="http://code.google.com/p/atinject/" id="ecrh"&gt;Contact us&lt;/a&gt; if you'd like to help out.
&lt;/blockquote&gt;This specification will address the last shortcoming of annotation-based dependency injection. You no longer have to import vendor-specific annotations.

&lt;p&gt;Our hope is that this specification will not only improve interoperability between existing dependency injection frameworks and unify the Java community, but it will also lower the barrier to entry for new injector implementations and foster even more innovation in this space.

&lt;p&gt;I'd like to thank Paul Hammant, Doug Lea, Tim Peierls, James Strachan, Hani Suleiman, and Jason van Zyl for their early reviews and official support. Special thanks goes to our partner in this endeavor SpringSource, especially Rod Johnson, and my fellow Googlers and Guicers Josh Bloch, Jesse Wilson, Kevin Bourrillion, and Dhanji Prasanna.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-714670845476929860?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=hnIynOqL3Ls:iLAoCFc6gEo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=hnIynOqL3Ls:iLAoCFc6gEo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=hnIynOqL3Ls:iLAoCFc6gEo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/hnIynOqL3Ls" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/714670845476929860/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=714670845476929860" title="25 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/714670845476929860" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/714670845476929860" /><link rel="alternate" type="text/html" href="http://crazybob.org/2009/05/announcing-javaxinjectinject.html" title="Announcing @javax.inject.Inject" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-246294243405425996</id><published>2008-10-13T11:03:00.000-07:00</published><updated>2008-10-13T11:24:15.353-07:00</updated><title type="text">How to create simple Amazon affiliate links</title><content type="html">In case you didn't know, &lt;a href="https://affiliate-program.amazon.com/gp/associates/join?tag=crazyboborg-20"&gt;Amazon will pay you to recommend their products&lt;/a&gt;. If you're going to link to a product anyway, why not take credit? Amazon provides all sorts of fancy tools and flashy widgets to help you advertise their products, but creating a basic URL through their web interface isn't straightforward.

&lt;p&gt;In hope of simplifying the process, I followed some 3rd party instructions I found for hacking together your own referral URLs, but they didn't work. I asked Amazon instead, and here are the official instructions:

&lt;blockquote&gt;
&lt;p&gt;If you would like to link directly to an item's detail page using a simple text link, use the following format to construct your links:

&lt;p&gt;http://www.amazon.com/dp/ASIN/?tag=your_Associates_ID

&lt;p&gt;To make this link functional, replace "ASIN" with the 10-digit ISBN or ASIN of the product, and replace "your_Associates_ID" with your Associates ID or tracking ID. However, you would not be able to link to a search results page on Amazon.com.

&lt;p&gt;If you would like to link to the Amazon.com homepage, you can use the following format:

&lt;p&gt;http://www.amazon.com/?tag=your_Associates_ID

&lt;p&gt;To make this link functional, replace "your_Associates_ID" with your Associates ID or tracking ID.

&lt;p&gt;An item's ISBN/ASIN is listed on the item's detail page.  For example, follow the link below, and then scroll down to the section labeled Product Details to find the ISBN (0439434866) for "Harry Potter Paperback Boxed Set."

&lt;p&gt;http://www.amazon.com/exec/obidos/tg/detail/-/0439434866/
&lt;/blockquote&gt;

&lt;p&gt;I don't make much money from referrals, but I do enjoy taking my payments in the form of Amazon gift certificates and buying myself a little something from &lt;a href="http://www.amazon.com/gp/registry/wishlist/3B513E3J694ZL/?tag=crazyboborg-20"&gt;my wish list&lt;/a&gt; every now and then.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-246294243405425996?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=BM9aJ7vcBAQ:UebgfR5wS04:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=BM9aJ7vcBAQ:UebgfR5wS04:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=BM9aJ7vcBAQ:UebgfR5wS04:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/BM9aJ7vcBAQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/246294243405425996/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=246294243405425996" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/246294243405425996" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/246294243405425996" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/10/how-to-create-simple-amazon-affiliate.html" title="How to create simple Amazon affiliate links" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-2672511784208073144</id><published>2008-09-22T17:37:00.000-07:00</published><updated>2008-09-23T08:53:45.538-07:00</updated><title type="text">Taken with my 'gPhone'</title><content type="html">&lt;p&gt;I've been playing around with the 3 megapixel camera on my &lt;a href="http://announcement.t-mobileg1.com/"&gt;Android-based G1&lt;/a&gt;. Like any phone camera, you need a little diligence, a lot of light, and a steady hand.

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/crazybob/2874745982/" title="Walking home by Bob Lee, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3012/2874745982_bab6fc7739.jpg" width="455" height="341" alt="Walking home" /&gt;&lt;/a&gt;

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/crazybob/2877157751/" title="Mask by Bob Lee, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3172/2877157751_ccb27b0ec1.jpg" width="455" height="341" alt="Mask" /&gt;&lt;/a&gt;

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/crazybob/2877158485/" title="Stanford by Bob Lee, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3148/2877158485_44e333f4b4.jpg" width="455" height="341" alt="Stanford" /&gt;&lt;/a&gt;

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/crazybob/2877992504/" title="Fountain by Bob Lee, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3287/2877992504_470031c0e6.jpg" width="455" height="341" alt="Fountain" /&gt;&lt;/a&gt;

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/crazybob/2878012086/" title="Nested by Bob Lee, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3090/2878012086_89811801d4.jpg" width="455" height="341" alt="Nested" /&gt;&lt;/a&gt;

&lt;p&gt;For the best results, tap and release the shutter button, and then hold the phone still until it takes the picture a second or so later. It's not necessary to hold down the button until the picture takes. Holding down the button will contract the muscles in your hand and make it more difficult to keep the phone steady. 

&lt;p&gt;&lt;a href="http://flickr.com/photos/crazybob/sets/72157607400905622/"&gt;Click here for more photos&lt;/a&gt;.&lt;br&gt;&lt;img src="http://crazybob.org/g1.jpg" width="432" height="394"&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-2672511784208073144?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=bhdaS9bcYYg:rMBWo_SACww:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=bhdaS9bcYYg:rMBWo_SACww:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=bhdaS9bcYYg:rMBWo_SACww:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/bhdaS9bcYYg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/2672511784208073144/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=2672511784208073144" title="9 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2672511784208073144" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2672511784208073144" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/09/taken-with-my-gphone.html" title="Taken with my 'gPhone'" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-181270584321244166</id><published>2008-07-12T10:28:00.000-07:00</published><updated>2008-07-12T12:11:32.853-07:00</updated><title type="text">Greeting Grammar</title><content type="html">&lt;p&gt;&lt;img align="right" src="http://crazybob.org/hibob.png" width="167" heigh="62"&gt;I've noticed that most people start off emails with "Hi Bob,". I suspect they're treating "hi" as a less endearing replacement for "dear" in "Dear Bob,". Technically, "dear" is an adjective describing "Bob" while "hi" stands on its own and is not part of the direct address. I prefer the more correct salutation: "Hi, Bob."&lt;/p&gt;

&lt;p&gt;Who is the most grammatically correct social network? Facebook, Plaxo Pulse, and Flickr get this wrong, by my standards, in their automated emails. Twitter gets it right.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-181270584321244166?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=GSZwL3H6iIY:QMqNWlZap0c:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=GSZwL3H6iIY:QMqNWlZap0c:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=GSZwL3H6iIY:QMqNWlZap0c:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/GSZwL3H6iIY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/181270584321244166/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=181270584321244166" title="17 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/181270584321244166" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/181270584321244166" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/07/greeting-grammar.html" title="Greeting Grammar" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-8717445736304239490</id><published>2008-06-26T10:42:00.000-07:00</published><updated>2008-07-01T16:43:27.419-07:00</updated><title type="text">Expert Guice</title><content type="html">&lt;p&gt;&lt;a href="http://www.javapolis.com/confluence/display/~stephan/Home"&gt;Stephan&lt;/a&gt; just posted video of a talk I gave at Javapolis back in December: &lt;a href="http://parleys.com/display/PARLEYS/Home#slide=1;talk=14123111;title=Guice"&gt;&lt;i&gt;Expert Guice: 50 some odd ways to Guice up your Java&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://parleys.com/display/PARLEYS/Home#slide=1;talk=14123111;title=Guice"&gt;&lt;img src="http://crazybob.org/javapolis07-guice.png" width="450" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; Stephan fixed the audio levels so you should be able to hear me now. :-)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-8717445736304239490?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=hfp68DM8dxQ:eZnMfxvhYfw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=hfp68DM8dxQ:eZnMfxvhYfw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=hfp68DM8dxQ:eZnMfxvhYfw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/hfp68DM8dxQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/8717445736304239490/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=8717445736304239490" title="10 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/8717445736304239490" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/8717445736304239490" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/06/expert-guice.html" title="Expert Guice" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-8551156360085828210</id><published>2008-05-28T07:23:00.000-07:00</published><updated>2008-05-28T07:26:22.982-07:00</updated><title type="text">Guice @ Google I/O</title><content type="html">&lt;a href="http://publicobject.com/"&gt;Jesse&lt;/a&gt; and I are presenting Guice 101 at &lt;a href="http://code.google.com/events/io/"&gt;Google I/O&lt;/a&gt;, 11:15 this morning:

&lt;blockquote&gt;
Guice (pronounced 'juice') is a Jolt award-winnning, lightweight dependency injection framework for Java 5 and above. Put simply, Guice alleviates the need for factories and the use of new in your Java code. Think of Guice's @Inject as the new new. You will still need to write factories in some cases, but your code will not depend directly on them. Your code will be easier to change, unit test and reuse in other contexts.
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-8551156360085828210?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=KWVdOeOYiy4:ll_SWqEobmk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=KWVdOeOYiy4:ll_SWqEobmk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=KWVdOeOYiy4:ll_SWqEobmk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/KWVdOeOYiy4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/8551156360085828210/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=8551156360085828210" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/8551156360085828210" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/8551156360085828210" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/05/guice-google-io.html" title="Guice @ Google I/O" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-459423520104674072</id><published>2008-05-04T12:07:00.000-07:00</published><updated>2008-05-04T12:08:08.786-07:00</updated><title type="text">Teyana Taylor - "Google Me"</title><content type="html">&lt;center&gt;&lt;object width="425" height="355"&gt;&lt;param name="movie" value="http://www.youtube.com/v/9axroVxp2qI&amp;hl=en"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/9axroVxp2qI&amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/center&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-459423520104674072?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=IFUpalE2FEA:9cqIYcUEvmY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=IFUpalE2FEA:9cqIYcUEvmY:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=IFUpalE2FEA:9cqIYcUEvmY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/IFUpalE2FEA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/459423520104674072/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=459423520104674072" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/459423520104674072" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/459423520104674072" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/05/teyana-taylor-google-me.html" title="Teyana Taylor - &quot;Google Me&quot;" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-4819946983474281412</id><published>2008-05-01T17:42:00.000-07:00</published><updated>2008-05-02T20:53:38.442-07:00</updated><title type="text">Going to JavaOne? Sign up for Twitter.</title><content type="html">&lt;p&gt;If you already twitter, feel free to skip to the next section. If you've never heard of Twitter, read on and keep your finger on the pulse of JavaOne.&lt;/p&gt;

&lt;p&gt;&lt;img align="right" src="http://crazybob.org/uploaded_images/twitter-logo-791366.png" border="0" style="margin: 0px 0px 10px 10px"/&gt;
With &lt;a href="http://twitter.com/"&gt;Twitter&lt;/a&gt;, you can broadcast short status updates to your followers and receive updates from people who you follow. It's like having one big instant messaging conversation with all of your friends.&lt;/p&gt;

&lt;p&gt;You can access Twitter via SMS. During JavaOne, you can easily keep tabs on your fellow attendees as well as let them know what you're up to, all from just about any cell phone (standard text messaging rates apply).&lt;/p&gt;

&lt;p&gt;For example, if you &lt;a href="http://twitter.com/crazybob"&gt;follow me&lt;/a&gt;, and I text "free beer at Guice BoF!" to Twitter, Twitter will forward the message on to your phone.&lt;/p&gt; 

&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; In addition to following someone, you must also enable "device updates" for that person in order to receive their updates via text and instant message.&lt;/p&gt;

&lt;p&gt;If you don't have unlimited text messaging, you can always access Twitter via the web or one of &lt;a href="http://twitter.pbwiki.com/Apps"&gt;the zillion 3rd party Twitter applications&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;#javaone&lt;/h3&gt;

&lt;p&gt;The Twitter world utilizes an ad hoc tagging system called &lt;i&gt;&lt;a href="http://hashtags.org/"&gt;hashtags&lt;/a&gt;&lt;/i&gt;. It's simple. Tag your JavaOne-related messages by appending "#javaone" to them, and I'll be able to see your update even if I'm not following you yet.

&lt;p&gt;Simply text "track javaone" to Twitter in order to receive any message containing the word &lt;i&gt;javaone&lt;/i&gt; from anyone on Twitter, or &lt;a href="http://summize.com/search?q=%23javaone"&gt;search for "#javaone" on Summize&lt;/a&gt;, a real time Twitter search engine.&lt;/p&gt;

&lt;h3&gt;Follow Me&lt;/h3&gt;

&lt;p&gt;I plan to twitter throughout JavaOne. In addition to &lt;a href="http://twitter.com/crazybob"&gt;following me&lt;/a&gt;, also check out these Java twitterers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://twitter.com/JavaOne2008"&gt;JavaOne&lt;/a&gt; - The conference itself&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/dandiep"&gt;Dan Diephouse&lt;/a&gt; - Mule&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/twleung"&gt;Ted Leung&lt;/a&gt; - Jython&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/spullara"&gt;Sam Pullara&lt;/a&gt; - Yahoo, ex BEA, Gauntlet founder&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/dickwall"&gt;Dick Wall&lt;/a&gt; - The Java Posse&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/kebernet"&gt;Robert Cooper&lt;/a&gt; - Author of &lt;i&gt;GWT in Practice&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/robc2"&gt;Roberto Chinnici&lt;/a&gt; - Java EE 6 spec. lead&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/snoopdave"&gt;Dave Johnson&lt;/a&gt; - Blogging Roller&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/dalmaer"&gt;Dion Almaer&lt;/a&gt; - Google code evangelist and founder of Ajaxian.com&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/gbevin"&gt;Geert Bevin&lt;/a&gt; - RIFE, Terracotta&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/smaragdis"&gt;Mary Smaragdis&lt;/a&gt; - Sun marketing director&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/ghohpe"&gt;Gregor Hohpe&lt;/a&gt; - Google, enterprise messaging patterns&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/vanriper"&gt;Van Riper&lt;/a&gt; - Silicon Valley JUG&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/bobmcwhirter"&gt;Bob McWhirter&lt;/a&gt; - JBoss&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/chanezon"&gt;Patrick Chanezon&lt;/a&gt; - Google API evangelist&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/mcannonbrookes"&gt;Mike Cannon-Brookes&lt;/a&gt; - Atlassian founder&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/carlfish"&gt;Charles Miller&lt;/a&gt; - Confluence lead&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/cpurdy"&gt;Cameron Purdy&lt;/a&gt; - Tangosol founder&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/rmisek"&gt;Rob Misek&lt;/a&gt; - Coherence sales dude&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/mikeloukides"&gt;Mike Loukides&lt;/a&gt; - Java editor for O'Reilly&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/LeMec"&gt;Alexandru Popescu&lt;/a&gt; - InfoQ co-founder&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/kjetilhp"&gt;Kjetil Paulsen&lt;/a&gt; - JavaZone&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/stuarthalloway"&gt;Stuart Halloway&lt;/a&gt; - Relevance, Inc.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/mreinhold"&gt;Mark Reinhold&lt;/a&gt; - Chief Engineer, Java SE&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/jstrachan"&gt;James Strachan&lt;/a&gt; - Groovy, ActiveMQ, Latrz, etc.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/kevinb9n"&gt;Kevin Bourrillion&lt;/a&gt; - Guice, Google Collections&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/gafter"&gt;Neal Gafter&lt;/a&gt; - javac, closures&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/dhanji"&gt;Dhanji Prasanna&lt;/a&gt; - Warp, author of Manning's &lt;i&gt;Dependency Injection&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/jessewilson"&gt;Jesse Wilson&lt;/a&gt; - Glazed Lists, Guice&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/puredanger"&gt;Alex Miller&lt;/a&gt; - Terracotta&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/euxx"&gt;Eugene Kuleshov&lt;/a&gt; - ASM, Terracotta&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/emmanuelbernard"&gt;Emmanuel Bernard&lt;/a&gt; - Hibernate&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/jasoncarreira"&gt;Jason Carreira&lt;/a&gt; - WebWork&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/glaforge"&gt;Guillaume Laforge&lt;/a&gt; - Groovy, Grails&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/sdnjavaone08"&gt;Sun Developer Network @ JavaOne&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/fwierzbicki"&gt;Frank Wierzbicki&lt;/a&gt; - Jython&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/headius"&gt;Charles Nutter&lt;/a&gt; - JRuby&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/michaelg"&gt;Michael Galpin&lt;/a&gt; - eBay&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/jkuhnert"&gt;Jesse Kuhnert&lt;/a&gt; - Tapestry&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/ekabanov"&gt;Jevgeni Kabanov&lt;/a&gt; - JavaRebel&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/samcharrington"&gt;Sam Charrington&lt;/a&gt; - Appistry&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you'll be twittering from JavaOne and I didn't mention you above, link to your profile from the comments so others can find you.&lt;/p&gt;

&lt;p&gt;Finally, please spread the word about this post and twittering at JavaOne in general. The more people who Twitter from JavaOne, the more fun we'll have!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-4819946983474281412?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=T2ADnNNZQsI:P12KNt1V1Ms:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=T2ADnNNZQsI:P12KNt1V1Ms:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=T2ADnNNZQsI:P12KNt1V1Ms:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/T2ADnNNZQsI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/4819946983474281412/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=4819946983474281412" title="13 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4819946983474281412" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4819946983474281412" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/05/going-to-javaone-sign-up-for-twitter.html" title="Going to JavaOne? Sign up for Twitter." /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-686027953056804385</id><published>2008-04-17T14:40:00.000-07:00</published><updated>2008-04-17T15:03:26.938-07:00</updated><title type="text">The Twubble with Twitter</title><content type="html">&lt;p&gt;Dion Almaer interviewed me about &lt;a href="http://crazybob.org/twubble"&gt;Twubble&lt;/a&gt; for the Google Developer Podcast:&lt;/p&gt;

&lt;center&gt;&lt;object width="425" height="355"&gt;&lt;param name="movie" value="http://www.youtube.com/v/lnxaV8jt_28&amp;hl=en"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/lnxaV8jt_28&amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/center&gt;

&lt;p&gt;If you use &lt;a href="http://twitter.com/"&gt;Twitter&lt;/a&gt;, &lt;a href="http://crazybob.org/twubble"&gt;Twubble&lt;/a&gt; can look at your existing friends' friends and recommend new people for you to follow. It's a stupid simple idea, but I think the execution and fun factor have won people over.&lt;/p&gt;

&lt;p&gt;I wrote Twubble in a couple nights of hacking in bed after the kid went to sleep. I used the latest &lt;a href="http://code.google.com/webtoolkit/"&gt;Google Web Toolkit&lt;/a&gt; milestone which supports Java 5 (flawlessly from my experience). I was writing Javascript code (server and client side) for years before I ever got into Java, but I have to say, you'd be crazy to write AJAX apps any other way than GWT nowadays.&lt;/p&gt;

&lt;center&gt;&lt;a href="http://crazybob.org/twubble"&gt;&lt;img src="http://crazybob.org/twubble-screenshot.png" width="405" height="338"&gt;&lt;/a&gt;&lt;/center&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-686027953056804385?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=puiGVN5-k04:UFmckKBpDJM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=puiGVN5-k04:UFmckKBpDJM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=puiGVN5-k04:UFmckKBpDJM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/puiGVN5-k04" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/686027953056804385/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=686027953056804385" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/686027953056804385" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/686027953056804385" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/04/twubble-with-twitter.html" title="The Twubble with Twitter" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-4963642410909899091</id><published>2008-03-11T13:03:00.000-07:00</published><updated>2008-03-11T19:20:21.328-07:00</updated><title type="text">Statically Typed Foreword</title><content type="html">&lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FGoogle-Guice-Lightweight-Dependency-Firstpress%2Fdp%2F1590599977%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1205182459%26sr%3D1-1&amp;tag=crazyboborg-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325"&gt;&lt;img src="http://crazybob.org/apress-guice.gif" width="125" height="153" align="right" style="margin-left: 10px"&gt;&lt;/a&gt;Robbie asked me to write a foreword for &lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FGoogle-Guice-Lightweight-Dependency-Firstpress%2Fdp%2F1590599977%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1205182459%26sr%3D1-1&amp;tag=crazyboborg-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325"&gt;his upcoming Guice book&lt;/a&gt;. Having never written a foreword before, I Googled, "how to write a foreword," which brought me to two helpful posts from Muse Ink: &lt;i&gt;&lt;a href="http://museinks.blogspot.com/2005/10/foreword-thinking-introduction-to.html"&gt;Foreword Thinking&lt;/a&gt;&lt;/i&gt; and &lt;i&gt;&lt;a href="http://museinks.blogspot.com/2005/10/foreword-march-how-to-write-fantastic_25.html"&gt;Foreword March&lt;/a&gt;&lt;/i&gt;. 

&lt;p&gt;Here's what I came up with:

&lt;blockquote&gt;
&lt;p&gt;I created Guice in the midst of one of the biggest projects of my career. When you have hundreds of engineers touching millions of lines of code, you come to appreciate the benefits of static type checking. Static types aren't just about compiler errors. In fact, I rarely see Java compiler errors nowadays. Thanks to all that great, formalized Java type information, my IDE helps me write correct code in the first place.&lt;/p&gt;

&lt;p&gt;Writing your application in a nearly 100 percent type safe manner, like Guice enables and Robbie advocates in this book, opens the door to a new level of maintainability. You can effortlessly navigate unfamiliar code, jumping from interfaces to their implementation and from methods to their callers. As you master your Java tools, you realize that deceptively simple atomic refactorings combine to form molecular tools, which you can reliably apply to companywide swaths of code, accomplishing refactorings you'd never even consider trying by hand. In the long run, it's much cheaper to ward off bit rot through heavy reuse and constant refactoring than by nuking the world with a rewrite every couple years.&lt;/p&gt;

&lt;p&gt;Having experienced Guice's benefits on a number of projects, we at Google knew we couldn't keep it to ourselves and decided to make it open source. Readying Guice for the outside world felt like it took an order of magnitude more work than writing that first internal version, but community contributors like Robbie who fuel the forums, help polish rough edges, and generate excellent documentation like this book pay back that effort tenfold. You'll find that Robbie's brevity and conversational tone suit Guice well. I like my books like I like my APIs: with high power-to-weight ratios.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I focused on static typing because I've gotten a lot of questions about it lately. There's a lot of misinformation out there. For example, &lt;a href="http://blog.jayfields.com/2008/02/static-typing-considered-harmful.html" rel="nofollow"&gt;some people&lt;/a&gt; incorrectly conflate static typing with compiler errors, and, based on that false foundation, they claim that unit testing is an adequate substitute for static typing. 

&lt;p&gt;Static typing and unit tests are orthogonal. Static typing doesn't replace unit tests. Unit tests don't replace static typing. In fact, static typing can make maintaining unit tests much easier, especially when paired with &lt;a href="http://www.easymock.org/index.html"&gt;the right mocking framework&lt;/a&gt;. I certainly believe that scripting languages have their place; beware anyone who tells you that static typing doesn't.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-4963642410909899091?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=A--NZoFOKVg:X3sHFdXTF1U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=A--NZoFOKVg:X3sHFdXTF1U:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=A--NZoFOKVg:X3sHFdXTF1U:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/A--NZoFOKVg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/4963642410909899091/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=4963642410909899091" title="19 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4963642410909899091" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/4963642410909899091" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/03/statically-typed-foreword.html" title="Statically Typed Foreword" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-1563180514681075465</id><published>2008-03-10T11:23:00.000-07:00</published><updated>2008-03-12T21:52:59.767-07:00</updated><title type="text">Thanks for the Jolt!</title><content type="html">&lt;p&gt;&lt;a href="http://www.flickr.com/photos/crazybob/2321887906/" title="Jolt"&gt;&lt;img src="http://farm4.static.flickr.com/3129/2321887906_55c402cfa2.jpg" width="405" height="270" alt="Jolt" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.drdobbs.com/blog/portal/archives/2008/03/jolt_award_winn.html"&gt;Guice took home the Jolt&lt;/a&gt;, a.k.a. the geek Oscar, at an award ceremony hosted by &lt;a href="http://www.pbs.org/cringely/"&gt;Bob Cringely&lt;/a&gt; during &lt;a href="http://www.sdexpo.com/"&gt;SDWest&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
The Jolt Awards recognize those products, books, and websites that have "jolted" the industry in the past year. Winners are selected by a panel of judges consisting of industry insiders, columnists, and technology leaders.
&lt;/blockquote&gt;

&lt;p&gt;I started reading Dr. Dobb's Journal back when I was 12. I regularly bought it off the newsstand at Oxford books in Atlanta and was lucky to understand one article in the entire magazine. I learned much of what I know by reading instead of going to college, so DDJ has been an invaluable resource for me. I remember greatly admiring the Jolt winners each year. I hardly imagined myself among them, especially so soon.&lt;/p&gt;

&lt;p&gt;The judges picked three productivity winners and one overall Jolt winner from a pool of six finalists in each category. Guice had some stiff competition; other finalists in the &lt;i&gt;Libraries, Frameworks and Components&lt;/i&gt; category included the Eclipse Modeling Project, JasperReports, Qt Jambi, the Spring Framework, and the Zend Framework.  Congratulations to the productivity winners: Eclipse, Zend and JasperReports.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://smallwig.blogspot.com/"&gt;Kevin&lt;/a&gt; and I had the pleasure of accepting the award on stage, but the truth is, Guice 1.0 is heavily indebted to a lot of people. I can't name you all, but I would like to thank:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;My wife Krista and daughter Dagny for their support&lt;/li&gt;
&lt;li&gt;The Jolt judges for recognizing our hard work&lt;/li&gt;
&lt;li&gt;Kevin Thompson, our manager at the time who gave me the latitude to work on Guice full time&lt;/li&gt;
&lt;li&gt;My mentors &lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FEffective-Java-Second-2nd%2Fdp%2F0321356683%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1205182321%26sr%3D1-2&amp;tag=crazyboborg-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325"&gt;Josh Bloch&lt;/a&gt; and &lt;a href="http://gafter.blogspot.com/"&gt;Neal Gafter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Cedric and Hani for their treatment of Guice in &lt;i&gt;&lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FNext-Generation-Java-Testing-Advanced%2Fdp%2F0321503104&amp;tag=crazyboborg-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325"&gt;Next Generation Testing&lt;/a&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;The early adopters and contributers who helped steer Guice to 1.0, in random order: Jesse Wilson, Zorzella, Laura Werner, Peter Epstein, Don Brown (Struts 2), Cliff Biffle, Arthur Gleckler&lt;/li&gt;
&lt;li&gt;&lt;a href="http://slesinsky.org/brian/"&gt;Brian Slesinsky&lt;/a&gt;, for his apt analogies, &lt;a href="http://stuffthathappens.com/blog/"&gt;Eric Burke&lt;/a&gt;, for his cartoons, and all the other bloggers who helped popularize Guice&lt;/li&gt;
&lt;li&gt;Robbie for writing &lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FGoogle-Guice-Lightweight-Dependency-Firstpress%2Fdp%2F1590599977%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1205182459%26sr%3D1-1&amp;tag=crazyboborg-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325"&gt;a Guice book&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Dhanji for writing &lt;a href="http://www.manning.com/prasanna/"&gt;a Guice book&lt;/a&gt;, and integrating Guice with Hibernate and JPA in &lt;a href="http://www.wideplay.com/guicewebextensions2"&gt;Warp Persist&lt;/a&gt;
&lt;li&gt;My parents for instilling a strong sense of type safety at an early age (Thanks for the reminder, kebernet.)&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;And finally, I'd like to thank Google for its unparalleled commitment to open source. If you haven't tried Guice yet, &lt;a href="http://code.google.com/p/google-guice/"&gt;now is the time&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-1563180514681075465?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=WI9hEeGN89Y:ZxS1l0i7eeU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=WI9hEeGN89Y:ZxS1l0i7eeU:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=WI9hEeGN89Y:ZxS1l0i7eeU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/WI9hEeGN89Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/1563180514681075465/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=1563180514681075465" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/1563180514681075465" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/1563180514681075465" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/03/thanks-for-jolt.html" title="Thanks for the Jolt!" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-2011501516103519803</id><published>2008-01-30T07:28:00.001-08:00</published><updated>2008-01-30T11:57:02.224-08:00</updated><title type="text">The trouble with Twitter is...</title><content type="html">When it's down, the first thing you want to do is &lt;a href="http://twitter.com/crazybob"&gt;Twitter about it being down&lt;/a&gt;. I originally wanted to tell Duncan Davidson how much I love &lt;a href="http://duncandavidson.com/"&gt;his site design&lt;/a&gt;. I'm sure it's been that way for awhile, but I normally only see his RSS feed.

&lt;p&gt;I'm also thinking about picking up the second edition of the &lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FCompilers-Principles-Techniques-Tools-2nd%2Fdp%2F0321486811%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1201721727%26sr%3D8-1&amp;tag=crazyboborg-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325"&gt;Dragon Book&lt;/a&gt;. I want to learn more about language design and compilers. I know the Dragon Book has it's shortcomings, but I love that the new edition covers JIT compiling and garbage collection, and I'm really just looking for a foundation, not a definitive reference. I can catch up on the latest and greatest via the &lt;a href="http://www.acm.org/"&gt;ACM&lt;/a&gt;.

&lt;p&gt;I guess it would have been hard to fit that into 140 characters anyway.

&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; After reading the Amazon customer reviews, I bought &lt;i&gt;&lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FProgramming-Language-Pragmatics-Second-Michael%2Fdp%2F0126339511%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1201722050%26sr%3D1-1&amp;tag=crazyboborg-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325"&gt;Programming Language Pragmatics&lt;/a&gt;&lt;/i&gt; instead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-2011501516103519803?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=6ot4ZVL1EMM:FtzFToR8Ff8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=6ot4ZVL1EMM:FtzFToR8Ff8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=6ot4ZVL1EMM:FtzFToR8Ff8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/6ot4ZVL1EMM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/2011501516103519803/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=2011501516103519803" title="10 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2011501516103519803" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2011501516103519803" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/01/thing-about-twitter-is.html" title="The trouble with Twitter is..." /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-628723975310252015</id><published>2008-01-22T18:23:00.000-08:00</published><updated>2008-01-23T09:07:34.508-08:00</updated><title type="text">In the hot seat</title><content type="html">I sat down for an interview with Carl Quinn during Javapolis, and &lt;a href="http://parleys.com/display/PARLEYS/Interview+with+Bob+Lee+at+JavaPolis%2707?showComments=true"&gt; the video is now up on parleys.com&lt;/a&gt;. You can also find &lt;a href="http://javaposse.com/index.php?post_id=299505#"&gt;an audio-only podcast version on the Java Posse's web site&lt;/a&gt;. In it, we talk frankly about:

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://parleys.com/display/PARLEYS/Interview+with+Bob+Lee+at+JavaPolis%2707?showComments=true"&gt;&lt;img src="http://parleys.com/download/attachments/6815785/thumbnail1.jpg" style="padding: 10px 0px 10px 10px" align="right" border="0" /&gt;&lt;/a&gt;The history of and philosophy behind Guice, what problems it solves, how we implemented it, the secret sauce in Guice's stellar performance, and how Guice compares to other approaches.&lt;/li&gt;

&lt;li&gt;How we in the Java community need to take a step back and rethink API and framework design after Java 5 and 6. Reflection heavy and convention based Java 1.4 designs won't fly for much longer. Readability doesn't necesarily mean fewer characters. Java 5 made static type safety a reality and introduced explicit meta data. Java 6 lowered the barriers to compile time code generation, but good documentation of these new features is still much needed.&lt;/li&gt;

&lt;li&gt;The future of Guice and dependency injection in general. I'd like to see dependency injection on mobile devices and deeply integrated into Java SE. One day, many of the problems we're solving in a separate framework will be addressed seamlessly by the core platform, and we'll be free of integration headaches and able to focus on higher level abstractions all around.&lt;/li&gt;

&lt;li&gt;&lt;a href="http://code.google.com/p/google-collections/"&gt;Google Collections&lt;/a&gt;, an excellent open source project led by Guice co-lead &lt;a href="http://smallwig.blogspot.com/"&gt;Kevin Bourrillion&lt;/a&gt;. Check it out if you haven't already. Kevin and the rest of the team try to hold the Google Collections to the same standards as the core Java SE Collections, and it shows.

&lt;li&gt;Weak vs. soft references, which you should use, and specifically when not to use soft references.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks again goes to Carl and Stephan and the rest of the BeJUG team. Javapolis was one of the most fun, inspiring, community-oriented conferences I've been to in a long time. Getting back and forth between your hotel and the conference was a little tricky at times, but the venue itself absolutely rocked.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-628723975310252015?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=6e-sFu1SlIw:nc4f-8RrReI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=6e-sFu1SlIw:nc4f-8RrReI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=6e-sFu1SlIw:nc4f-8RrReI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/6e-sFu1SlIw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/628723975310252015/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=628723975310252015" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/628723975310252015" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/628723975310252015" /><link rel="alternate" type="text/html" href="http://crazybob.org/2008/01/in-hot-seat.html" title="In the hot seat" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-7223925806839443408</id><published>2007-12-07T10:42:00.000-08:00</published><updated>2007-12-07T10:49:32.313-08:00</updated><title type="text">Guice @ Javapolis</title><content type="html">I'm speaking about Guice first thing on Wednesday and JSR 299 Web Beans on Thursday. How should I approach my Guice talk? We already have a &lt;a href="http://crazybob.org/2007/06/introduction-to-guice-video-redux.html"&gt;pretty good video introduction&lt;/a&gt; up on the web. Is it safe to assume enough people understand the basics and dive right into the future of dependency injection? What would you like to hear about?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-7223925806839443408?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=tlOeBetmLSE:ttRuT0DLZuw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=tlOeBetmLSE:ttRuT0DLZuw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=tlOeBetmLSE:ttRuT0DLZuw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/tlOeBetmLSE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/7223925806839443408/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=7223925806839443408" title="9 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/7223925806839443408" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/7223925806839443408" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/12/guice-javapolis.html" title="Guice @ Javapolis" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-3433575267865443534</id><published>2007-11-11T11:39:00.000-08:00</published><updated>2007-11-12T08:41:57.165-08:00</updated><title type="text">I dream of electric sheep.</title><content type="html">&lt;img src="http://www.openhandsetalliance.com/images/android_robot.gif" width="125" height="137" align="right"&gt;
In roughly 24 hours, we'll release the &lt;a href="http://code.google.com/android/"&gt;Android SDK&lt;/a&gt;, and I'll finally be able to talk about what I work on. My phone will be one (big) step closer to freedom. Wish us luck!

&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; &lt;a href="http://code.google.com/android/"&gt;It's alive!&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-3433575267865443534?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=mztsa914ukE:S4SKoa9gHIw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=mztsa914ukE:S4SKoa9gHIw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=mztsa914ukE:S4SKoa9gHIw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/mztsa914ukE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/3433575267865443534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=3433575267865443534" title="9 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/3433575267865443534" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/3433575267865443534" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/11/i-dream-of-electric-sheep.html" title="I dream of electric sheep." /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-6713470184878417975</id><published>2007-10-16T14:18:00.000-07:00</published><updated>2007-10-16T16:41:46.771-07:00</updated><title type="text">Why Guice?</title><content type="html">&lt;center&gt;&lt;img src="http://crazybob.org/uploaded_images/tss-interview-752529.png" width="320" height="239"/&gt;&lt;/center&gt;

&lt;p&gt;TheServerSide just posted &lt;a href="http://www.theserverside.com/talks/index.tss"&gt;a video interview they recorded in May shortly after the Guice 1.0 release&lt;/a&gt;. Since then, I've had ample time to chew over what I like so much about Guice and hone my thoughts on dependency injection in general.

&lt;p&gt;Being a fan of plain old Java, before I wrote Guice, existing dependency injection frameworks were non-starters for me. I'd sooner write factories by hand than keep XML in sync with my classes or embed method names in strings. I mean, if you don't have type safety, all of that extra typing really is for naught, and you might as well switch to Ruby. Furthermore, a programmer shouldn't have to fire up a debugger or even think too hard in order to figure out what her code is doing. I felt the same way about mocking frameworks until &lt;a href="http://www.easymock.org/"&gt;EasyMock&lt;/a&gt; pioneered their &lt;a href="http://smallwig.blogspot.com/2007/03/by-way-what-does-extraordinarily.html"&gt;extraordinarily typesafe&lt;/a&gt; approach.

&lt;p&gt;Before Guice, I had to make the same up-front decision over and over: do I call a constructor directly, or do I write a factory and call it instead? If you start out calling a constructor and later decide that you need a factory, you have to go back and change all the callers. On the other hand, factories come at a cost: they clutter your API and result in a bunch of boilerplate code which you have to both write and maintain. In practice, if the only reason you  need a factory is to enable testing, most programmers will forgo the factory, testing be damned.

&lt;p&gt;Guice provides the best of both worlds and finally enables agile programming in Java. Injecting an object requires roughly the same amount of effort as calling a constructor. If you decide later on that you need more abstraction, write a factory and change your code in one place; there's no need to change all the callers. If you're providing code to someone else, give them a bunch of interfaces and a Guice module. They can test their code, you can change how you create objects to your heart's content without impacting your users, and your API will be smaller to boot. As you can probably tell from Guice, I love &lt;a href="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/package-summary.html"&gt;small, interface-heavy APIs&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-6713470184878417975?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=7nreUQovIuQ:udEOE6BmrYc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=7nreUQovIuQ:udEOE6BmrYc:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=7nreUQovIuQ:udEOE6BmrYc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/7nreUQovIuQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/6713470184878417975/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=6713470184878417975" title="9 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/6713470184878417975" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/6713470184878417975" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/10/guice-interview-on-tss.html" title="Why Guice?" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-5305795363157089413</id><published>2007-09-26T23:54:00.000-07:00</published><updated>2007-09-27T00:02:54.889-07:00</updated><title type="text">Tax-Free Guice</title><content type="html">&lt;a href="http://stuffthathappens.com/blog/2007/09/26/comic-tribute-to-crazy-bob/"&gt;&lt;img src="http://stuffthathappens.com/blog/wp-content/uploads/2007/09/continuous-tax.png" width="440" height="440"&gt;&lt;/a&gt;
&lt;p&gt;I'm speechless. Thanks, &lt;a href="http://stuffthathappens.com/blog/2007/09/26/comic-tribute-to-crazy-bob/"&gt;Eric&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-5305795363157089413?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=ag0guRYCWiI:spvLYAu0lpo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=ag0guRYCWiI:spvLYAu0lpo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=ag0guRYCWiI:spvLYAu0lpo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/ag0guRYCWiI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/5305795363157089413/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=5305795363157089413" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/5305795363157089413" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/5305795363157089413" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/09/tax-free-guice.html" title="Tax-Free Guice" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-8112899082056201119</id><published>2007-09-18T12:30:00.000-07:00</published><updated>2007-09-18T12:37:42.366-07:00</updated><title type="text">Silicon Valley JUG @ Google Tonight</title><content type="html">Swing by, and say hello.

&lt;p&gt;&lt;b&gt;Topic:&lt;/b&gt; Improving your Code with Objects and Aspects&lt;br&gt;
&lt;b&gt;Speaker:&lt;/b&gt; &lt;a href="http://www.chrisrichardson.net"&gt;Chris Richardson&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Agenda:&lt;/b&gt; Snacking and mingling from 6:30 to 7, presentation from  7 to 8:30&lt;br&gt;
&lt;b&gt;Location:&lt;/b&gt; Google Inc., &lt;a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;q=1600+Amphitheatre+parkway,+mountain+view,+ca&amp;sll=37.0625,-95.677068&amp;sspn=31.426353,59.765625&amp;layer=&amp;ie=UTF8&amp;z=16&amp;ll=37.424196,-122.086494&amp;spn=0.007685,0.021629&amp;om=1&amp;iwloc=addr"&gt;Tunis Conference Room (Bldg. 43)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-8112899082056201119?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=Xf7fViu0T6c:QDKzF-OOxHo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=Xf7fViu0T6c:QDKzF-OOxHo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=Xf7fViu0T6c:QDKzF-OOxHo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/Xf7fViu0T6c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/8112899082056201119/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=8112899082056201119" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/8112899082056201119" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/8112899082056201119" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/09/silicon-valley-jug-google-tonight.html" title="Silicon Valley JUG @ Google Tonight" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-3171026144075120826</id><published>2007-09-18T12:23:00.000-07:00</published><updated>2007-09-18T12:38:52.354-07:00</updated><title type="text">Gavin King on ActiveRecord</title><content type="html">&lt;p&gt;Referring to this &lt;code&gt;ActiveRecord&lt;/code&gt; example:

&lt;pre&gt;
class Person &lt; ActiveRecord::Base  
   belongs_to :company  
end

class Company &lt; ActiveRecord::Base  
   has_many :people  
end
&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://in.relation.to/Bloggers/MoreXMLThanCode"&gt;Gavin says&lt;/a&gt;:

&lt;blockquote&gt;
&lt;p&gt;
At this point, most developers are thinking &lt;q&gt;um, ok, so how the hell am I supposed to know what attributes a &lt;tt&gt;Company&lt;/tt&gt; has by looking at my code? And how can my IDE auto-complete them?&lt;/q&gt; Of course, the Rails folks have a quick answer to this question &lt;q&gt;Oh, just fire up your database client and look in the database!&lt;/q&gt;. Then, assuming that you know ActiveRecord's automagic capitalization and pluralization rules &lt;i&gt;perfectly&lt;/i&gt;, you will be able to guess the names of the attributes of your own &lt;tt&gt;Company&lt;/tt&gt; class, and type them in manually.
&lt;/p&gt;

&lt;p&gt;
Somehow, excitement about the Ruby language has warped their perceptions to such an extent that these people actually believe that this is a &lt;i&gt;good thing&lt;/i&gt;!
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Couldn't have said it better myself.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-3171026144075120826?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=AVSEIFc2ySI:clPbN2sc_d0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=AVSEIFc2ySI:clPbN2sc_d0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=AVSEIFc2ySI:clPbN2sc_d0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/AVSEIFc2ySI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/3171026144075120826/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=3171026144075120826" title="43 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/3171026144075120826" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/3171026144075120826" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/09/gavin-king-on-activerecord.html" title="Gavin King on ActiveRecord" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">43</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-2967043949399414958</id><published>2007-09-14T13:57:00.000-07:00</published><updated>2007-09-14T14:00:01.563-07:00</updated><title type="text">Treader Supports del.icio.us</title><content type="html">After installing &lt;a href="http://userscripts.org/scripts/show/12198"&gt;Treader&lt;/a&gt;, you could already post to Twitter directly from Google Reader by hitting Shift+T. Now, you can hit Shift+D to bookmark an entry in del.icio.us, too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-2967043949399414958?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=BNN1s3xuL9E:bR6ab9ex-Mg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=BNN1s3xuL9E:bR6ab9ex-Mg:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=BNN1s3xuL9E:bR6ab9ex-Mg:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/BNN1s3xuL9E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/2967043949399414958/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=2967043949399414958" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2967043949399414958" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/2967043949399414958" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/09/treader-supports-delicious.html" title="Treader Supports del.icio.us" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12626926.post-19135828487458273</id><published>2007-09-14T07:44:00.000-07:00</published><updated>2007-09-14T10:10:48.381-07:00</updated><title type="text">Why reinvent the wheel?</title><content type="html">Why indeed? I'm not a big fan of the question, "Why reinvent the wheel?" It's what you call an &lt;a href="http://www.nizkor.org/features/fallacies/appeal-to-tradition.html"&gt;Appeal to Tradition&lt;/a&gt;, "a fallacy that occurs when it is assumed that something is better or correct simply because it is older, traditional, or 'always has been done.'" 

&lt;p&gt;Depending on the context, you can almost always replace "Why reinvent the wheel?" with "Please don't compete with me," or "Please don't make me learn something new." Either way, the opponent doesn't have a real argument against building something newer and better, but they also don't want to admit their unhealthy motivations for trying to stop you.

&lt;p&gt;More seeds, more blooms, I say. Don't build houses on kitchen sinks. Reinvent away. Most of our current technology sucks, and even if it didn't, who am I to try and stop you?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12626926-19135828487458273?l=crazybob.org' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=5NzhDFPmnUY:DbQ4Ti_Em80:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=5NzhDFPmnUY:DbQ4Ti_Em80:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/crazybob?a=5NzhDFPmnUY:DbQ4Ti_Em80:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/crazybob?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/crazybob/~4/5NzhDFPmnUY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/19135828487458273/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=12626926&amp;postID=19135828487458273" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/19135828487458273" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/12626926/posts/default/19135828487458273" /><link rel="alternate" type="text/html" href="http://crazybob.org/2007/09/why-reinvent-wheel.html" title="Why reinvent the wheel?" /><author><name>Bob</name><uri>http://www.blogger.com/profile/17659001534221131143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="03253804914471103373" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total></entry></feed>
