<?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 uxebu » blog</title>
	<atom:link href="http://uxebu.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://uxebu.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 25 Apr 2012 09:54:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Jumping into the deep end by Nikolai Onken</title>
		<link>http://uxebu.com/blog/2012/04/23/jumping-into-the-deep-end/#comment-5677</link>
		<dc:creator>Nikolai Onken</dc:creator>
		<pubDate>Wed, 25 Apr 2012 09:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=2363#comment-5677</guid>
		<description>Thanks Thomas, will keep you posted :)</description>
		<content:encoded><![CDATA[<p>Thanks Thomas, will keep you posted :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Jumping into the deep end by Thomas Koch</title>
		<link>http://uxebu.com/blog/2012/04/23/jumping-into-the-deep-end/#comment-5675</link>
		<dc:creator>Thomas Koch</dc:creator>
		<pubDate>Wed, 25 Apr 2012 06:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=2363#comment-5675</guid>
		<description>Wow, that&#039;s quite a strategy change! I know you guys can do great stuff and wish you all the best with bikeshed and whatever may come.

Cheers
Thomas</description>
		<content:encoded><![CDATA[<p>Wow, that&#8217;s quite a strategy change! I know you guys can do great stuff and wish you all the best with bikeshed and whatever may come.</p>
<p>Cheers<br />
Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Improve your product: Make better tutorials by Kevin Ebaugh</title>
		<link>http://uxebu.com/blog/2012/01/11/tutorials/#comment-4667</link>
		<dc:creator>Kevin Ebaugh</dc:creator>
		<pubDate>Thu, 02 Feb 2012 20:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=2238#comment-4667</guid>
		<description>The best examples are where there is a fine line between a tutorial and a guided use of the actual product. By the time you&#039;re done, you&#039;ve signed up and are familiar the product.</description>
		<content:encoded><![CDATA[<p>The best examples are where there is a fine line between a tutorial and a guided use of the actual product. By the time you&#8217;re done, you&#8217;ve signed up and are familiar the product.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Snippets: isArray, arguments to Array, [x..y], padding, array.unique() by Wolfram Kriesing</title>
		<link>http://uxebu.com/blog/2012/01/19/javascript-snippets-isarray-arguments-to-array-x-y-padding-array-unique/#comment-4581</link>
		<dc:creator>Wolfram Kriesing</dc:creator>
		<pubDate>Sun, 22 Jan 2012 16:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=1942#comment-4581</guid>
		<description>Interesting speed compare of the different range() functions: http://jsperf.com/range-function in short David&#039;s version is the fastest.</description>
		<content:encoded><![CDATA[<p>Interesting speed compare of the different range() functions: <a href="http://jsperf.com/range-function" rel="nofollow">http://jsperf.com/range-function</a> in short David&#8217;s version is the fastest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Snippets: isArray, arguments to Array, [x..y], padding, array.unique() by Brandon Benvie</title>
		<link>http://uxebu.com/blog/2012/01/19/javascript-snippets-isarray-arguments-to-array-x-y-padding-array-unique/#comment-4563</link>
		<dc:creator>Brandon Benvie</dc:creator>
		<pubDate>Fri, 20 Jan 2012 17:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=1942#comment-4563</guid>
		<description>&lt;code&gt;
function range(start, end){
  return Array(end - start + 1).join(&#039; &#039;).split(&#039; &#039;).map(function(s,i){ return i + start });
}


// numbers and strings, O(n)
function primitiveUnique(arr){
  return Object.keys(arr.reduce(function(r, s){
    return r[s] = 1, r;
  }, {}));
}

// all value types
function unique(arr){
  return arr.filter(function(s, i, a){
    return i === a.lastIndexOf(s);
  });
}

function isType(compare){
  if (typeof compare === &#039;string&#039; &amp;&amp; /^\w+$/.test(compare)) {
    compare = &#039;[object &#039; + compare + &#039;]&#039;;
  } else {
    compare = Object.prototype.toString.call(compare);
  }
  return isType[compare] &#124;&#124; (isType[compare] = function(o){
    return Object.prototype.toString.call(o) === compare;
  });
}

var isArray = isType([]); // same as isType(&#039;Array&#039;)
var isArguments = isType(&#039;Arguments&#039;);

var callbind = Function.prototype.call.bind.bind(Function.prototype.call);
var applybind = Function.prototype.call.bind.bind(Function.prototype.apply);
var slice = callbind(Array.prototype.slice);
var pushall = applybind(Array.prototype.apply);
var toClass = callbind(Object.prototype.toString);

function someFn(){ var args = slice(arguments) }

var arr = [];
function anotherFn(){ pushall(arr, arguments) }

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function range(start, end){<br />
&nbsp; return Array(end - start + 1).join(' ').split(' ').map(function(s,i){ return i + start });<br />
}<br />
<br />
<br />
// numbers and strings, O(n)<br />
function primitiveUnique(arr){<br />
&nbsp; return Object.keys(arr.reduce(function(r, s){<br />
&nbsp; &nbsp; return r[s] = 1, r;<br />
&nbsp; }, {}));<br />
}<br />
<br />
// all value types<br />
function unique(arr){<br />
&nbsp; return arr.filter(function(s, i, a){<br />
&nbsp; &nbsp; return i === a.lastIndexOf(s);<br />
&nbsp; });<br />
}<br />
<br />
function isType(compare){<br />
&nbsp; if (typeof compare === 'string' &amp;amp;&amp;amp; /^\w+$/.test(compare)) {<br />
&nbsp; &nbsp; compare = '[object ' + compare + ']';<br />
&nbsp; } else {<br />
&nbsp; &nbsp; compare = Object.prototype.toString.call(compare);<br />
&nbsp; }<br />
&nbsp; return isType[compare] || (isType[compare] = function(o){<br />
&nbsp; &nbsp; return Object.prototype.toString.call(o) === compare;<br />
&nbsp; });<br />
}<br />
<br />
var isArray = isType([]); // same as isType('Array')<br />
var isArguments = isType('Arguments');<br />
<br />
var callbind = Function.prototype.call.bind.bind(Function.prototype.call);<br />
var applybind = Function.prototype.call.bind.bind(Function.prototype.apply);<br />
var slice = callbind(Array.prototype.slice);<br />
var pushall = applybind(Array.prototype.apply);<br />
var toClass = callbind(Object.prototype.toString);<br />
<br />
function someFn(){ var args = slice(arguments) }<br />
<br />
var arr = [];<br />
function anotherFn(){ pushall(arr, arguments) }</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Snippets: isArray, arguments to Array, [x..y], padding, array.unique() by Alexander Mackay-Austin</title>
		<link>http://uxebu.com/blog/2012/01/19/javascript-snippets-isarray-arguments-to-array-x-y-padding-array-unique/#comment-4549</link>
		<dc:creator>Alexander Mackay-Austin</dc:creator>
		<pubDate>Thu, 19 Jan 2012 17:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=1942#comment-4549</guid>
		<description>I generally use (which I stole from Ben Nadel): 
argsArray = Array.apply(null, arguments);
Is this wrong?</description>
		<content:encoded><![CDATA[<p>I generally use (which I stole from Ben Nadel):<br />
argsArray = Array.apply(null, arguments);<br />
Is this wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Snippets: isArray, arguments to Array, [x..y], padding, array.unique() by Wolfram Kriesing</title>
		<link>http://uxebu.com/blog/2012/01/19/javascript-snippets-isarray-arguments-to-array-x-y-padding-array-unique/#comment-4543</link>
		<dc:creator>Wolfram Kriesing</dc:creator>
		<pubDate>Thu, 19 Jan 2012 09:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=1942#comment-4543</guid>
		<description>@sebastian, yeah nice!
@david love it</description>
		<content:encoded><![CDATA[<p>@sebastian, yeah nice!<br />
@david love it</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Snippets: isArray, arguments to Array, [x..y], padding, array.unique() by david</title>
		<link>http://uxebu.com/blog/2012/01/19/javascript-snippets-isarray-arguments-to-array-x-y-padding-array-unique/#comment-4542</link>
		<dc:creator>david</dc:creator>
		<pubDate>Thu, 19 Jan 2012 09:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=1942#comment-4542</guid>
		<description>Shorter Range:

&lt;code&gt;
function range(start, stop) {
    for (var r = []; start &lt; stop; r.push(start++));
    return r;
}
&lt;/code&gt;

Idiomatic? use of map and forEach:

&lt;code&gt;
chars
    .map(String.fromCharCode, String)
    .forEach(console.log, console);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Shorter Range:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function range(start, stop) {<br />
&nbsp; &nbsp; for (var r = []; start &lt; stop; r.push(start++));<br />
&nbsp; &nbsp; return r;<br />
}</div></td></tr></tbody></table></div>
<p>Idiomatic? use of map and forEach:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">chars<br />
&nbsp; &nbsp; .map(String.fromCharCode, String)<br />
&nbsp; &nbsp; .forEach(console.log, console);</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Snippets: isArray, arguments to Array, [x..y], padding, array.unique() by Sebastian Slomski</title>
		<link>http://uxebu.com/blog/2012/01/19/javascript-snippets-isarray-arguments-to-array-x-y-padding-array-unique/#comment-4541</link>
		<dc:creator>Sebastian Slomski</dc:creator>
		<pubDate>Thu, 19 Jan 2012 09:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=1942#comment-4541</guid>
		<description>The argument to array conversion is pretty neat, didn&#039;t know about it till now (though, I don&#039;t use arguments often).

Jeremy Askenas made &quot;stdlib&quot; for JavaScript, called underscore.js (http://documentcloud.github.com/underscore) which combines many snippets and helper methods. You might wanna take a look at it.</description>
		<content:encoded><![CDATA[<p>The argument to array conversion is pretty neat, didn&#8217;t know about it till now (though, I don&#8217;t use arguments often).</p>
<p>Jeremy Askenas made &#8220;stdlib&#8221; for JavaScript, called underscore.js (<a href="http://documentcloud.github.com/underscore" rel="nofollow">http://documentcloud.github.com/underscore</a>) which combines many snippets and helper methods. You might wanna take a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Snippets: isArray, arguments to Array, [x..y], padding, array.unique() by Wolfram Kriesing</title>
		<link>http://uxebu.com/blog/2012/01/19/javascript-snippets-isarray-arguments-to-array-x-y-padding-array-unique/#comment-4540</link>
		<dc:creator>Wolfram Kriesing</dc:creator>
		<pubDate>Thu, 19 Jan 2012 09:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://uxebu.com/blog/?p=1942#comment-4540</guid>
		<description>Sweet</description>
		<content:encoded><![CDATA[<p>Sweet</p>
]]></content:encoded>
	</item>
</channel>
</rss>

