How to write specification

Hi,

I've been programing for some time, but I never tried to write code
for two different application in same way. How when I work with more
programmers it's even worse. Everyone is forcing it's way of writing
functions inside classes or writing variables, etc. My idea is to code
according to the standard protocol so that in future it would be
easier to make applications. Is there some specification (or standard)
how to write code for web application, but which describes all
possibilities(writing css, JS, php, etc.)?

Thanks in advance,
Dusan

--
made by ndusan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dusan Novakovic [ Fr, 08 Januar 2010 10:05 ] [ ID #2028180 ]

Re: How to write specification

2010/1/8 Du=C5=A1an Novakovi=C4=87 <ndusan [at] gmail.com>:

> I've been programing for some time, but I never tried to write code
> for two different application in same way. How when I work with more
> programmers it's even worse. Everyone is forcing it's way of writing
> functions inside classes or writing variables, etc. My idea is to code
> according to the standard protocol so that in future it would be
> easier to make applications. Is there some specification (or standard)
> how to write code for web application, but which describes all
> possibilities(writing css, JS, php, etc.)?

Specification and coding standard are two different things... I think
you're looking for a coding standard. Some helpful links:

http://framework.zend.com/manual/en/coding-standard.html
http://pear.php.net/manual/en/standards.php
http://drupal.org/coding-standards
http://www.dagbladet.no/development/phpcodingstandard/ [last updated
2003 - obsolete?]

Pick one (at random if necessary) and don't make any changes. Changes
imply discussion, and discussion is a waste of time.

You can enforce a coding standard, should you so wish, at repository level:

http://pear.php.net/manual/en/package.php.php-codesniffer.in tro.php
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create .html#svn.repos=
admin.create.hooks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David Otton [ Fr, 08 Januar 2010 10:32 ] [ ID #2028181 ]
PHP » gmane.comp.php.general » How to write specification

Vorheriges Thema: trying to launch kate from the browser....
Nächstes Thema: Site Moved From PHP4 to PHP5 Server - header, location no longer working