<?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 justaddwater.dk	</title>
	<atom:link href="http://justaddwater.dk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://justaddwater.dk</link>
	<description>Instant Usability &#38; Web Standards</description>
	<lastBuildDate>
	Fri, 21 Aug 2020 15:25:24 +0000	</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.1.22</generator>
			<item>
				<title>
				Comment on About the authors by Jamie Costello				</title>
				<link>http://justaddwater.dk/about-the-authors/comment-page-1/#comment-672988</link>
		<dc:creator><![CDATA[Jamie Costello]]></dc:creator>
		<pubDate>Fri, 21 Aug 2020 15:25:24 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/about-the-authors/#comment-672988</guid>
					<description><![CDATA[Great blog guys, I was reading some of your GIT stuff, very handy.

Take care
Jamie]]></description>
		<content:encoded><![CDATA[<p>Great blog guys, I was reading some of your GIT stuff, very handy.</p>
<p>Take care<br />
Jamie</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Git extract folder from project with history and tags by Geert Verschaeve				</title>
				<link>http://justaddwater.dk/2016/11/02/git-extract-folder-from-project-with-history-and-tags/comment-page-1/#comment-661565</link>
		<dc:creator><![CDATA[Geert Verschaeve]]></dc:creator>
		<pubDate>Sat, 19 Nov 2016 07:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1809#comment-661565</guid>
					<description><![CDATA[I&#039;ve been having problems with Git every I started applying it, especially because a mistake is quickly made. That said, I love how easy it is to undo mistakes. So thanks for the &quot;— –all comment&quot;, I&#039;ve just tested it and to be honest, didn&#039;t even know I could split AND preserve the history.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve been having problems with Git every I started applying it, especially because a mistake is quickly made. That said, I love how easy it is to undo mistakes. So thanks for the &#8220;— –all comment&#8221;, I&#8217;ve just tested it and to be honest, didn&#8217;t even know I could split AND preserve the history.</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Ruby make list minimum length by Jesper				</title>
				<link>http://justaddwater.dk/2015/12/13/ruby-make-list-minimum-length/comment-page-1/#comment-658554</link>
		<dc:creator><![CDATA[Jesper]]></dc:creator>
		<pubDate>Fri, 25 Dec 2015 15:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1781#comment-658554</guid>
					<description><![CDATA[I gonna pass this link to my colleague, who strugles with sort of same problem]]></description>
		<content:encoded><![CDATA[<p>I gonna pass this link to my colleague, who strugles with sort of same problem</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Ruby make list minimum length by Jakob S				</title>
				<link>http://justaddwater.dk/2015/12/13/ruby-make-list-minimum-length/comment-page-1/#comment-658527</link>
		<dc:creator><![CDATA[Jakob S]]></dc:creator>
		<pubDate>Sun, 13 Dec 2015 20:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1781#comment-658527</guid>
					<description><![CDATA[I&#039;d argue the first, naive implementation is the optimal one. Sure, option C might be clever, but I couldn&#039;t tell you what it does without running the code in my head. Clever is rarely a quality to aim for: https://medium.com/@mikesherov/writing-clear-code-not-clever-code-d6b90353a3c5#.rkedlie16 ;)

If you don&#039;t like the return statements you could go for a case statement instead:

    def sum_up_case(existing)
      case existing
      when 0
        2
      when 1
        1
      else
        0
      end
    end

or potentially a lookup table if the above is too verbose:

    def sum_up_lookup(existing)
      {
        0 =&#062; 2,
        1 =&#062; 1
      }.fetch(existing, 0)
    end]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d argue the first, naive implementation is the optimal one. Sure, option C might be clever, but I couldn&#8217;t tell you what it does without running the code in my head. Clever is rarely a quality to aim for: <a href="https://medium.com/@mikesherov/writing-clear-code-not-clever-code-d6b90353a3c5#.rkedlie16" rel="external">https://medium.com/@mikesherov/writing-clear-code-not-clever-code-d6b90353a3c5#.rkedlie16</a> ;)</p>
<p>If you don&#8217;t like the return statements you could go for a case statement instead:</p>
<p>    def sum_up_case(existing)<br />
      case existing<br />
      when 0<br />
        2<br />
      when 1<br />
        1<br />
      else<br />
        0<br />
      end<br />
    end</p>
<p>or potentially a lookup table if the above is too verbose:</p>
<p>    def sum_up_lookup(existing)<br />
      {<br />
        0 =&gt; 2,<br />
        1 =&gt; 1<br />
      }.fetch(existing, 0)<br />
    end</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Easter egg CSS circles by Pim Nederland				</title>
				<link>http://justaddwater.dk/2015/03/29/easter-egg-css-circles/comment-page-1/#comment-657665</link>
		<dc:creator><![CDATA[Pim Nederland]]></dc:creator>
		<pubDate>Fri, 24 Apr 2015 10:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1747#comment-657665</guid>
					<description><![CDATA[Haha brilliant easter egg! Did not know it was that simple. Can we expect a tree just before christmas? :)))]]></description>
		<content:encoded><![CDATA[<p>Haha brilliant easter egg! Did not know it was that simple. Can we expect a tree just before christmas? :)))</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Easter egg CSS circles by Eman Toch				</title>
				<link>http://justaddwater.dk/2015/03/29/easter-egg-css-circles/comment-page-1/#comment-657657</link>
		<dc:creator><![CDATA[Eman Toch]]></dc:creator>
		<pubDate>Fri, 17 Apr 2015 12:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1747#comment-657657</guid>
					<description><![CDATA[interesting write-up]]></description>
		<content:encoded><![CDATA[<p>interesting write-up</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Easter egg CSS circles by Indoglobal				</title>
				<link>http://justaddwater.dk/2015/03/29/easter-egg-css-circles/comment-page-1/#comment-657628</link>
		<dc:creator><![CDATA[Indoglobal]]></dc:creator>
		<pubDate>Wed, 01 Apr 2015 08:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1747#comment-657628</guid>
					<description><![CDATA[Approaching easter so we will do best]]></description>
		<content:encoded><![CDATA[<p>Approaching easter so we will do best</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Easter egg CSS circles by Malou Peters				</title>
				<link>http://justaddwater.dk/2015/03/29/easter-egg-css-circles/comment-page-1/#comment-657623</link>
		<dc:creator><![CDATA[Malou Peters]]></dc:creator>
		<pubDate>Tue, 31 Mar 2015 08:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1747#comment-657623</guid>
					<description><![CDATA[Nice! I&#039;ll have a look and maybe do something with it next weekend.]]></description>
		<content:encoded><![CDATA[<p>Nice! I&#8217;ll have a look and maybe do something with it next weekend.</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on WordPress Plugins by WordPress Widgets: The Next Generation of WordPress Plugins &#171; Lorelle on WordPress				</title>
				<link>http://justaddwater.dk/wordpress-plugins/comment-page-3/#comment-657528</link>
		<dc:creator><![CDATA[WordPress Widgets: The Next Generation of WordPress Plugins &#171; Lorelle on WordPress]]></dc:creator>
		<pubDate>Sun, 11 Jan 2015 02:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/wordpress-plugins/#comment-657528</guid>
					<description><![CDATA[[&#8230;] be featured only once on a WordPress blog&#8217;s sidebar. However, you can overrule that with the JAW Duplicate Widgets WordPress Plugin. It overrides the default action of most WordPress Widgets to prevent duplication, allowing you to [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] be featured only once on a WordPress blog&#8217;s sidebar. However, you can overrule that with the JAW Duplicate Widgets WordPress Plugin. It overrides the default action of most WordPress Widgets to prevent duplication, allowing you to [&#8230;]</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				Comment on Generate CSS sprite for all world&#8217;s flags by James				</title>
				<link>http://justaddwater.dk/2013/06/19/generate-css-sprite-for-all-worlds-flags/comment-page-1/#comment-653431</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 14:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://justaddwater.dk/?p=1594#comment-653431</guid>
					<description><![CDATA[Good article ... The CSS sprite Generator is good, I should give it try for my project too, I&#039;m using a flags for a Game website... Thanks man]]></description>
		<content:encoded><![CDATA[<p>Good article &#8230; The CSS sprite Generator is good, I should give it try for my project too, I&#8217;m using a flags for a Game website&#8230; Thanks man</p>
]]></content:encoded>
						</item>
			</channel>
</rss>
