[dev] Re: [cvs] commit: horde/lib/Block weatherdotcom.php

Jan Schneider jan at horde.org
Fri Jan 23 08:12:59 PST 2004


Zitat von Rick Emery <rick at emery.homelinux.net>:

> This has actually been difficult for me with a lot of the horde code I've
> worked on. According to the CODING_STANDARDS document, lines should 
> be wrapped
> at 80 characters. It's especially difficult sometimes to break the line so
> that the code is not difficult to read (just try to read 
> weatherdotcom.php and
> you'll see what I mean).
>
> So, how do you decide when to wrap and when not to wrap?

The 80 column rule is not carved in stone. If you have 82 columns and it
doesn't make sense to wrap that line, leave it as it is. This specific case
was a gettext string that should *never* be wrapped.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list