Re: Help converting C to PHP
| From: | php at kermodebear dot org | Date: | Fri, 22 Sep 2006 17:26:08 +0000 |
| Subject: | Re: Help converting C to PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-242081@lists.php.net to get a copy of this message | ||
Hello all,
> > I personally don't think this is a very healthy contest. It
> > discourages comments, and use of whitespace to make code readable.
> Anyway... as you say, it would be nice to have a contest that rewards
> readability and maintainability... but, how can we messure that
> qualities in this type of games? Should your code be praised by others
> and voted on? Is that reliable? I think enforcing a coding style is
> too restrictive... Also, how do we measure the declarativity of var
> and function names?
For some real trouble, try the International Obsfucated C Code Contest:
http://www.ioccc.org/
These contests like Code Golf are just for fun, I can't say that they
encourage bad practice as long as you understand what the contest is
about.
That aside, I think that it would be very beneficial to the community as a
whole if a contest was started that encouraged readability and good
practices.
The scoring and judging could be done by a panel, but I think that it
would be more fun if the community itself was able to vote on various
attributes; readability, efficiency, general approach, originality, etc.
Allow people to comment on each entry. I don't know about the winner
getting anything besides bragging rights, but it if gets large enough
maybe there can be a few corporate sponsors giving away licenses or
something. Who knows?
I think it would be a lot of fun if well executed.
-K.Bear