I’ve never tried to start a meme before, but since I don’t really have anything great to post about, I’d like to try to start one. I think this one could be particularly fun because it encourages implementation of a basic program in many different languages.
Rules:
- Implement a program that takes in a user’s name and their age, and prints hello to them once for every year that they have been alive.
- Post these rules, the source code for your solution, and the following list (with you included) on your blog.
- Bonus points if you implement it in a language not yet seen on the following list!
The List:
- [Python] http://www.eflorenzano.com/blog/post/trying-start-programming-meme
- [Bash] http://aartemenko.com/texts/bash-meme/
- [C] http://dakrauth.com/media/site/text/hello.c
- [Java] http://adoleo.com/blog/2008/nov/25/programming-meme/
- [Python 3] http://mikewatkins.ca/2008/11/25/hello-meme/
- [Ruby] http://stroky.l.googlepages.com/gem
- [Ruby] http://im.camronflanders.com/archive/meme/
- [Lisp] http://justinlilly.com/blog/2008/nov/25/back-on-the-horse/
- [Lua] http://aartemenko.com/texts/lua-hello-meme/
- [Functional Python] http://aartemenko.com/texts/python-functional-hello-meme/
- [Erlang] http://surfacedepth.blogspot.com/2008/11/erics-programming-meme-in-erlang.html
- [Haskell] http://jasonwalsh.us/meme.html
- [PHP] http://fitzgeraldsteele.wordpress.com/2008/11/25/memeing-in-php-2/
- [Javascript] http://www.taylanpince.com/blog/posts/responding-to-a-programming-meme/
- [Single-File Django] http://www.pocketuniverse.ca/archive/2008/november/27/florenzano-factor/
(…and make sure to check out the comments on this post for some other fun implementations!)
And here’s my implementation:
1 2 3 4 5 | |
And its output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
Well there you have it, my attempt at a programming meme. I hope someone enjoys it!