Re: Exception misinformation
| From: | Hans_L | Date: | Wed, 07 Jul 2004 13:18:54 +0000 |
| Subject: | Re: Exception misinformation | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31711@lists.php.net to get a copy of this message | ||
Hi Lukas,
Lukas Smith wrote:
This looks like a bad example.hey I wasnt the one who brought up this example! :-) its just that alot of comments on the list go like: its part of php5 so it cant hurt. or look this guy wrote that in his book. or in this case: this extension throws an exception.
while its good to learn from how other people do things, they shouldnt be our sole source of inspiration of how we do things. in this particular case the example David brought up it was not even proving the point he was trying to make.It sounds like this time you should re-read David's post. His statement was that exceptions are already a part of PHP5 and his example was that SQLite will throw an exception if you try to connect & it fails. Ergo, people using SQLite in PHP5 need to know how to catch exceptions. It puzzles me that you criticize me for not listening to anyone else's opinions and then also criticize me for suggesting that we use what we've learned from others as the sole source of inspiration. (I assume that's your suggestion, as I'm the one who said that George's book was a good guide for exception use.) I learn (almost?) everything I know from others; however, learning from others does not mean validating the fears or general uncertainty of those who have no experience with something. I want these learning discussions to be actually based on experience and fact, not wild hypotheticals, that's all. In the end, I hope that these discussions result in some good recommendations and documentation. Informed people make better decisions. Hans