Trying to Start a Programming Meme
Eric Florenzano - - November 25, 2008I’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:
name = raw_input('Please enter your name: ')
age = int(raw_input('Please enter your age: ')) for i in xrange(age): print "-) Hello, %s" % (i, name)
And its output:
Please enter your name: Eric Florenzano
Please enter your age: 22 0) Hello, Eric Florenzano 1) Hello, Eric Florenzano 2) Hello, Eric Florenzano 3) Hello, Eric Florenzano 4) Hello, Eric Florenzano 5) Hello, Eric Florenzano 6) Hello, Eric Florenzano 7) Hello, Eric Florenzano 8) Hello, Eric Florenzano 9) Hello, Eric Florenzano
10) Hello, Eric Florenzano
11) Hello, Eric Florenzano
12) Hello, Eric Florenzano
13) Hello, Eric Florenzano
14) Hello, Eric Florenzano
15) Hello, Eric Florenzano
16) Hello, Eric Florenzano
17) Hello, Eric Florenzano
18) Hello, Eric Florenzano
19) Hello, Eric Florenzano
20) Hello, Eric Florenzano
21) Hello, Eric Florenzano
Well there you have it, my attempt at a programming meme. I hope someone enjoys it!
Categories: Blogs Eric Florenzano
Comments
No comments so far, you could be the first.Add comment
Erlang on Twitter
» dooridho (Ridho Septiansyah): Hha kirimlah boy nak jadiin DP :D “@doni_erlang: Mantap” boy,haha RT @dooridho: @doni_erlang boy poto kemaren gimano :D”
» doni_erlang (Dony Erlangga): Mantap” boy,haha RT @dooridho: @doni_erlang boy poto kemaren gimano :D
» dooridho (Ridho Septiansyah): @doni_erlang boy poto kemaren gimano :D
» 9renpoto (Keisuke Kan): EndingがErlangに見えるぐらいに視力落ちてる
» doni_erlang (Dony Erlangga): Otak lo yg lemot bro haha RT @rudyprasetio: Lemot amatt ni…
» dtoader (Dragos Toader): Building Erlang OTP R15B from source in cygwin http://t.co/JhSzPZLY
» erlang_jazz (erlang): Siang menyengat..panas!!@aiaryuki
» erlang_jazz (erlang): Galau dong
» rei_erlang (reiner erlang): RT @PEPATAHKU: Jangan datang pada cinta untuk mencari org yg sempurna, krna itu bisa membuatmu salah dlm menentukan pilihanmu (⌣́_⌣̀)
» ferdymaulana (Fernady Ihmed M): Di hapus RT @GianPratamaP: Alah njalok o erlang RT”@ferdymaulana: Aseeem tobat ge aku wes an ! (cont) http://t.co/KffejaMk
Statistics
Number of aggregated posts: 10504
Number of comments: 2145
Most recent article: May 21, 2012
Latest comments
» sunshine on We Who Value Simplicity Have Built Incomprehensible Machines: How to Get Free Credit Scores Having good credit is imperative in today’s world. There are so many things you…
» cheap stickers printings on A Forgotten Principle of Compiler Design: I really like your way of expressing the opinions and sharing the information. It is good to move as chance…
» jamesmathew on This is Why You Spent All that Time Learning to Program: This could be a good achievement for the small area to have a personal news channel and could really help…