<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for prototyp.ical.ly</title>
	<link>http://prototyp.ical.ly</link>
	<description>prototypical scriptings all over the place</description>
	<pubDate>Wed, 08 Sep 2010 01:44:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>Comment on Extending PHP5&#8217;s XMLReader for server-side validation and localization of XHTML files by Création site internet bretagne</title>
		<link>http://prototyp.ical.ly/index.php/2007/02/11/4/#comment-9451</link>
		<author>Création site internet bretagne</author>
		<pubDate>Sun, 25 Apr 2010 04:07:24 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/02/11/4/#comment-9451</guid>
		<description>&lt;p&gt;&lt;strong&gt;Création site internet bretagne...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Merci pour cet article intéressant. Bien à vous…....&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><strong>Création site internet bretagne&#8230;</strong></p>
<p>Merci pour cet article intéressant. Bien à vous…&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Design Patterns - 1. The Singleton by Dan</title>
		<link>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-9427</link>
		<author>Dan</author>
		<pubDate>Wed, 14 Apr 2010 11:41:09 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-9427</guid>
		<description>&lt;blockquote&gt;We learned (or already knew) that objects are the return of &lt;b&gt;a&lt;/b&gt; function call (such as new Object();).&lt;/blockquote&gt;

&lt;p&gt;You can't say it like that. That's only true for your specific example right here. Also when using 'new' you're technically not issuing a function call, but really instantiating an object.&lt;/p&gt;

&lt;p&gt;I don't want to nitpick, but that statement surely will confuse people.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<blockquote><p>We learned (or already knew) that objects are the return of <b>a</b> function call (such as new Object();).</p></blockquote>
<p>You can&#8217;t say it like that. That&#8217;s only true for your specific example right here. Also when using &#8216;new&#8217; you&#8217;re technically not issuing a function call, but really instantiating an object.</p>
<p>I don&#8217;t want to nitpick, but that statement surely will confuse people.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stair-climbing robot by Don P</title>
		<link>http://prototyp.ical.ly/index.php/2006/12/08/stair-climbing-robot/#comment-9416</link>
		<author>Don P</author>
		<pubDate>Thu, 08 Apr 2010 16:05:22 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2006/12/08/stair-climbing-robot/#comment-9416</guid>
		<description>&lt;p&gt;or just&lt;/p&gt;

&lt;p&gt;&lt;code&gt;step_up:function() { while(!this.step()); }&lt;/code&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>or just</p>
<p><code>step_up:function() { while(!this.step()); }</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stair-climbing robot by Don P</title>
		<link>http://prototyp.ical.ly/index.php/2006/12/08/stair-climbing-robot/#comment-9415</link>
		<author>Don P</author>
		<pubDate>Thu, 08 Apr 2010 16:02:28 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2006/12/08/stair-climbing-robot/#comment-9415</guid>
		<description>&lt;p&gt;OMG, a sipmle loop is enough:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
step_up:function() { while(!this.step()){}; }
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
step_up:function() { for(;!this.step();){}; }
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Don P&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>OMG, a sipmle loop is enough:</p>
<p><code><br />
step_up:function() { while(!this.step()){}; }<br />
</code></p>
<p>or</p>
<p><code><br />
step_up:function() { for(;!this.step();){}; }<br />
</code></p>
<p>Don P</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stair-climbing robot by Don P</title>
		<link>http://prototyp.ical.ly/index.php/2006/12/08/stair-climbing-robot/#comment-9414</link>
		<author>Don P</author>
		<pubDate>Thu, 08 Apr 2010 15:37:13 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2006/12/08/stair-climbing-robot/#comment-9414</guid>
		<description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;blockquote&gt;
  &lt;/blockquote&gt;

&lt;blockquote&gt;
    &lt;p&gt;Suggestions, comments, improvements anybody?&lt;/p&gt;
  &lt;/blockquote&gt;

&lt;p&gt;Recursion plus loop seems a bit too much.  One can just write:&lt;/p&gt;

&lt;p&gt;step_up:function()  {
    this.step() &#124;&#124; this.step_up();
  }&lt;/p&gt;

&lt;p&gt;If step() is successful, the expression's right part won't be evaluated and we are finished, otherwise step_up() will be called again to try another step and so on.&lt;/p&gt;

&lt;p&gt;Thus we don't need a while-loop, since the looping is already implemented by means of recursion.&lt;/p&gt;

&lt;p&gt;We could even avoid to name step_up() again (which is also a kind of variable) by writing:&lt;/p&gt;

&lt;p&gt;step_up:function()  {
    this.step() &#124;&#124; arguments.callee();
  }&lt;/p&gt;

&lt;p&gt;(arguments.callee refers to the function itself, but is deprecated since JavaScript 1.4)
Thus, the only used variable name is "step" :)&lt;/p&gt;

&lt;p&gt;Best regards, 
Don P&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<blockquote></blockquote>
<blockquote>
<p>Suggestions, comments, improvements anybody?</p>
</blockquote>
<p>Recursion plus loop seems a bit too much.  One can just write:</p>
<p>step_up:function()  {<br />
    this.step() || this.step_up();<br />
  }</p>
<p>If step() is successful, the expression&#8217;s right part won&#8217;t be evaluated and we are finished, otherwise step_up() will be called again to try another step and so on.</p>
<p>Thus we don&#8217;t need a while-loop, since the looping is already implemented by means of recursion.</p>
<p>We could even avoid to name step_up() again (which is also a kind of variable) by writing:</p>
<p>step_up:function()  {<br />
    this.step() || arguments.callee();<br />
  }</p>
