<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>CodeDependents &#187; Uncategorized</title>
	<atom:link href="http://codedependents.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://codedependents.com</link>
	<description>Two Geeks Walk Into A Blog</description>
	<lastBuildDate>Mon, 30 Apr 2012 15:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='codedependents.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>CodeDependents &#187; Uncategorized</title>
		<link>http://codedependents.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://codedependents.com/osd.xml" title="CodeDependents" />
	<atom:link rel='hub' href='http://codedependents.com/?pushpress=hub'/>
		<item>
		<title>Java Heaps and Garbage Collection with some Zazz</title>
		<link>http://codedependents.com/2011/06/10/java-heaps-and-garbage-collection-with-some-zazz/</link>
		<comments>http://codedependents.com/2011/06/10/java-heaps-and-garbage-collection-with-some-zazz/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 20:30:59 +0000</pubDate>
		<dc:creator>John Russell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://codedependents.com/?p=480</guid>
		<description><![CDATA[Here is a presentation I put together about Java heaps and garbage collection to go into some more detail than just raising the heap size. I put in links to some great websites and blog posts that are fantastic reads if you are trying to tune your app&#8217;s garbage collector. The best part though is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codedependents.com&#038;blog=7973493&#038;post=480&#038;subd=codedependents&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a presentation I put together about Java heaps and garbage collection to go into some more detail than just raising the heap size. I put in links to some great websites and blog posts that are fantastic reads if you are trying to tune your app&#8217;s garbage collector.</p>
<p>The best part though is the &#8220;wicked awesome&#8221; presentation tool <a href="http://prezi.com" target="_blank">Prezi</a>. It is an infinitely zoomable moving twisting camera landscape thingy . . . its kinda hard to describe.  But it makes PowerPoint look like two cups with a string between them.  Just check it out.</p>
<iframe frameborder="0" width="558" height="408" src="http://wpcomwidgets.com/?src=http%3A%2F%2Fprezi.com%2Fbin%2Fpreziloader.swf&amp;type=application%2Fx-shockwave-flash&amp;allowfullscreen=true&amp;allowscriptaccess=always&amp;width=550&amp;height=400&amp;bgcolor=%23ffffff&amp;flashvars=prezi_id%3Dlzofqasgefim%26lock_to_path%3D0%26color%3Dffffff%26autoplay%3Dno%26autohide_ctrls%3D0&amp;_tag=gigya&amp;_hash=22c599272796806f38e357c07e2593f4" id="22c599272796806f38e357c07e2593f4"></iframe>
<p>You can view it fullscreen and Prezi lets you copy presentations and modify them. Here is the <a href="http://prezi.com/lzofqasgefim/java-garbage-collection-and-heap-analysis/" target="_blank">direct link to the presentation</a> above if you want to copy it.  You can download a self contained offline viewer of a presentation you own (or one you&#8217;ve copied).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codedependents.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codedependents.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codedependents.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codedependents.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codedependents.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codedependents.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codedependents.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codedependents.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codedependents.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codedependents.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codedependents.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codedependents.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codedependents.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codedependents.wordpress.com/480/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codedependents.com&#038;blog=7973493&#038;post=480&#038;subd=codedependents&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codedependents.com/2011/06/10/java-heaps-and-garbage-collection-with-some-zazz/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c75369f25cd6b34076875bdc308c2aca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjamesrussell</media:title>
		</media:content>
	</item>
		<item>
		<title>Typed variables in an untyped world</title>
		<link>http://codedependents.com/2010/05/03/typed-variables-in-an-untyped-world/</link>
		<comments>http://codedependents.com/2010/05/03/typed-variables-in-an-untyped-world/#comments</comments>
		<pubDate>Mon, 03 May 2010 20:40:43 +0000</pubDate>
		<dc:creator>John Russell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[groovy]]></category>

		<guid isPermaLink="false">http://codedependents.com/?p=355</guid>
		<description><![CDATA[First, off, I&#8217;m a static type person.  Sorry, but I like me some static typing. It makes me feel warm and squishy.  It makes my IDE more useful.  I can refactor an entire code base and go to sleep and not have nightmares. Moving on, I&#8217;ve been using Groovy for unit testing a lot lately [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codedependents.com&#038;blog=7973493&#038;post=355&#038;subd=codedependents&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First, off, I&#8217;m a static type person.  Sorry, but I like me some static typing. It makes me feel warm and squishy.  It makes my IDE more useful.  I can refactor an entire code base and go to sleep and not have nightmares.</p>
<p>Moving on, I&#8217;ve been using Groovy for unit testing a lot lately and have decided  something. I like it. Its really nice to not have to deal with exceptions and be able to create lists and maps inline.  Closures kick butt.  Its really nice and easy. However, the lack of types that enable some of the cool things bug me, but they don&#8217;t have to.</p>
<p>Because groovy is a dynamic language you don&#8217;t have to provide the type of any given variable. This can be good and bad. Its sometimes convenient when you don&#8217;t know or don&#8217;t care what the type of a variable is.  However, in most cases, when you do know what the variable type is, it can be helpful to put type the variable.</p>
<p><code>// untyped, but it is really an ArrayList<br />
def someVariable = ["1","2","3"]</code></p>
<p><code>// same idea but now you know the type<br />
List someList = ["1","2","3"]<br />
</code><br />
Now, of course, you could have deduced the type of <strong>someVariable</strong> given its assignment, but apparently your IDE is not that smart, at least Eclipse isn&#8217;t. Especially if its one of my types and not a built in type.  One of the main reasons that I type variables is that if you explicitly type them, Eclipse can do auto completion on the method names of your variable.  If you use <strong>def</strong> to declare your variable Eclipse only gives you the default <strong>GroovyObject</strong> methods.  Not the best.</p>
<p>Also, providing types with method signatures makes it FAR FAR FAR more obvious what you are expecting of your caller.</p>
<p>Consider a method with the signature:</p>
<p><code>def someMethod(def thing1, def thing2, def thing3){<br />
...<br />
}<br />
</code><br />
Mmmmmmyeah. I have no idea what to pass to that thing. I also don&#8217;t know what its going to give back to me.</p>
<p>Don&#8217;t get me wrong, there are times when you don&#8217;t know some of these things or its more convenient not to declare them statically, but I have found that if you actually know at compile time what something is going to be, you may want to grease back your hair with your back pocket comb in your black leather jacket and stick it to the man with a quick <strong>def</strong>, but you from two weeks in the future and the next guy to read your code will be much happier if you throw a few types in there.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codedependents.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codedependents.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codedependents.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codedependents.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codedependents.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codedependents.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codedependents.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codedependents.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codedependents.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codedependents.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codedependents.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codedependents.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codedependents.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codedependents.wordpress.com/355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codedependents.com&#038;blog=7973493&#038;post=355&#038;subd=codedependents&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codedependents.com/2010/05/03/typed-variables-in-an-untyped-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c75369f25cd6b34076875bdc308c2aca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjamesrussell</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple Interrupt Driven Multitasking with scripts</title>
		<link>http://codedependents.com/2009/08/05/simple-interrupt-driven-multitasking-with-scripts/</link>
		<comments>http://codedependents.com/2009/08/05/simple-interrupt-driven-multitasking-with-scripts/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 21:10:00 +0000</pubDate>
		<dc:creator>John Russell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://codedependents.com/?p=227</guid>
		<description><![CDATA[Compiling. Searching. Downloading with wget. They take a long time and are kind of boring to stare at. You have two choices. Choice one is to follow the xkcd model: But once in a while, you actually have some other stuff to do. Maybe if you had a few minutes you could go a few [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codedependents.com&#038;blog=7973493&#038;post=227&#038;subd=codedependents&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Compiling. Searching. Downloading with wget.  They take a long time and are kind of boring to stare at.  You have two choices.  Choice one is to follow the xkcd model:</p>
<div class="wp-caption alignnone" style="width: 423px"><a href="http://xkcd.com/303/"><img title="Compiling" src="http://imgs.xkcd.com/comics/compiling.png" alt="xkcd comic about wasting time compiling" width="413" height="360" /></a><p class="wp-caption-text">xkcd comic about wasting time compiling</p></div>
<p>But once in a while, you actually have some other stuff to do. Maybe if you had a few minutes you could go a few emails closer to <a href="http://www.43folders.com/izero">Inbox Zero</a> or you could go <a href="http://www.ted.com">watch something to make you smarter</a> or go <a href="http://reader.google.com">read</a> something.  Either way, if you&#8217;re like <a href="http://www.imdb.com/title/tt0209144/">me and that guy from Momento</a> and you try to do something else useful while your computer is working you will immediate forget that it was off doing your bidding and you will stumble across the idle terminal hours/days later.</p>
<p>Here&#8217;s a really quick solution.  Put this script in your path somewhere.</p>
<p><code>#!/bin/bash</code></p>
<p><code>if [ $(uname) = "Darwin" ] ; then<br />
&nbsp;&nbsp;# osascript doesn't allow you to interact with the UI so just raise the terminal<br />
&nbsp;&nbsp;osascript &lt; /dev/null 2&gt;&amp;1<br />
elif [ $(uname) = "Linux" ] ; then<br />
&nbsp;&nbsp;zenity --title "Finished" --info --text "I'm done doing what you asked." &gt; /dev/null 2&gt;&amp;1<br />
elif [ $(uname) = "Cygwin" ] ; then<br />
&nbsp;&nbsp;echo "Left as an exercise for the reader.  Helpful hints may be found at http://store.apple.com and http://ubuntu.com"<br />
else<br />
&nbsp;&nbsp;echo "Unknown platform: $(uname)"<br />
&nbsp;&nbsp;exit 1<br />
fi</code></p>
<p>I call it <strong>fin</strong> like that classy word at the end of old movies.</p>
<p>Then when you start a long running command run it like this:<br />
<code>bash$ go-search-my-whole-harddrive.sh ; fin</code><br />
or<br />
<code>bash$ compile-my-kernel.sh ; fin</code></p>
<p>Then, when your thing is done, whether it worked or not, you will get some sort of indication that its done and you can get back to what you were doing.</p>
<p>I have really started to love this little script the last few days.  One thing though, make sure that the other thing you start to do while waiting is an easily interruptable task or your brain will explode when the indication pops up.  No one likes brain explosions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codedependents.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codedependents.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codedependents.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codedependents.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codedependents.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codedependents.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codedependents.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codedependents.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codedependents.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codedependents.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codedependents.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codedependents.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codedependents.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codedependents.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codedependents.com&#038;blog=7973493&#038;post=227&#038;subd=codedependents&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codedependents.com/2009/08/05/simple-interrupt-driven-multitasking-with-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c75369f25cd6b34076875bdc308c2aca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjamesrussell</media:title>
		</media:content>

		<media:content url="http://imgs.xkcd.com/comics/compiling.png" medium="image">
			<media:title type="html">Compiling</media:title>
		</media:content>
	</item>
	</channel>
</rss>
