<?xml version="1.0" encoding="utf-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>samskivert &#187; code</title>
	<link>http://samskivert.com</link>
	<description>Ramblings by one Michael D. Bayne</description>
	<lastBuildDate>Sun, 07 Mar 2010 01:28:32 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>&#8220;Duplicate field expected&#8221;</title>
		<description><![CDATA[In my recent programming adventures, I separately encountered two perplexing error messages:

RuntimeException: Variable is used without definition!
IllegalArgumentException: Duplicate field expected

Inspection of the underlying code brought clarity:

throw new RuntimeException("Variable " + m + " used without definition!");
throw new IllegalArgumentException("Duplicate field " + fieldName);

The former was reporting a problem with a variable declared as InputStream is, the [...]]]></description>
		<link>http://samskivert.com/2010/01/duplicate-field-expected/</link>
			</item>
	<item>
		<title>Thank Gosling</title>
		<description><![CDATA[The following is not legal Java:

    public static void main (String[] args) {
        int[] foo = new int[1];
        int[] bar = new int[1];
        ((args.length == 0) ? foo[0] : bar[0]) = [...]]]></description>
		<link>http://samskivert.com/2009/11/thank-gosling/</link>
			</item>
	<item>
		<title>GWT AsyncGen</title>
		<description><![CDATA[The back-breaking straw landed on this camel earlier today when adding some methods to a GWT RemoteService interface and then remembering that, &#8220;Oh yeah, I have to go add those manually to the async mirror interface that goes with my service.&#8221;
First I poked around on the web. I found some sort of Maven plugin that [...]]]></description>
		<link>http://samskivert.com/2009/10/gwt-asyncgen/</link>
			</item>
	<item>
		<title>A technique for type-safe, concise actors in Java</title>
		<description><![CDATA[Actors are great. They provide a concurrency model that is not too taxing to reason about and an organizing principle that tends to jive with how you would naturally structure your code. I recently put actors to use in a real project (implemented in Java), and in the process had to overcome some aesthetic difficulties [...]]]></description>
		<link>http://samskivert.com/2009/06/a-technique-for-type-safe-concise-actors-in-java/</link>
			</item>
	<item>
		<title>Java Puzzlers (3)</title>
		<description><![CDATA[An excellent compendium of misleading and non-intuitive constructions in the Java language. A small few are contrived, but most ring true with my ten years of experience with the language. I have discovered more than a few of them &#8220;the hard way&#8221;. Highly recommended for anyone who writes a lot of Java code.
]]></description>
		<link>http://samskivert.com/2006/11/java-puzzlers-3/</link>
			</item>
	<item>
		<title>Scala</title>
		<description><![CDATA[Scala has piqued my interest more than any language to come down the pike in a long time. Type inference makes me cry out with joy, Java-compatibility, sensible mix-in support (made all the more useful by their very sophisticated type system), first-class functions, continuations (mostly), very SML-like type pattern matching, list comprehensions. One could get [...]]]></description>
		<link>http://samskivert.com/2006/08/scala/</link>
			</item>
	<item>
		<title>Random bitching</title>
		<description><![CDATA[What kind of error message is this?

[11:20pm] baltic:~ > java -jar foo.jar
Exception in thread "main" java.util.zip.ZipException: No such file or directory
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.(ZipFile.java:112)
        at java.util.jar.JarFile.(JarFile.java:127)
       [...]]]></description>
		<link>http://samskivert.com/2004/07/random-bitching/</link>
			</item>
</channel>
</rss>
