How to write specification

How to write specification

am 08.01.2010 10:05:49 von Dusan Novakovic

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

Re: How to write specification

am 08.01.2010 10:32:38 von David Otton

2010/1/8 Dušan Novaković :

> 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