RE: [PEAR-DEV] Template Proposal
| From: | Dietrich Ayala | Date: | Fri, 09 Nov 2001 18:51:09 +0000 |
| Subject: | RE: [PEAR-DEV] Template Proposal | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2738@lists.php.net to get a copy of this message | ||
+1
The rigidity of the coding style is definitely turning some people away from
PEAR; people who *want* to contribute and be a part of it.
There is even less of an incentive to convert my code when:
1. there is doubt that one's code will be accepted if there is similar
functioning code in PEAR already.
2. new classes aren't getting distributed w/ PHP, and PEAR installer stuff
seems far from being usable by everyday PHP users (please correct me if i'm
wrong here. status on the state of the installer and a brief explanation of
how it works would be awesome, if anyone involved has the time).
> -----Original Message-----
> From: Lux [mailto:lux@simian.ca]
> Sent: Friday, November 09, 2001 12:57 PM
> To: Martin Jansen
> Cc: pear-dev@lists.php.net
> Subject: Re: [PEAR-DEV] Template Proposal
>
>
> On Friday, November 9, 2001, at 10:44 AM, Martin Jansen wrote:
>
> > On Fri, 09 Nov 2001 15:39:34 +0000, Peter Bowyer wrote:
> >
> >>> Anyways: If a big number of people wants to have less strict coding
> >>> standards, I will not be against this.
> >>
> >> NO! We need the coding standards - although I would like to see tabs
> >> used
> >> instead of spaces - that way when you're working on a class, if you
> >> like
> >> your indentation set to 10 spaces you just alter the tab stop. If you
> >> like
> >> it one space, you alter the tab stop. The next developer can set it to
> >> exactly what he wants. I think you get my meaning :-)
> >
> > Yeah, I get your idea. But see the following example:
> >
> > <?php
> > foo("value1",
> > "value2"
> > );
> > ?>
> >
> > This snippet only looks good with spaces or with a tab width set to 4
> > spaces. When using a different tab width, "value2" will be indented
> > differently => tabs are evil :-).
> >
>
> Then add more spaces.
>
> <?php
>
> foo (
> "value1",
> "value2"
> );
>
> ?>
>
> The 'evil' tab doesn't 'get us' that way, and it's cleaner to
> read.
>
> My argument for less restriction on formatting rules is simply that they
> were chosen based on the subjectivity of the few who started PEAR and
> may not correspond to the way a lot of developers work. I've been
> coding a certain way for years now. Nobody's ever complained. In fact,
> they've done quite the opposite. I would find myself less productive if
> I had to remove the spaces between my method calls and their parentheses
> "methodName() v.s methodName ()", or if I had to start putting my curly
> braces on the line after the function declaration. I think the former
> in the above example detracts from legibility, yet it is the PEAR
> standard. Or if I had to switch to spaces. I've tried that, and it
> sucked. So I'm a bit of stickler on my personal coding preferences.
>
> I think we can set guidelines that are still clear enough, yet flexible
> enough to accommodate slight differences in coding style, that some joe
> can't come along with indents of 1 space and say "here ya go".
> Actually, the first time I read about PEAR and saw all those formatting
> rules, I said to myself "fuck that" and didn't bother looking at it for
> quite a while afterwards.
>
> And as for ensuring it's a high quality repository, keep the approval
> process. Don't let just any joe go committing new Forums and such that
> have no place in PEAR, or some class that is only half functional and
> kind of shifty. I think it's a waste of time arguing over whose
> template engine should become the standard. The "we already have one of
> those, sorry" rule may only end up hurting PEAR in the long run, when
> some guy with a new class moseys on in and is refused because we don't
> need another template engine, and his engine ended up having a really
> cool idea we didn't notice to consider so we lose out.
>
> Lux
>
> > - Martin
> >
> >
> >
> > --
> > PEAR Development Mailing List (http://pear.php.net/)
> > To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: pear-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
> >
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: pear-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>