PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Buxa Coding Guidelines
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Buxa Coding Guidelines

Réponse
 
LinkBack Outils de la discussion
Vieux 08/09/2007, 23h17   #1
magoo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Buxa Coding Guidelines

Hi NG!

Just wanted to see what you think of the strictness of Buxa, according to
their PHP guidelines:
http://www.buxaprojects.com/en/php_c...guidelines.htm

In their oppinion stuff like the short PHP init "<?" or inline echo "<?=
$var ?>" is forbidden.
Do you people code that strict?

--
Kind regards,
magoo
  Réponse avec citation
Vieux 09/09/2007, 01h52   #2
tedd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Buxa Coding Guidelines

At 12:17 AM +0200 9/9/07, magoo wrote:
>Hi NG!
>
>Just wanted to see what you think of the strictness of Buxa,
>according to their PHP guidelines:
>http://www.buxaprojects.com/en/php_c...guidelines.htm
>
>In their oppinion stuff like the short PHP init "<?" or inline echo
>"<?= $var ?>" is forbidden.
>Do you people code that strict?


I do.

Cheers,

tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
  Réponse avec citation
Vieux 09/09/2007, 02h13   #3
Kevin Waterson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Buxa Coding Guidelines

This one time, at band camp, tedd <tedd@sperling.com> wrote:

> At 12:17 AM +0200 9/9/07, magoo wrote:
> >Hi NG!
> >
> >Just wanted to see what you think of the strictness of Buxa,
> >according to their PHP guidelines:
> >http://www.buxaprojects.com/en/php_c...guidelines.htm
> >
> >In their oppinion stuff like the short PHP init "<?" or inline echo
> >"<?= $var ?>" is forbidden.
> >Do you people code that strict?

>
> I do.


me too, that sort of code is an abomination.
Short tags are not portable and should never have been introduced and
should not remain in php6

enjoy
Kevin

--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
  Réponse avec citation
Vieux 09/09/2007, 06h01   #4
Greg Donald
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Buxa Coding Guidelines

On Sun, 9 Sep 2007, magoo wrote:
> Just wanted to see what you think of the strictness of Buxa, according to
> their PHP guidelines:
> http://www.buxaprojects.com/en/php_c...guidelines.htm
>
> In their oppinion stuff like the short PHP init "<?" or inline echo "<?= $var
> ?>" is forbidden.
> Do you people code that strict?


I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc
syntax while doing so. My scripts usually only have a single <?php
opening tag and never require any closing ?> tags.

Code that contains short open tags or instances of <?= is amatuer in my
opinion.


--
Greg Donald
Cyberfusion Consulting
http://cyberfusionconsulting.com/
  Réponse avec citation
Vieux 09/09/2007, 06h28   #5
mike
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Buxa Coding Guidelines

On 9/8/07, Greg Donald <greg@cyberfusionconsulting.com> wrote:

> I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc
> syntax while doing so. My scripts usually only have a single <?php
> opening tag and never require any closing ?> tags.
>
> Code that contains short open tags or instances of <?= is amatuer in my
> opinion.


agreed. i use echo so i can indent my code. inline php/html mix bugs me.

although handing off to a templating engine/presentation layer would
be even better of course.
  Réponse avec citation
Vieux 09/09/2007, 13h31   #6
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Buxa Coding Guidelines

magoo wrote:

> In their oppinion stuff like the short PHP init "<?" or inline echo
> "<?= $var ?>" is forbidden.
> Do you people code that strict?



Yep. If you're using XHTML you have no other option.


/Per Jessen, Zürich
  Réponse avec citation
Vieux 09/09/2007, 13h32   #7
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Buxa Coding Guidelines

Greg Donald wrote:

> On Sun, 9 Sep 2007, magoo wrote:
>> Just wanted to see what you think of the strictness of Buxa,
>> according to their PHP guidelines:
>> http://www.buxaprojects.com/en/php_c...guidelines.htm
>>
>> In their oppinion stuff like the short PHP init "<?" or inline echo
>> "<?= $var ?>" is forbidden.
>> Do you people code that strict?

>
> I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc
> syntax while doing so. My scripts usually only have a single <?php
> opening tag and never require any closing ?> tags.


I use the PHP/HTML mix - seems to make it easier for me to use apache
language-negotiation. My PHP code is language-neutral, my HTML files
aren't.


/Per Jessen, Zürich
  Réponse avec citation
Vieux 09/09/2007, 16h03   #8
Greg Donald
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Buxa Coding Guidelines

On Sat, 8 Sep 2007, mike wrote:
> although handing off to a templating engine/presentation layer would
> be even better of course.


eval() is my favorite templating engine.


--
Greg Donald
Cyberfusion Consulting
http://cyberfusionconsulting.com/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h01.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11679 seconds with 16 queries