<?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 on: All-in-one cookie&#160;function</title>
	<atom:link href="http://hexmen.com/blog/2009/03/all-in-one-cookie-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://hexmen.com/blog/2009/03/all-in-one-cookie-function/</link>
	<description>On programming, and other things...</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:45:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Best-of-the-Web 4 &#124; davblog: webdev and stuff</title>
		<link>http://hexmen.com/blog/2009/03/all-in-one-cookie-function/comment-page-1/#comment-31472</link>
		<dc:creator>Best-of-the-Web 4 &#124; davblog: webdev and stuff</dc:creator>
		<pubDate>Mon, 03 Jan 2011 17:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://hexmen.com/blog/?p=75#comment-31472</guid>
		<description>[...] All-In-One cookiefunction &#8211; Eine Javascript-Cookie-Funktion die an Einfachheit kaum noch zu unterbieten ist. [...]</description>
		<content:encoded><![CDATA[<p>[...] All-In-One cookiefunction &#8211; Eine Javascript-Cookie-Funktion die an Einfachheit kaum noch zu unterbieten ist. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://hexmen.com/blog/2009/03/all-in-one-cookie-function/comment-page-1/#comment-31454</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Thu, 29 Apr 2010 05:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://hexmen.com/blog/?p=75#comment-31454</guid>
		<description>Thanks Dan (and thanks for pointing out exactly where the problem was.)  I&#039;ve fixed that now.

Your wee comment reminds me I should get off my butt and finish another blog post..</description>
		<content:encoded><![CDATA[<p>Thanks Dan (and thanks for pointing out exactly where the problem was.)  I&#8217;ve fixed that now.</p>
<p>Your wee comment reminds me I should get off my butt and finish another blog post..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Beam</title>
		<link>http://hexmen.com/blog/2009/03/all-in-one-cookie-function/comment-page-1/#comment-31453</link>
		<dc:creator>Dan Beam</dc:creator>
		<pubDate>Tue, 27 Apr 2010 18:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://hexmen.com/blog/?p=75#comment-31453</guid>
		<description>Sorry, forgot to mention, the type&#039;s in the file you&#039;ve linked to: http://hexmen.com/js/cookie.js.

Assuming you understood, but just making sure.</description>
		<content:encoded><![CDATA[<p>Sorry, forgot to mention, the type&#8217;s in the file you&#8217;ve linked to: <a href="http://hexmen.com/js/cookie.js" rel="nofollow">http://hexmen.com/js/cookie.js</a>.</p>
<p>Assuming you understood, but just making sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Beam</title>
		<link>http://hexmen.com/blog/2009/03/all-in-one-cookie-function/comment-page-1/#comment-31452</link>
		<dc:creator>Dan Beam</dc:creator>
		<pubDate>Tue, 27 Apr 2010 18:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://hexmen.com/blog/?p=75#comment-31452</guid>
		<description>Hey Ash, there&#039;s a little error in your doc - first line, says &quot;cooke&quot;.  Just letting you know.</description>
		<content:encoded><![CDATA[<p>Hey Ash, there&#8217;s a little error in your doc &#8211; first line, says &#8220;cooke&#8221;.  Just letting you know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Down</title>
		<link>http://hexmen.com/blog/2009/03/all-in-one-cookie-function/comment-page-1/#comment-31448</link>
		<dc:creator>Tim Down</dc:creator>
		<pubDate>Sun, 24 Jan 2010 13:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://hexmen.com/blog/?p=75#comment-31448</guid>
		<description>OK, I see now.

I am constantly frustrated when designing APIs in JavaScript that lend themselves naturally to the kind of overloading you can do in languages like Java or C#. The options are:

1. Write several functions with slightly different names to deal with all the possibilities. Pros: clean to implement. Cons: bloats the API, hard to use.

2. One function with overloading. Pros: quite simple to use. Cons: still requires remembering/looking up combinations of arguments that may be passed, and requires code in the implementation to check number and types of the arguments.

3. One function that accepts a single object whose properties are just the arguments the caller requires. Pros: easy to use, flexible. Cons: requires extra code in the implementation to check properties of the object passed in, introduces possibility of error by mistyping property names in the calling code.</description>
		<content:encoded><![CDATA[<p>OK, I see now.</p>
<p>I am constantly frustrated when designing APIs in JavaScript that lend themselves naturally to the kind of overloading you can do in languages like Java or C#. The options are:</p>
<p>1. Write several functions with slightly different names to deal with all the possibilities. Pros: clean to implement. Cons: bloats the API, hard to use.</p>
<p>2. One function with overloading. Pros: quite simple to use. Cons: still requires remembering/looking up combinations of arguments that may be passed, and requires code in the implementation to check number and types of the arguments.</p>
<p>3. One function that accepts a single object whose properties are just the arguments the caller requires. Pros: easy to use, flexible. Cons: requires extra code in the implementation to check properties of the object passed in, introduces possibility of error by mistyping property names in the calling code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

