<?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 Webgyani</title>
	<atom:link href="http://webgyani.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://webgyani.com</link>
	<description>A cognitive perspective on web</description>
	<lastBuildDate>Thu, 02 Sep 2010 01:37:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on How to serve different stylesheets only to Safari and Chrome by How to serve different stylesheets only to Safari and Chrome &#124; External Brain</title>
		<link>http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/comment-page-1/#comment-57</link>
		<dc:creator>How to serve different stylesheets only to Safari and Chrome &#124; External Brain</dc:creator>
		<pubDate>Thu, 02 Sep 2010 01:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/#comment-57</guid>
		<description>[...] it’s somewhat the most practical or possibly the cleanest solution that you can have &#8212; via Web Gyani   This entry was posted in Technology. Bookmark the permalink.    &#8592; Police Say Anti-Piracy Law [...]</description>
		<content:encoded><![CDATA[<p>[...] it’s somewhat the most practical or possibly the cleanest solution that you can have &#8212; via Web Gyani   This entry was posted in Technology. Bookmark the permalink.    &larr; Police Say Anti-Piracy Law [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSS border radius madness by Marcos Wright Kuhns</title>
		<link>http://webgyani.com/2010/03/css-border-radius-madness/comment-page-1/#comment-47</link>
		<dc:creator>Marcos Wright Kuhns</dc:creator>
		<pubDate>Wed, 02 Jun 2010 19:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/03/css-border-radius-madness/#comment-47</guid>
		<description>Wow, just what I was looking for. I wanted to confirm that I wasn&#039;t crazy when I observed Webkit&#039;s odd behavior when applying variable width and radius to different borders. I agree with you that the FF / IE9 implementation seems both most elegant &amp; definitely the desired result in my case.</description>
		<content:encoded><![CDATA[<p>Wow, just what I was looking for. I wanted to confirm that I wasn&#8217;t crazy when I observed Webkit&#8217;s odd behavior when applying variable width and radius to different borders. I agree with you that the FF / IE9 implementation seems both most elegant &amp; definitely the desired result in my case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;new&#8221; operator in JavaScript by Arnab</title>
		<link>http://webgyani.com/2010/04/new-operator-in-javascript/comment-page-1/#comment-38</link>
		<dc:creator>Arnab</dc:creator>
		<pubDate>Mon, 26 Apr 2010 13:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/?p=140#comment-38</guid>
		<description>@Hirak thanks for the comment.

As you have mentioned that calling the constructor without the &quot;new&quot; keyword is a common mistake and I believe in this case JSLint will help catch these kind of mistakes early.

Another thing that you might try, though I believe this is not a pretty technique, is:

if ( !(this instanceof Foo) ) { return new Foo(); }

This will ensure that if &lt;em&gt;Foo()&lt;/em&gt; is called without the &lt;em&gt;new&lt;/em&gt; operator, still it will return an instance of &lt;em&gt;Foo&lt;/em&gt;.

Cheers!</description>
		<content:encoded><![CDATA[<p>@Hirak thanks for the comment.</p>
<p>As you have mentioned that calling the constructor without the &#8220;new&#8221; keyword is a common mistake and I believe in this case JSLint will help catch these kind of mistakes early.</p>
<p>Another thing that you might try, though I believe this is not a pretty technique, is:</p>
<p>if ( !(this instanceof Foo) ) { return new Foo(); }</p>
<p>This will ensure that if <em>Foo()</em> is called without the <em>new</em> operator, still it will return an instance of <em>Foo</em>.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;new&#8221; operator in JavaScript by Hirak</title>
		<link>http://webgyani.com/2010/04/new-operator-in-javascript/comment-page-1/#comment-37</link>
		<dc:creator>Hirak</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/?p=140#comment-37</guid>
		<description>Great post !!!

I think two more points will complete the post:

1. What happens when a constructor function is called without the &quot;new&quot; operator (very simple and basic, but a common mistake):
e.g

&lt;code&gt;
function Foo() {
   this.name = &#039;Foo&#039; ;
}

var f = Foo(); // =&gt; we are not using &quot;new&quot;
alert(window.name) // =&gt; &#039;Foo&#039;
 &lt;/code&gt;

2. The &quot;Constructor Pattern&quot;  or neo-classical constructors by  Douglas Crockford
 &lt;code&gt;
   function Foo(param) {
        var instance = {}; // empty object
         // private members
           var privateField_name = param; // =&gt; private field
            //public member
            instance.name = privateField_name; 
            return instance;
        }

//usage
var a = Foo(&quot;Wallaby&quot;);
alert(a.name); // =&gt; &#039;Wallaby&#039;
&lt;/code&gt;

In this pattern we neither use &quot;new&quot; operator nor &quot;this&quot;.

Thanks
HIrak--</description>
		<content:encoded><![CDATA[<p>Great post !!!</p>
<p>I think two more points will complete the post:</p>
<p>1. What happens when a constructor function is called without the &#8220;new&#8221; operator (very simple and basic, but a common mistake):<br />
e.g</p>
<p><code><br />
function Foo() {<br />
   this.name = 'Foo' ;<br />
}</p>
<p>var f = Foo(); // =&gt; we are not using "new"<br />
alert(window.name) // =&gt; 'Foo'<br />
 </code></p>
<p>2. The &#8220;Constructor Pattern&#8221;  or neo-classical constructors by  Douglas Crockford<br />
 <code><br />
   function Foo(param) {<br />
        var instance = {}; // empty object<br />
         // private members<br />
           var privateField_name = param; // =&gt; private field<br />
            //public member<br />
            instance.name = privateField_name;<br />
            return instance;<br />
        }</p>
<p>//usage<br />
var a = Foo("Wallaby");<br />
alert(a.name); // =&gt; 'Wallaby'<br />
</code></p>
<p>In this pattern we neither use &#8220;new&#8221; operator nor &#8220;this&#8221;.</p>
<p>Thanks<br />
HIrak&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to serve different stylesheets only to Safari and Chrome by Arnab</title>
		<link>http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/comment-page-1/#comment-32</link>
		<dc:creator>Arnab</dc:creator>
		<pubDate>Thu, 08 Apr 2010 01:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/#comment-32</guid>
		<description>Oh thanks for the catch Steve, I have fixed the typo, cheers!</description>
		<content:encoded><![CDATA[<p>Oh thanks for the catch Steve, I have fixed the typo, cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to serve different stylesheets only to Safari and Chrome by Hirak Chatterjee</title>
		<link>http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/comment-page-1/#comment-31</link>
		<dc:creator>Hirak Chatterjee</dc:creator>
		<pubDate>Sun, 04 Apr 2010 05:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/#comment-31</guid>
		<description>Great post. But I think there can be another possible solution. We can do a server side &quot;user-agent&quot; detection and based on that can add a &#039;class&#039; selector to the body tag and then render styles for different browsers. The body tag should be something like this...



Now we can define our styles for the target browsers in the following manner 

#test.safari div {margin: 0; padding: 0} etc. etc.

The advantage is, this lets you use  same stylesheet for all browser and also apply small hacks and handle the small 1% edge cases. Just a thought, let me know what you think about this.</description>
		<content:encoded><![CDATA[<p>Great post. But I think there can be another possible solution. We can do a server side &#8220;user-agent&#8221; detection and based on that can add a &#8216;class&#8217; selector to the body tag and then render styles for different browsers. The body tag should be something like this&#8230;</p>
<p>Now we can define our styles for the target browsers in the following manner </p>
<p>#test.safari div {margin: 0; padding: 0} etc. etc.</p>
<p>The advantage is, this lets you use  same stylesheet for all browser and also apply small hacks and handle the small 1% edge cases. Just a thought, let me know what you think about this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to serve different stylesheets only to Safari and Chrome by Steve Wanless</title>
		<link>http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/comment-page-1/#comment-30</link>
		<dc:creator>Steve Wanless</dc:creator>
		<pubDate>Sat, 03 Apr 2010 21:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/03/how-to-serve-different-stylesheets-only-to-safari-and-chrome/#comment-30</guid>
		<description>That&#039;s pretty cool, putting that into a project right now.
I copied and pasted your link tag, didn&#039;t work until I removed the &#039;s&#039;
Should be;
rel=&quot;stylesheet&quot;
not 
rel=&quot;stylesheets&quot;

Thanks for passing this on.</description>
		<content:encoded><![CDATA[<p>That&#8217;s pretty cool, putting that into a project right now.<br />
I copied and pasted your link tag, didn&#8217;t work until I removed the &#8216;s&#8217;<br />
Should be;<br />
rel=&#8221;stylesheet&#8221;<br />
not<br />
rel=&#8221;stylesheets&#8221;</p>
<p>Thanks for passing this on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 things a frontend engineer should know by Amit</title>
		<link>http://webgyani.com/2010/01/10-things-a-frontend-engineer-should-know/comment-page-1/#comment-27</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Sat, 23 Jan 2010 11:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/01/10-things-a-frontend-engineer-should-know/#comment-27</guid>
		<description>Good Article, nicely crafted.... I came across few articles, want to share with you,

http://www.nczonline.net/blog/2010/01/05/interviewing-the-front-end-engineer/
http://www.nczonline.net/blog/2007/03/27/surviving-an-interview-with-me/

may be you might have read them in the past.

Thanks,
Amit</description>
		<content:encoded><![CDATA[<p>Good Article, nicely crafted&#8230;. I came across few articles, want to share with you,</p>
<p><a href="http://www.nczonline.net/blog/2010/01/05/interviewing-the-front-end-engineer/" rel="nofollow">http://www.nczonline.net/blog/2010/01/05/interviewing-the-front-end-engineer/</a><br />
<a href="http://www.nczonline.net/blog/2007/03/27/surviving-an-interview-with-me/" rel="nofollow">http://www.nczonline.net/blog/2007/03/27/surviving-an-interview-with-me/</a></p>
<p>may be you might have read them in the past.</p>
<p>Thanks,<br />
Amit</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 things a frontend engineer should know by Amitesh</title>
		<link>http://webgyani.com/2010/01/10-things-a-frontend-engineer-should-know/comment-page-1/#comment-26</link>
		<dc:creator>Amitesh</dc:creator>
		<pubDate>Thu, 14 Jan 2010 15:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/01/10-things-a-frontend-engineer-should-know/#comment-26</guid>
		<description>nice article...</description>
		<content:encoded><![CDATA[<p>nice article&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 things a frontend engineer should know by Sandeeproop rai</title>
		<link>http://webgyani.com/2010/01/10-things-a-frontend-engineer-should-know/comment-page-1/#comment-25</link>
		<dc:creator>Sandeeproop rai</dc:creator>
		<pubDate>Thu, 14 Jan 2010 04:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://webgyani.com/2010/01/10-things-a-frontend-engineer-should-know/#comment-25</guid>
		<description>Another good article ....
Thanks</description>
		<content:encoded><![CDATA[<p>Another good article &#8230;.<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
