<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for real ultimate waffe (.net)</title>
	<atom:link href="http://mdawaffe.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://mdawaffe.wordpress.com</link>
	<description>FACT: mdawaffes are mammals</description>
	<lastBuildDate>Wed, 04 Nov 2009 07:29:29 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Improved Post and Page management in WordPress by Jems Beliam</title>
		<link>http://mdawaffe.wordpress.com/2007/05/29/improved-post-and-page-management-in-wordpress/#comment-6735</link>
		<dc:creator>Jems Beliam</dc:creator>
		<pubDate>Wed, 04 Nov 2009 07:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/2007/05/29/improved-post-and-page-management-in-wordpress/#comment-6735</guid>
		<description>I am anxiously waiting for the 2010 football world cup! To enjoy the real magic of Football fever, I have booked 2010 Soccer World Cup Tickets at www.worldcupticketservice.com. Your safe and assure delivery of premium 2010 Soccer World Cup Tickets and that too at great prices makes you the best of all. I want to say thanks to your customer care executives for such a brilliant service!</description>
		<content:encoded><![CDATA[<p>I am anxiously waiting for the 2010 football world cup! To enjoy the real magic of Football fever, I have booked 2010 Soccer World Cup Tickets at <a href="http://www.worldcupticketservice.com" rel="nofollow">http://www.worldcupticketservice.com</a>. Your safe and assure delivery of premium 2010 Soccer World Cup Tickets and that too at great prices makes you the best of all. I want to say thanks to your customer care executives for such a brilliant service!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Improved Post and Page management in WordPress by software sekolah</title>
		<link>http://mdawaffe.wordpress.com/2007/05/29/improved-post-and-page-management-in-wordpress/#comment-6322</link>
		<dc:creator>software sekolah</dc:creator>
		<pubDate>Tue, 28 Apr 2009 19:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/2007/05/29/improved-post-and-page-management-in-wordpress/#comment-6322</guid>
		<description>I try googling to find &quot;how to insert &quot;post&quot; to &quot;page&quot; in wordpress,.. but i didn&#039;t find yet,.. do you have some reference of it ?.. thanks you your kind and help</description>
		<content:encoded><![CDATA[<p>I try googling to find &#8220;how to insert &#8220;post&#8221; to &#8220;page&#8221; in wordpress,.. but i didn&#8217;t find yet,.. do you have some reference of it ?.. thanks you your kind and help</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Revisions in WordPress 2.6 by OffidoLop</title>
		<link>http://mdawaffe.wordpress.com/2008/05/22/post-revisions-in-wordpress-26/#comment-6310</link>
		<dc:creator>OffidoLop</dc:creator>
		<pubDate>Wed, 22 Apr 2009 13:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=63#comment-6310</guid>
		<description>mm... bookmarked ))</description>
		<content:encoded><![CDATA[<p>mm&#8230; bookmarked ))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress __autoload() idea by Jacob Santos</title>
		<link>http://mdawaffe.wordpress.com/2009/03/31/wordpress-__autoload-idea/#comment-6274</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Thu, 02 Apr 2009 04:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=69#comment-6274</guid>
		<description>The SPL Autoload solution allows for multiple functions to hook into it and allow for them to handle it. Most likely you can use a whitelist or check for namespace in the class name (&quot;WP&quot;), before trying to include the file.

Any thing that has IF(...) : function() { } ENDIF; should never be prototyped. The issue is that many people take code from intelligent people as gold and so we get people doing function() { function() { } }. Functions contained inside other functions are worse than functions in conditionals (if the function is called twice, then you crash PHP).

Best practices should always be used when writing examples.

That said, I do think WordPress would be better served with several loading mechanisms, so that the person who wants to autoload WordPress may do so. I think it should very much be up to the developer to choose how WordPress is included. I would rather have the option to have the entire WordPress Includes in one file and the entire WordPress Administration in another file.

I suggested before that WordPress could have a build script that creates those files. I understand that having the entire WordPress library in one file would be incredibly difficult to manage. The speed advantage for those using XCache and APC, those like me, would benefit greatly from this.

This is something that can be done for 2.8 or during 2.9. I have actually done this with notable millisecond differences (I didn&#039;t have XCache or APC in those instances). However, to be honest, it was using the time() - time(), so you may take the diffs with a grain of salt, because they aren&#039;t worth much.

In fact, I wasn&#039;t testing the compile time, I was testing how long require took, so the time decrease was based on removing the file IO by combining PHP.

This is partly why __autoload() also decreases performance. Not only do you add the extra File IO, but also a function call on top of it.

I guess I wasn&#039;t clear. My problem with this idea, is foremost performance. The second is WordPress would not benefit from the current file structure with the placement of classes. Most classes are required any way, so you don&#039;t gain much by autoloading them, because you&#039;ll be loading 99% of them regardless. No advantage.

The third reason is that I don&#039;t think you should just have one way to load the files. For development you want to spread the libraries out into their files, so that you can find the functions and classes quicker than browsing a 100000+ line file. This is to say, that if you were to implement an __autoload(), then you will want to provide the multiple file approach. Finally, if at all possible (using a build script) having a single file with all of the library code for those XCache and APC would be great.

Therefore, it is easy to say, &quot;Be all things to all people,&quot; but that is, in general life and development, difficult to impossible. In this case, besides the single file approach, these two are not difficult to implement side by side.

I also have problems with themes and other web applications that each file starts with: IF( attempted direct access to this file) die(); on every file. The problem, is that it is irrelevant, since for some of the files, there is no code that is actually executed. In other cases, you can get away with just, If( ! defined(&#039;ABSPATH&#039;) ) die(); which is a lot quicker than the other approach of checking the URL, which in some cases can be spoofed (also depends on how the check works).

I guess my problem was that I was worried some guy would come along, noticed that the code was &quot;The R0ck3rz&quot; and decide to apply it to their project or code. No one should go along thinking that putting procedures and classes in conditionals is a Good Idea(SM). The bar needs to be set as, if this is something you should do, then you should know what you are doing.

You know what you are doing, but some novice with two months of PHP is not going to know what the problem is.

Also, I&#039;ll rather WordPress was refactored to remove as much as possible these types of constructs in the WordPress source code. I guess, the pluggable functions would have to be as it is. Plugins hinder this as well.</description>
		<content:encoded><![CDATA[<p>The SPL Autoload solution allows for multiple functions to hook into it and allow for them to handle it. Most likely you can use a whitelist or check for namespace in the class name (&#8220;WP&#8221;), before trying to include the file.</p>
<p>Any thing that has IF(&#8230;) : function() { } ENDIF; should never be prototyped. The issue is that many people take code from intelligent people as gold and so we get people doing function() { function() { } }. Functions contained inside other functions are worse than functions in conditionals (if the function is called twice, then you crash PHP).</p>
<p>Best practices should always be used when writing examples.</p>
<p>That said, I do think WordPress would be better served with several loading mechanisms, so that the person who wants to autoload WordPress may do so. I think it should very much be up to the developer to choose how WordPress is included. I would rather have the option to have the entire WordPress Includes in one file and the entire WordPress Administration in another file.</p>
<p>I suggested before that WordPress could have a build script that creates those files. I understand that having the entire WordPress library in one file would be incredibly difficult to manage. The speed advantage for those using XCache and APC, those like me, would benefit greatly from this.</p>
<p>This is something that can be done for 2.8 or during 2.9. I have actually done this with notable millisecond differences (I didn&#8217;t have XCache or APC in those instances). However, to be honest, it was using the time() &#8211; time(), so you may take the diffs with a grain of salt, because they aren&#8217;t worth much.</p>
<p>In fact, I wasn&#8217;t testing the compile time, I was testing how long require took, so the time decrease was based on removing the file IO by combining PHP.</p>
<p>This is partly why __autoload() also decreases performance. Not only do you add the extra File IO, but also a function call on top of it.</p>
<p>I guess I wasn&#8217;t clear. My problem with this idea, is foremost performance. The second is WordPress would not benefit from the current file structure with the placement of classes. Most classes are required any way, so you don&#8217;t gain much by autoloading them, because you&#8217;ll be loading 99% of them regardless. No advantage.</p>
<p>The third reason is that I don&#8217;t think you should just have one way to load the files. For development you want to spread the libraries out into their files, so that you can find the functions and classes quicker than browsing a 100000+ line file. This is to say, that if you were to implement an __autoload(), then you will want to provide the multiple file approach. Finally, if at all possible (using a build script) having a single file with all of the library code for those XCache and APC would be great.</p>
<p>Therefore, it is easy to say, &#8220;Be all things to all people,&#8221; but that is, in general life and development, difficult to impossible. In this case, besides the single file approach, these two are not difficult to implement side by side.</p>
<p>I also have problems with themes and other web applications that each file starts with: IF( attempted direct access to this file) die(); on every file. The problem, is that it is irrelevant, since for some of the files, there is no code that is actually executed. In other cases, you can get away with just, If( ! defined(&#8216;ABSPATH&#8217;) ) die(); which is a lot quicker than the other approach of checking the URL, which in some cases can be spoofed (also depends on how the check works).</p>
<p>I guess my problem was that I was worried some guy would come along, noticed that the code was &#8220;The R0ck3rz&#8221; and decide to apply it to their project or code. No one should go along thinking that putting procedures and classes in conditionals is a Good Idea(SM). The bar needs to be set as, if this is something you should do, then you should know what you are doing.</p>
<p>You know what you are doing, but some novice with two months of PHP is not going to know what the problem is.</p>
<p>Also, I&#8217;ll rather WordPress was refactored to remove as much as possible these types of constructs in the WordPress source code. I guess, the pluggable functions would have to be as it is. Plugins hinder this as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress __autoload() idea by mdawaffe</title>
		<link>http://mdawaffe.wordpress.com/2009/03/31/wordpress-__autoload-idea/#comment-6273</link>
		<dc:creator>mdawaffe</dc:creator>
		<pubDate>Thu, 02 Apr 2009 04:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=69#comment-6273</guid>
		<description>Thanks for the info.  And no, I don&#039;t think you&#039;re flaming me (or if you are you should try harder).  Sounds more like you&#039;re flaming the idea, which is cool.

I never said there would be performance gains.  I never said it would be better.  I&#039;m sorry that the phrase &quot;cut down on the number of bytes of code we load&quot; comes across as &quot;improve the performance&quot; or that it sounds like I mean to use it as a performance metric.

That&#039;s not what I meant nor is it what I propose to do.

I would never want something game-changing like that to go into core without real benchmarks.  (I do not mean time() - time() on some dude&#039;s laptop either.)

Anyway, that&#039;s neither here nor there.  The post really was just an idea - not one I intended to implement or even propose - just one I wanted to jot down.

I was thinking about how you might approach the issue of autoloading classes in apps supporting third party plugins that can put files in a number of different paths.  (Suppose, for the sake of argument, that that issue is one you even want to approach in the first place.)  The &quot;dynamic&quot; (can&#039;t think of a more descriptive word) autoloader was one idea I had, but I wasn&#039;t thinking specifically about WordPress when I was was considering the autoloader.  I could have called this a &quot;Path agnostic __autoload() idea&quot; instead of a &quot;WordPress __autoload() idea&quot;, but decided to ground it in some context.

You&#039;re right to be concerned if you felt this might work its way into WordPress with no real data to back it up (or in spite of data that knocks it down).  Please consider this comment my attempt to assuage that concern.</description>
		<content:encoded><![CDATA[<p>Thanks for the info.  And no, I don&#8217;t think you&#8217;re flaming me (or if you are you should try harder).  Sounds more like you&#8217;re flaming the idea, which is cool.</p>
<p>I never said there would be performance gains.  I never said it would be better.  I&#8217;m sorry that the phrase &#8220;cut down on the number of bytes of code we load&#8221; comes across as &#8220;improve the performance&#8221; or that it sounds like I mean to use it as a performance metric.</p>
<p>That&#8217;s not what I meant nor is it what I propose to do.</p>
<p>I would never want something game-changing like that to go into core without real benchmarks.  (I do not mean time() &#8211; time() on some dude&#8217;s laptop either.)</p>
<p>Anyway, that&#8217;s neither here nor there.  The post really was just an idea &#8211; not one I intended to implement or even propose &#8211; just one I wanted to jot down.</p>
<p>I was thinking about how you might approach the issue of autoloading classes in apps supporting third party plugins that can put files in a number of different paths.  (Suppose, for the sake of argument, that that issue is one you even want to approach in the first place.)  The &#8220;dynamic&#8221; (can&#8217;t think of a more descriptive word) autoloader was one idea I had, but I wasn&#8217;t thinking specifically about WordPress when I was was considering the autoloader.  I could have called this a &#8220;Path agnostic __autoload() idea&#8221; instead of a &#8220;WordPress __autoload() idea&#8221;, but decided to ground it in some context.</p>
<p>You&#8217;re right to be concerned if you felt this might work its way into WordPress with no real data to back it up (or in spite of data that knocks it down).  Please consider this comment my attempt to assuage that concern.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress __autoload() idea by Top Posts &#171; WordPress.com</title>
		<link>http://mdawaffe.wordpress.com/2009/03/31/wordpress-__autoload-idea/#comment-6271</link>
		<dc:creator>Top Posts &#171; WordPress.com</dc:creator>
		<pubDate>Thu, 02 Apr 2009 00:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=69#comment-6271</guid>
		<description>[...]  WordPress __autoload() idea PHP 5 introduces autoloading classes. The way WordPress is currently structured, I don&#8217;t think we&#8217;d get [...] [...]</description>
		<content:encoded><![CDATA[<p>[...]  WordPress __autoload() idea PHP 5 introduces autoloading classes. The way WordPress is currently structured, I don&#8217;t think we&#8217;d get [...] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress __autoload() idea by Jacob Santos</title>
		<link>http://mdawaffe.wordpress.com/2009/03/31/wordpress-__autoload-idea/#comment-6270</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Wed, 01 Apr 2009 22:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=69#comment-6270</guid>
		<description>Damn, it is code like your example that is adversely affecting the performance in WordPress in the first place. WordPress would be better off, if code like you have never, ever gets into the core.

How many times must I say this! Every time PHP has to go back to the compile step when in run-time, it slows down performance more so than just having everything compiled at once.

In your code PHP goes like this compile-&gt;run-time-&gt;compile-run-time. This will be inherently slower than something, like say, compile-&gt;run-time-&gt;end. You see the difference? Your code is the first, quicker code will be the second.

Now what everyone can gather from the comments, your mileage will vary. Given that my servers uses XCache and APC, your code will cripple the performance. You are purposely hindering opcode caching performance by forcing them to go back and perform the caching step again. Also, in some cases, depending on the version and opcode caching extension, the code might never be fully compiled, because the opcode caching extension does not know if it should keep the compiled code on the next run.

This is why, it is generally recommended by Rasmus (the guy who initially wrote PHP and smarter than you and me, you should read his stuff and interviews). Also, all suggestions on compile and run-time performance are geared towards those who are using XCache or APC or some other opcode caching extension.

This said, it will be faster in the cases of shared to only compile the code that is needed. That said, you gain nothing when everything is needed. Also, it will be faster to have a build script that places all of the code in a single file, instead of the 15 to 20 files that we have currently.

I think the problem comes is that compile-time is not reliability retrieved, so it is not really scientific as statistics go to diff $_SERVER[&#039;REQUEST_TIME&#039;] to time(). You can do that to tell, but the real picture isn&#039;t that easy to get because you really need to get in to the guts of PHP to find where time is being wasted.

If I sounds like I&#039;m flaming you, then it is because I am. You are welcome. I got in to this with Ryan, you should talk to him sometime.</description>
		<content:encoded><![CDATA[<p>Damn, it is code like your example that is adversely affecting the performance in WordPress in the first place. WordPress would be better off, if code like you have never, ever gets into the core.</p>
<p>How many times must I say this! Every time PHP has to go back to the compile step when in run-time, it slows down performance more so than just having everything compiled at once.</p>
<p>In your code PHP goes like this compile-&gt;run-time-&gt;compile-run-time. This will be inherently slower than something, like say, compile-&gt;run-time-&gt;end. You see the difference? Your code is the first, quicker code will be the second.</p>
<p>Now what everyone can gather from the comments, your mileage will vary. Given that my servers uses XCache and APC, your code will cripple the performance. You are purposely hindering opcode caching performance by forcing them to go back and perform the caching step again. Also, in some cases, depending on the version and opcode caching extension, the code might never be fully compiled, because the opcode caching extension does not know if it should keep the compiled code on the next run.</p>
<p>This is why, it is generally recommended by Rasmus (the guy who initially wrote PHP and smarter than you and me, you should read his stuff and interviews). Also, all suggestions on compile and run-time performance are geared towards those who are using XCache or APC or some other opcode caching extension.</p>
<p>This said, it will be faster in the cases of shared to only compile the code that is needed. That said, you gain nothing when everything is needed. Also, it will be faster to have a build script that places all of the code in a single file, instead of the 15 to 20 files that we have currently.</p>
<p>I think the problem comes is that compile-time is not reliability retrieved, so it is not really scientific as statistics go to diff $_SERVER['REQUEST_TIME'] to time(). You can do that to tell, but the real picture isn&#8217;t that easy to get because you really need to get in to the guts of PHP to find where time is being wasted.</p>
<p>If I sounds like I&#8217;m flaming you, then it is because I am. You are welcome. I got in to this with Ryan, you should talk to him sometime.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress __autoload() idea by gipetto</title>
		<link>http://mdawaffe.wordpress.com/2009/03/31/wordpress-__autoload-idea/#comment-6267</link>
		<dc:creator>gipetto</dc:creator>
		<pubDate>Wed, 01 Apr 2009 05:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=69#comment-6267</guid>
		<description>I :heart: autoload.</description>
		<content:encoded><![CDATA[<p>I :heart: autoload.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress __autoload() idea by mdawaffe</title>
		<link>http://mdawaffe.wordpress.com/2009/03/31/wordpress-__autoload-idea/#comment-6264</link>
		<dc:creator>mdawaffe</dc:creator>
		<pubDate>Tue, 31 Mar 2009 22:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=69#comment-6264</guid>
		<description>As written, it&#039;s PHP4 compatible.  Under PHP4, it just requires all the files instead of registering them for autoloading later.</description>
		<content:encoded><![CDATA[<p>As written, it&#8217;s PHP4 compatible.  Under PHP4, it just requires all the files instead of registering them for autoloading later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress __autoload() idea by Oncle Tom</title>
		<link>http://mdawaffe.wordpress.com/2009/03/31/wordpress-__autoload-idea/#comment-6263</link>
		<dc:creator>Oncle Tom</dc:creator>
		<pubDate>Tue, 31 Mar 2009 22:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://mdawaffe.wordpress.com/?p=69#comment-6263</guid>
		<description>It would be nice and would resolve code dependancy problems.

However, it increase the PHP requirement as it would now be PHP5. I hope this move will be considered, again.</description>
		<content:encoded><![CDATA[<p>It would be nice and would resolve code dependancy problems.</p>
<p>However, it increase the PHP requirement as it would now be PHP5. I hope this move will be considered, again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
