Reply to Re: [PHP] Breaking up data efficiently

Your name:

Reply:


Posted by Edward Vermillion on 06/28/05 20:15

On Jun 28, 2005, at 9:40 AM, Kevin L'Huillier wrote:

>> In my opinion you should save exceptions for, well, EXCEPTIONal
>> problems. Either that or you use exceptions for a large system that
>> discriminates against specific types of errors and handles each error
>> type in a totally different way. Can we say bloat?
>
> Depending on the system, malformatted data may very well
> be exceptional. (adj. 1. being an exception; uncommon) Judging by the
> lack of error-checking in the OP, it seems to be the case. Using
> trigger_error or return false would both be reasonable solutions as
> well.
>
> Really, how errors are handled is up to the individual. My point was
> that Wee Keat may consider adding a few lines for validation.
>
> Certainly adding any error-checking will reduce efficiency, which
> is what the original question was regarding.
[snip]

I would think that error checking would increase "efficiency",
ie. the script is more likely to work as expected. Eh? ;)

Edward Vermillion
evermillion@doggydoo.net

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация