P2P In 15 Lines of Code
nile_list writes "Edward Felten of the very fine Freedom to Tinker has written a 15 line P2P program in Python. From the post on Freedom to Tinker, "I wrote TinyP2P to illustrate the difficulty of regulating peer-to-peer applications. Peer-to-peer apps can be very simple, and any moderately skilled programmer can write one, so attempts to ban their creation would be fruitless." Matthew Scala, a reader of Freedom to Tinker, has responded with the 9 line MoleSter, written in Perl."
in one line of code? I have seen object oriented versions of hello world... http://laguna.fmedic.unam.mx/~daniel/pygtutorial/p ygtutorial/x101.html
Is this a first post?
just a web application developer and instructor in Toronto, ON Canada
I'm waiting for the mod chip for my game console.
"Can there be a Klein bottle that is an efficient and effective beer pitcher?"
The fact that it's only 15 lines long, doesn't really say anything. How efficient is it? I've fallen into that trap before. Given the same language, a program isn't necessarily more efficient because it has fewer lines. Did you use a vector when a simple array would have worked? Even better, screw using multiple files, because then you don't have to include any inheritance or extra lines for accessing variables in another file. Just create programs with one file. I'm not trying to insinuate that I'm the programming god, but there is sometimes a difference between a well crafted program and a program with a small codebase.