Re: python coding contest
- From: Tim Hochberg <tim.hochberg@xxxxxxxx>
- Date: Sun, 25 Dec 2005 19:05:40 -0700
Steven D'Aprano wrote:
On Sun, 25 Dec 2005 19:14:43 -0500, rbt wrote:
Steven D'Aprano wrote:
On Sun, 25 Dec 2005 18:05:37 +0100, Simon Hengel wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I'm envisioning lots of convoluted one-liners which are more suitable to a different P-language... :-)
I feel that python is more beautiful and readable, even if you write short programs.
How about """best compromize between shortness and readibility plus elegance of design"""?
I would love to choose those criteria for future events. But I'm not aware of any algorithm that is capable of creating a ranking upon them.
What is your algorithm for determining "shortest" program? Are you counting tokens, lines or characters? Does whitespace count?
If whitespace and var names count, these things are going to be ugly :)
Yes, but the question is, is two lines and 347 characters ugly enough to win?
No. I have 8 lines and 175 chars at present. And, I expect that's gonna get beaten.
-tim
.
- Follow-Ups:
- Re: python coding contest
- From: phil_nospam_schmidt
- Re: python coding contest
- From: Justin Azoff
- Re: python coding contest
- References:
- Re: python coding contest
- From: Simon Hengel
- Re: python coding contest
- From: Steven D'Aprano
- Re: python coding contest
- From: rbt
- Re: python coding contest
- From: Steven D'Aprano
- Re: python coding contest
- Prev by Date: Re: Indentation/whitespace
- Next by Date: Re: python coding contest
- Previous by thread: Re: python coding contest
- Next by thread: Re: python coding contest
- Index(es):
Relevant Pages
|