On Thu, 2007-01-25 at 10:12 +0000, Roman Neuhauser wrote: > # sancar.saran@xxxxxxxxxx / 2007-01-25 11:06:22 +0200: > > On Wednesday 24 January 2007 15:41, Roman Neuhauser wrote: > > > # sancar.saran@xxxxxxxxxx / 2007-01-24 13:57:03 +0200: > > > > and also in these days I'm looking for 19 inch (or more) wide LCD > > > > sceerns to able to fit longer lines in my screen... > > > > > > Number of reading errors people make grows with line length, > > > this has been known for as long as I remember. You're increasing the > > > probability of bugs in the code, and get tired sooner because following > > > long lines requires more energy. > > > > Yes and no, because these days I'm obsessed very very large arrays like > > $arr['this']['is']['what']['i']['m']['looking']['for']; > > Well, ugh! > > > And If I start to do > > > > if( ($arr['this']['is']['what']['i']['m']['looking']['for'] > 5) && > > ($arr['this']['is']['what']['i']['m']['looking']['for'] < 10)) That's terrible... first off we'll start by doing the following: if( ($arr['this']['is']['what']['i']['m']['looking']['for'] > 5) && ($arr['this']['is']['what']['i']['m']['looking']['for'] < 10) ) Next we'll chop off the redundant bits: if( $arr['this']['is']['what']['i']['m']['looking']['for'] > 5 && $arr['this']['is']['what']['i']['m']['looking']['for'] < 10 ) Now we'll make sure we don't throw any sloppy errors: if( isset( $arr['this']['is']['what']['i']['m']['looking']['for'] ) && $arr['this']['is']['what']['i']['m']['looking']['for'] > 5 && $arr['this']['is']['what']['i']['m']['looking']['for'] < 10 ) :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php