Long code can be intimidating for both a novice as well as a professional. Once you add unreadable indentation, lack of comments, and redundant logic - long sections of code can become a nightmare to use and maintain. This website was created to address the long code problem by providing short solutions to common problems. Simply explore our collection of code snips and use them in your own projects.How short is your code?
There are many places on the Internet that publish interesting source code, often much longer than 64 lines - so what drove me to create such a restriction on my code? I was always a minimalist: I use the Linux window manager ion, my source editor of choice is vim, and I use SSH to administer this site. The initial idea for 64 Lines came to me after exploring the code of Ambassador Of Pain, a console game written in under 64 lines. The source code for AOP taught me a few new tricks with if statements and loops, inspiring me to create a minimalist collection of useful source code.
_________________________________________ / 'Cow says: Thank you for visiting. You \ | are browsing: 64 Lines, useful source | | code in just a few lines. You have been | \ to 1 pages on this site today.' / ----------------------------------------- \ ,__, \ (oo)____ (__) )\ ||--|| *
All article content is copyright of Michael Petrov, 2006©.
The source code presented in the articles is distributed as freeware, please feel free to use it in your own projects - both commercial and non commercial.