You are here: Re: how do professional PHP developers handle defaults for function parameters? « PHP Programming Language « IT news, forums, messages
Re: how do professional PHP developers handle defaults for function parameters?

Posted by lawrence k on 07/13/07 17:04

On Jul 7, 10:12 pm, gosha bine <stereof...@gmail.com> wrote:
> pangea33 wrote:
> > My post got longer and longer as my thoughts came together on this
> > subject. The gist of my claim is that you shouldn't build something as
> > FRAGILE as a function that breaks if there are argument variations,
> > when you can simply build a more robust function in the first place.
>
> If something is going to fail, let it fail. The sooner it fails, the
> more chances to discover and fix the bug.

That's an interesting reply. Do you do any error checking at all in
your code? If so, what do you error check for?

 

Navigation:

[Reply to this 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

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