<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: The PEAR book</title>
	<link>http://www.phpied.com/the-pear-book/</link>
	<description>Stoyan's blog about (x)html, ajax, bookmarklets, browsers, css, firebug, javascript, json, mdb2, mysql, pear, performance, php, phpbb, tools, yslow, yui, writing, music,... life and everything.</description>
	<pubDate>Sun, 11 May 2008 23:47:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: phpied.com &#187; Blog Archive &#187; Performance tuning with MDB2</title>
		<link>http://www.phpied.com/the-pear-book/#comment-42542</link>
		<pubDate>Sat, 09 Dec 2006 21:01:26 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-42542</guid>
					<description>[...] This is a follow-up to Lars' comment about the PEAR book. In the MDB2 chapter I showed an example how you can create custom debug handlers in MDB2 and then gave a suggestion about a useful application of this functionality for performance tuning. Basically the idea is that your custom debug handler collects all queries that are executed during the life of a given script. Then, once the script finishes execution, the debug handler reports the stats that it has collected. In the book, the example is how you count the number of times each distinct query is executed, this way you can spot problems caused by the OO abstraction. For example, say you have a come class Users that has a method loadUser(), which abstracts the database work. While debugging with the custom error handler, you might figure out that without noticing, you're calling this method in a few places and it makes the same repeating query(queries) over and over again. So you can now optimize/cache results and so on. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] This is a follow-up to Lars' comment about the PEAR book. In the MDB2 chapter I showed an example how you can create custom debug handlers in MDB2 and then gave a suggestion about a useful application of this functionality for performance tuning. Basically the idea is that your custom debug handler collects all queries that are executed during the life of a given script. Then, once the script finishes execution, the debug handler reports the stats that it has collected. In the book, the example is how you count the number of times each distinct query is executed, this way you can spot problems caused by the OO abstraction. For example, say you have a come class Users that has a method loadUser(), which abstracts the database work. While debugging with the custom error handler, you might figure out that without noticing, you're calling this method in a few places and it makes the same repeating query(queries) over and over again. So you can now optimize/cache results and so on. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Lars Olesen</title>
		<link>http://www.phpied.com/the-pear-book/#comment-41022</link>
		<pubDate>Wed, 29 Nov 2006 23:43:22 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-41022</guid>
					<description>Cannot wait to read more about the matters in your blog. You guys are brilliant :)</description>
		<content:encoded><![CDATA[<p>Cannot wait to read more about the matters in your blog. You guys are brilliant <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/the-pear-book/#comment-40950</link>
		<pubDate>Wed, 29 Nov 2006 14:56:36 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-40950</guid>
					<description>Thanks Lars! I'm glad you like the book. 

As for the custom debug handler, I think there is an example that shows the value - the thing that counts how many times each query is executed. The example that I used is something I came up some time ago while doing performance optimizations on a site. Back then the project was using PEAR::DB and there were no custom debug handlers, so I had to hack its code a bit. When I tried MDB2, I liked the fact that you can do the same by using API provided by the package and without the need of modifying its code (easier for future updates, etc)

Thanks again for your kind words about the book, I'll try to address both of your suggestions in blog posts.</description>
		<content:encoded><![CDATA[<p>Thanks Lars! I'm glad you like the book. </p>
<p>As for the custom debug handler, I think there is an example that shows the value - the thing that counts how many times each query is executed. The example that I used is something I came up some time ago while doing performance optimizations on a site. Back then the project was using PEAR::DB and there were no custom debug handlers, so I had to hack its code a bit. When I tried MDB2, I liked the fact that you can do the same by using API provided by the package and without the need of modifying its code (easier for future updates, etc)</p>
<p>Thanks again for your kind words about the book, I'll try to address both of your suggestions in blog posts.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Lars Olesen</title>
		<link>http://www.phpied.com/the-pear-book/#comment-40875</link>
		<pubDate>Wed, 29 Nov 2006 06:01:38 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-40875</guid>
					<description>Read more in your book, and learned a lot. However, it is to bad that you on page 39 where you just explained how to set a custom debug handler to mdb2 only mentions the idea to prefix every select statement with explain and not show how to do it. The custom error handler has little value as it doesn't add anything to the standard error handler. Perhaps a blog post about it :D</description>
		<content:encoded><![CDATA[<p>Read more in your book, and learned a lot. However, it is to bad that you on page 39 where you just explained how to set a custom debug handler to mdb2 only mentions the idea to prefix every select statement with explain and not show how to do it. The custom error handler has little value as it doesn't add anything to the standard error handler. Perhaps a blog post about it <img src='http://www.phpied.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Lars Olesen</title>
		<link>http://www.phpied.com/the-pear-book/#comment-40639</link>
		<pubDate>Tue, 28 Nov 2006 03:36:56 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-40639</guid>
					<description>Just bought your book. Great reading. But working with dates, I would have liked you to cover the conversion of dates from a timestamp in a database to the internationalized date for instance in a form and taking it back again. I think many developers struggle with precisely that aspect.

-- 
Lars Olesen</description>
		<content:encoded><![CDATA[<p>Just bought your book. Great reading. But working with dates, I would have liked you to cover the conversion of dates from a timestamp in a database to the internationalized date for instance in a form and taking it back again. I think many developers struggle with precisely that aspect.</p>
<p>&#8211;<br />
Lars Olesen
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: phpied.com &#187; Blog Archive &#187; Personal news update Nov/06</title>
		<link>http://www.phpied.com/the-pear-book/#comment-28045</link>
		<pubDate>Thu, 02 Nov 2006 16:44:19 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-28045</guid>
					<description>[...] So what I've been up to recently? Having a bit of a break, I guess. First, I'm not currently writing a book, after the last one for which I completed my chapter back in June. That's some free time (There is a very exciting book project on the horizon though, we'll see). Then, I'm not working so much on our new house. Now (August) that my family is back from Bulgaria, and the two little princesses are running around, it's next to impossible to do any construction work, however small. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] So what I've been up to recently? Having a bit of a break, I guess. First, I'm not currently writing a book, after the last one for which I completed my chapter back in June. That's some free time (There is a very exciting book project on the horizon though, we'll see). Then, I'm not working so much on our new house. Now (August) that my family is back from Bulgaria, and the two little princesses are running around, it's next to impossible to do any construction work, however small. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Amy Stephen</title>
		<link>http://www.phpied.com/the-pear-book/#comment-20831</link>
		<pubDate>Fri, 20 Oct 2006 16:43:10 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-20831</guid>
					<description>Stoyan - I meant to link you to Seth's article on wikipedia  where I mentioned your book. Not my silly article. :) I am here testing out your coComment recommendation - way cool.</description>
		<content:encoded><![CDATA[<p>Stoyan - I meant to link you to Seth's article on wikipedia  where I mentioned your book. Not my silly article. <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I am here testing out your coComment recommendation - way cool.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Amy Stephen</title>
		<link>http://www.phpied.com/the-pear-book/#comment-20562</link>
		<pubDate>Fri, 20 Oct 2006 01:55:15 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-20562</guid>
					<description>Stoyan - You guys are ***SO*** cool! So, my link count is going up! Do you have any idea why? LOL! I am so enjoying it. Thanks, Stoyan, for taking me on your adventure! :)

Did you find the link I left on Seth Finklestein's blog for your book? Seth linked to a silly little article I wrote on the Walmart fake bloggers ( http://tinyurl.com/y55lam - wow, huh? lol!). 

So, I was reading his articles, which are, of course, amazing. He has an article about wanting to get *out* of the Wikipedia. So, in my comment, I mentioned your book and how Pear might be able to help him. ;-) 

Hope everything is turning out great with your book! Talk to you later, Amy :)</description>
		<content:encoded><![CDATA[<p>Stoyan - You guys are ***SO*** cool! So, my link count is going up! Do you have any idea why? LOL! I am so enjoying it. Thanks, Stoyan, for taking me on your adventure! <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Did you find the link I left on Seth Finklestein's blog for your book? Seth linked to a silly little article I wrote on the Walmart fake bloggers ( <a href='http://tinyurl.com/y55lam' rel='nofollow'>http://tinyurl.com/y55lam</a> - wow, huh? lol!). </p>
<p>So, I was reading his articles, which are, of course, amazing. He has an article about wanting to get *out* of the Wikipedia. So, in my comment, I mentioned your book and how Pear might be able to help him. <img src='http://www.phpied.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </p>
<p>Hope everything is turning out great with your book! Talk to you later, Amy <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/the-pear-book/#comment-19656</link>
		<pubDate>Tue, 17 Oct 2006 15:30:33 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-19656</guid>
					<description>True, Fabian, you're right. This book is more centered around something like working with (and displaying of) data, hence the covered packages - MDB2, DataGrid, Excel, PDF, XML, Web services. But you're right, PEAR can always use more documentation and how-to-s on popular and/or interesting packages.</description>
		<content:encoded><![CDATA[<p>True, Fabian, you're right. This book is more centered around something like working with (and displaying of) data, hence the covered packages - MDB2, DataGrid, Excel, PDF, XML, Web services. But you're right, PEAR can always use more documentation and how-to-s on popular and/or interesting packages.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Fabian</title>
		<link>http://www.phpied.com/the-pear-book/#comment-19646</link>
		<pubDate>Tue, 17 Oct 2006 14:54:51 +0000</pubDate>
		<guid>http://www.phpied.com/the-pear-book/#comment-19646</guid>
					<description>This looks like a great book and I will most probably order myself a copy... However, I would have liked to see articles about some IMHO more popular/important packages like e.g. &quot;Auth&quot;, &quot;Mail&quot;, &quot;Cache/Cache_Lite&quot;. 

For interesting classes like &quot;Live_User&quot; there is also a lack of documentation on the PEAR site, so it would have been nice to see these packages in the book. :-(

But otherwise: great work!</description>
		<content:encoded><![CDATA[<p>This looks like a great book and I will most probably order myself a copy&#8230; However, I would have liked to see articles about some IMHO more popular/important packages like e.g. "Auth", "Mail", "Cache/Cache_Lite". </p>
<p>For interesting classes like "Live_User" there is also a lack of documentation on the PEAR site, so it would have been nice to see these packages in the book. <img src='http://www.phpied.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>But otherwise: great work!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
