<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Squirrel&#039;s</title>
	<atom:link href="http://squirrel.pl/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://squirrel.pl/blog</link>
	<description></description>
	<lastBuildDate>Sat, 10 Dec 2011 17:09:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>Comment on Careful with that PrintWriter by Christoffer Hammarström</title>
		<link>http://squirrel.pl/blog/2011/12/10/careful-with-that-printwriter/comment-page-1/#comment-1631</link>
		<dc:creator>Christoffer Hammarström</dc:creator>
		<pubDate>Sat, 10 Dec 2011 17:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=356#comment-1631</guid>
		<description>You&#039;re using the wrong class. To bridge from Writer to OutputStream, you use an OutputStreamWriter *with*the*correct*encoding*specified*, not a PrintStream.</description>
		<content:encoded><![CDATA[<p>You&#8217;re using the wrong class. To bridge from Writer to OutputStream, you use an OutputStreamWriter *with*the*correct*encoding*specified*, not a PrintStream.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on TDD on Existing Code by Tomek</title>
		<link>http://squirrel.pl/blog/2011/12/01/tdd-on-existing-code/comment-page-1/#comment-1544</link>
		<dc:creator>Tomek</dc:creator>
		<pubDate>Fri, 02 Dec 2011 13:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=342#comment-1544</guid>
		<description>Konrad, what you suggest to do is to add tests to existing codebase. This is fine, valuable, highly recommended etc. etc., however (IMHO), this is not TDD. 

Your &quot;definition&quot; of TDD (It is introducing small, fast, focused (as much as possible…), automated tests that become “live” specification and documentation, and protect you from regressions.) is all about automated tests. I disagree - TDD is about driving your design. You do not design existing code, you only add tests to it. Which is fine, but not TDD.

Yeah, I&#039;m a zealot, I know. :)

--
Cheers,
Tomek Kaczanowski</description>
		<content:encoded><![CDATA[<p>Konrad, what you suggest to do is to add tests to existing codebase. This is fine, valuable, highly recommended etc. etc., however (IMHO), this is not TDD. </p>
<p>Your &#8220;definition&#8221; of TDD (It is introducing small, fast, focused (as much as possible…), automated tests that become “live” specification and documentation, and protect you from regressions.) is all about automated tests. I disagree &#8211; TDD is about driving your design. You do not design existing code, you only add tests to it. Which is fine, but not TDD.</p>
<p>Yeah, I&#8217;m a zealot, I know. <img src='http://squirrel.pl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8211;<br />
Cheers,<br />
Tomek Kaczanowski</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hibernate Cache Is Fundamentally Broken by Konrad Garus</title>
		<link>http://squirrel.pl/blog/2011/08/24/hibernate-cache-is-fundametanlly-broken/comment-page-1/#comment-852</link>
		<dc:creator>Konrad Garus</dc:creator>
		<pubDate>Fri, 02 Sep 2011 19:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=254#comment-852</guid>
		<description>Marcos: You&#039;re right. Indeed, I dived so deep that I think I could create a patch. I did not mostly because I see a few possible resolutions:

 1. &quot;Won&#039;t fix&quot; - Hibernate team can decide it&#039;s not a bug, or is not important enough, and you have to take full responsibility for this kind of cache &quot;poisoning&quot;.

 2. Treat entities with different schema as misses, and fetch from DB:
  2a. Use serialVersionUID
  2b. Use a new class-level attribute (@MappingVersion, &lt;mapping-version&gt;)
  2c. Use both: 2b is preferred, but if not present use 2a.

While I think I am capable of implementing it myself, I don&#039;t think such an important and disputable change in core can be done by a lone developer who&#039;s never contributed and may not see the whole big picture.</description>
		<content:encoded><![CDATA[<p>Marcos: You&#8217;re right. Indeed, I dived so deep that I think I could create a patch. I did not mostly because I see a few possible resolutions:</p>
<p> 1. &#8220;Won&#8217;t fix&#8221; &#8211; Hibernate team can decide it&#8217;s not a bug, or is not important enough, and you have to take full responsibility for this kind of cache &#8220;poisoning&#8221;.</p>
<p> 2. Treat entities with different schema as misses, and fetch from DB:<br />
  2a. Use serialVersionUID<br />
  2b. Use a new class-level attribute (@MappingVersion, &lt;mapping-version&gt;)<br />
  2c. Use both: 2b is preferred, but if not present use 2a.</p>
<p>While I think I am capable of implementing it myself, I don&#8217;t think such an important and disputable change in core can be done by a lone developer who&#8217;s never contributed and may not see the whole big picture.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hibernate Cache Is Fundamentally Broken by Marcos Eliziario Santos</title>
		<link>http://squirrel.pl/blog/2011/08/24/hibernate-cache-is-fundametanlly-broken/comment-page-1/#comment-851</link>
		<dc:creator>Marcos Eliziario Santos</dc:creator>
		<pubDate>Fri, 02 Sep 2011 18:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=254#comment-851</guid>
		<description>Good thing, but the time you&#039;ve spent diagnosing this problem and writing this, could have been spent writing a patch. That&#039;s how Open Source is supposed to work.</description>
		<content:encoded><![CDATA[<p>Good thing, but the time you&#8217;ve spent diagnosing this problem and writing this, could have been spent writing a patch. That&#8217;s how Open Source is supposed to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;Processing in Clojure&#8221; Made Functional by Niels Egberts</title>
		<link>http://squirrel.pl/blog/2011/03/18/processing-in-clojure/comment-page-1/#comment-778</link>
		<dc:creator>Niels Egberts</dc:creator>
		<pubDate>Wed, 22 Jun 2011 18:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=205#comment-778</guid>
		<description>I would like to add that if you want to let the whole application exit when the user closes the window you can add the following line to the last doto.

(.setDefaultCloseOperation (javax.swing.JFrame/EXIT_ON_CLOSE))</description>
		<content:encoded><![CDATA[<p>I would like to add that if you want to let the whole application exit when the user closes the window you can add the following line to the last doto.</p>
<p>(.setDefaultCloseOperation (javax.swing.JFrame/EXIT_ON_CLOSE))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do Leave Failing Tests by Ray</title>
		<link>http://squirrel.pl/blog/2011/06/03/do-leave-failing-tests/comment-page-1/#comment-767</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Tue, 07 Jun 2011 03:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=232#comment-767</guid>
		<description>Ray, I do the same thing. I review the commit diff, to understand what I did.</description>
		<content:encoded><![CDATA[<p>Ray, I do the same thing. I review the commit diff, to understand what I did.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do Leave Failing Tests by Alex Skorulis</title>
		<link>http://squirrel.pl/blog/2011/06/03/do-leave-failing-tests/comment-page-1/#comment-766</link>
		<dc:creator>Alex Skorulis</dc:creator>
		<pubDate>Mon, 06 Jun 2011 03:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=232#comment-766</guid>
		<description>I started doing this a while ago. Lately I&#039;ve been putting what I have to do next straight into code without commenting it. Come monday morning the compile error will take me straight there and the message should be enough to get my brain ticking along.</description>
		<content:encoded><![CDATA[<p>I started doing this a while ago. Lately I&#8217;ve been putting what I have to do next straight into code without commenting it. Come monday morning the compile error will take me straight there and the message should be enough to get my brain ticking along.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do Leave Failing Tests by Ray</title>
		<link>http://squirrel.pl/blog/2011/06/03/do-leave-failing-tests/comment-page-1/#comment-765</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Sat, 04 Jun 2011 13:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=232#comment-765</guid>
		<description>Deadly post - I&#039;ve gotten similar value out of leaving uncomitted code, so when I sit down, I just view the diff, and it&#039;s as if the stack trace from the work I was doing suddenly loads straight back into my head.</description>
		<content:encoded><![CDATA[<p>Deadly post &#8211; I&#8217;ve gotten similar value out of leaving uncomitted code, so when I sit down, I just view the diff, and it&#8217;s as if the stack trace from the work I was doing suddenly loads straight back into my head.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do Leave Failing Tests by Geek</title>
		<link>http://squirrel.pl/blog/2011/06/03/do-leave-failing-tests/comment-page-1/#comment-764</link>
		<dc:creator>Geek</dc:creator>
		<pubDate>Sat, 04 Jun 2011 11:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=232#comment-764</guid>
		<description>What I do is, I just stop writing code and start writing text explaining what I was doing when I left off.

I use the 
#error 
macro to ensure that it can&#039;t compile, and I leave a little brain dump of my state at the point where I was working.

It is better to leave it in a state that won&#039;t compile (and not checked in, of course so you don&#039;t break the build) than to leave something &quot;working&quot; that isn&#039;t really complete and thus has subtle bugs... or to write crap code just to &quot;finish&quot; it in a rush or when you&#039;re tired.</description>
		<content:encoded><![CDATA[<p>What I do is, I just stop writing code and start writing text explaining what I was doing when I left off.</p>
<p>I use the<br />
#error<br />
macro to ensure that it can&#8217;t compile, and I leave a little brain dump of my state at the point where I was working.</p>
<p>It is better to leave it in a state that won&#8217;t compile (and not checked in, of course so you don&#8217;t break the build) than to leave something &#8220;working&#8221; that isn&#8217;t really complete and thus has subtle bugs&#8230; or to write crap code just to &#8220;finish&#8221; it in a rush or when you&#8217;re tired.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Do Leave Failing Tests by John M</title>
		<link>http://squirrel.pl/blog/2011/06/03/do-leave-failing-tests/comment-page-1/#comment-763</link>
		<dc:creator>John M</dc:creator>
		<pubDate>Sat, 04 Jun 2011 10:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://squirrel.pl/blog/?p=232#comment-763</guid>
		<description>@foobaz

If I have to fix a bug in released code - I will go to code that is released (usually I have a clean copy of that on computer anyway, but if need be I&#039;d check it out) - as I would intend releasing just that fix and just that fix as that would be safest, require least testing and quickest to release.

If I am working on new features/release then I would expect that to go through a suite of regression and user acceptance tests irrespective of what my automated tests show. 

So it is irrelevant what state I leave the code I am working on just to worry about some hypothetical very low probability issue is</description>
		<content:encoded><![CDATA[<p>@foobaz</p>
<p>If I have to fix a bug in released code &#8211; I will go to code that is released (usually I have a clean copy of that on computer anyway, but if need be I&#8217;d check it out) &#8211; as I would intend releasing just that fix and just that fix as that would be safest, require least testing and quickest to release.</p>
<p>If I am working on new features/release then I would expect that to go through a suite of regression and user acceptance tests irrespective of what my automated tests show. </p>
<p>So it is irrelevant what state I leave the code I am working on just to worry about some hypothetical very low probability issue is</p>
]]></content:encoded>
	</item>
</channel>
</rss>

