I was playing around on RosettaCode today -- that site lists a number of "common programming tasks" along with their implementation in multiple languages -- and did half a dozen of the problems listed there. Ones I've done are:
Knuth's Man or Boy closure example
Bulls and Cows, like mastermind
an RLE encoder
Roman numerals
Sierpinski's carpet
ZigZag array access
These are all small, one-page examples. Take a look at my translations, and feel free to show how to do it better. :-)
brianTue 5 May 2009
I looked at them briefly and they looked pretty good to me.
Are you going to post them to the site? The more Fan out there, the better!
KevinKelleyTue 5 May 2009
Yeah, it seems like a good way to show off cool things Fan can do.
cbeustWed 6 May 2009
Kevin, I think your sources would be easier to read if you allowed your web site to display them with a larger width...
KevinKelleyWed 6 May 2009
I'm sure you're right; I'm still playing with layout.
mr_beanSat 9 May 2009
These are nicely done. One small suggestion, in RLE, I would rename last to previous or prev to avoid the ambiguity of last (previous or final?)
KevinKelleySat 9 May 2009
added some documentation, to clarify...
MichaelMolSun 12 Jul 2009
Rosetta Code is my site, and I'd love it if you folks would come by and add more Fan examples. I explicitly allow and endorse language advocacy, so long as it takes the form of source code. (See my user page , if you're unsure.)
Heck, it's always a good day for me when someone new adds examples, and even better when someone adds examples in a language not well represented. If you're wondering what's left to do, try the list of unimplemented tasks in Fan. Don't let that minimum penetration box scare you; Some of my users got a little carried away with some old ideas of mine while I was stuck at work working overtime.
KevinKelley Tue 5 May 2009
I was playing around on RosettaCode today -- that site lists a number of "common programming tasks" along with their implementation in multiple languages -- and did half a dozen of the problems listed there. Ones I've done are:
Man or Boy
closure exampleBulls and Cows
, like mastermindThese are all small, one-page examples. Take a look at my translations, and feel free to show how to do it better. :-)
brian Tue 5 May 2009
I looked at them briefly and they looked pretty good to me.
Are you going to post them to the site? The more Fan out there, the better!
KevinKelley Tue 5 May 2009
Yeah, it seems like a good way to show off cool things Fan can do.
cbeust Wed 6 May 2009
Kevin, I think your sources would be easier to read if you allowed your web site to display them with a larger width...
KevinKelley Wed 6 May 2009
I'm sure you're right; I'm still playing with layout.
mr_bean Sat 9 May 2009
These are nicely done. One small suggestion, in RLE, I would rename
last
toprevious
orprev
to avoid the ambiguity of last (previous or final?)KevinKelley Sat 9 May 2009
added some documentation, to clarify...
MichaelMol Sun 12 Jul 2009
Rosetta Code is my site, and I'd love it if you folks would come by and add more Fan examples. I explicitly allow and endorse language advocacy, so long as it takes the form of source code. (See my user page , if you're unsure.)
Heck, it's always a good day for me when someone new adds examples, and even better when someone adds examples in a language not well represented. If you're wondering what's left to do, try the list of unimplemented tasks in Fan. Don't let that minimum penetration box scare you; Some of my users got a little carried away with some old ideas of mine while I was stuck at work working overtime.