Computer Science Canada World's Shortest P2P app |
Author: | Martin [ Fri Jan 07, 2005 8:01 am ] | ||
Post subject: | World's Shortest P2P app | ||
Weighing in at 15 lines of python code:
http://www.freedom-to-tinker.com/tinyp2p.html Nifty, eh? And yes, I read slashdot. |
Author: | wtd [ Fri Jan 07, 2005 3:28 pm ] | ||
Post subject: | |||
6 lines of Ruby:
|
Author: | Tony [ Fri Jan 07, 2005 8:35 pm ] |
Post subject: | |
Ruby is awesome why is there inside the Python syntax? |
Author: | wtd [ Fri Jan 07, 2005 8:38 pm ] | ||
Post subject: | |||
Because Martin didn't disable graphical smileys when he posted. And the syntax tag doesn't wrap code in
|
Author: | rizzix [ Fri Jan 07, 2005 11:21 pm ] |
Post subject: | |
the problem here wtd is that ruby uses a semicolon to denote an end of statement. hence u cant really compare. |
Author: | Martin [ Fri Jan 07, 2005 11:22 pm ] |
Post subject: | |
Who edited my post? Grr... |
Author: | wtd [ Fri Jan 07, 2005 11:27 pm ] |
Post subject: | |
rizzix wrote: the problem here wtd is that ruby uses a semicolon to denote an end of statement. hence u cant really compare.
Not Ruby's fault that Python syntax can't do the same. |
Author: | rizzix [ Fri Jan 07, 2005 11:28 pm ] |
Post subject: | |
edit: well u could still compare # of statements. just wait till i post my perl code.. pfft. pwnage.. edit:edit: i can't find it darn it |
Author: | wtd [ Fri Jan 07, 2005 11:45 pm ] | ||
Post subject: | |||
No semi-colons, whiner, and slightly cleaned up. And it's 11 lines, sans comments.
|