<p>(arguments.callee refers to the function itself, but is deprecated since JavaScript 1.4)<br />
Thus, the only used variable name is &#8220;step&#8221; <img src='http://prototyp.ical.ly/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Best regards,<br />
Don P</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Design Patterns - 1. The Singleton by _private - StartTags.com</title>
		<link>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-9332</link>
		<author>_private - StartTags.com</author>
		<pubDate>Tue, 02 Mar 2010 22:28:47 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-9332</guid>
		<description>&lt;p&gt;[...] not be published) (required) Website. Copyright &#169; 2004-09 Dagon Design - WordPress Powered ...prototyp.ical.ly Javascript Design Patterns - 1. The SingletonThis being the first part of a series of posts that I plan to write (hopefully) I will provide bits [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] not be published) (required) Website. Copyright &copy; 2004-09 Dagon Design - WordPress Powered &#8230;prototyp.ical.ly Javascript Design Patterns - 1. The SingletonThis being the first part of a series of posts that I plan to write (hopefully) I will provide bits [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Design Patterns - 1. The Singleton by Samuel Cochran</title>
		<link>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-9238</link>
		<author>Samuel Cochran</author>
		<pubDate>Mon, 01 Feb 2010 06:46:35 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-9238</guid>
		<description>&lt;p&gt;Javascript has no classes (it is a prototypical language) so you don't create singletons. Achieve the same effect by creating an object with properties and methods:&lt;/p&gt;

&lt;p&gt;var Singleton = {
    one: 1,
    two: function() {
        return this.one + 1;
    }
};&lt;/p&gt;

&lt;p&gt;alert(Singleton.one);
alert(Singleton.two());&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Javascript has no classes (it is a prototypical language) so you don&#8217;t create singletons. Achieve the same effect by creating an object with properties and methods:</p>
<p>var Singleton = {<br />
    one: 1,<br />
    two: function() {<br />
        return this.one + 1;<br />
    }<br />
};</p>
<p>alert(Singleton.one);<br />
alert(Singleton.two());</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Routing international URLs in Symfony by sara</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-9197</link>
		<author>sara</author>
		<pubDate>Thu, 21 Jan 2010 17:13:29 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-9197</guid>
		<description>&lt;p&gt;I instaled this plugin, but I have this error&lt;/p&gt;

&lt;p&gt;"Fatal error: Declaration of csI18nRouting::generate() must be compatible with that of sfRouting::generate() "&lt;/p&gt;

&lt;p&gt;does anyone can help me&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I instaled this plugin, but I have this error</p>
<p>&#8220;Fatal error: Declaration of csI18nRouting::generate() must be compatible with that of sfRouting::generate() &#8220;</p>
<p>does anyone can help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Design Patterns - 1. The Singleton by David</title>
		<link>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-8309</link>
		<author>David</author>
		<pubDate>Sun, 09 Aug 2009 14:11:47 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/03/01/javascript-design-patterns-1-the-singleton/#comment-8309</guid>
		<description>&lt;p&gt;Singleton = function() {
    if (! Singleton.prototype.instance) {
        Singleton.prototype.instance = this;
    } else {
        return Singleton.prototype.instance;
    }
    // Private &#38; Privileged
}&lt;/p&gt;

&lt;p&gt;Singleton.prototype = {
    // Public
}&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Singleton = function() {<br />
    if (! Singleton.prototype.instance) {<br />
        Singleton.prototype.instance = this;<br />
    } else {<br />
        return Singleton.prototype.instance;<br />
    }<br />
    // Private &amp; Privileged<br />
}</p>
<p>Singleton.prototype = {<br />
    // Public<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Routing international URLs in Symfony by Piwaï</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2487</link>
		<author>Piwaï</author>
		<pubDate>Thu, 24 Jul 2008 10:11:50 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2487</guid>
		<description>&lt;p&gt;Your plugin is great, and I decided to extend it to correct some bugs, and add a few new features to use it for my open source web application.&lt;/p&gt;

&lt;p&gt;Here is my project : 
http://sourceforge.net/projects/plagiasi&lt;/p&gt;

&lt;p&gt;Here is the new plugin :
https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/plugins/csI18nRoutingPlugin-0.1.0-extended/&lt;/p&gt;

&lt;p&gt;Here is an exemple of usage to enable switching language of pages and keeping the same page :&lt;/p&gt;

&lt;p&gt;https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/apps/plagiasi/templates/layout.php
=&#62; starts line 24&lt;/p&gt;

&lt;p&gt;What do you think about it ? I think maybe you should add the plugin to the symfony website, and many you could take advantage of my changes.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Your plugin is great, and I decided to extend it to correct some bugs, and add a few new features to use it for my open source web application.</p>
<p>Here is my project :<br />
<a href="http://sourceforge.net/projects/plagiasi" rel="nofollow">http://sourceforge.net/projects/plagiasi</a></p>
<p>Here is the new plugin :<br />
<a href="https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/plugins/csI18nRoutingPlugin-0.1.0-extended/" rel="nofollow">https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/plugins/csI18nRoutingPlugin-0.1.0-extended/</a></p>
<p>Here is an exemple of usage to enable switching language of pages and keeping the same page :</p>
<p><a href="https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/apps/plagiasi/templates/layout.php" rel="nofollow">https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/apps/plagiasi/templates/layout.php</a><br />
=&gt; starts line 24</p>
<p>What do you think about it ? I think maybe you should add the plugin to the symfony website, and many you could take advantage of my changes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
