Other Software > Developer's Corner
Code Koans
ewemoa:
Summary List
* Ruby
* JavaScript 1, 2
* CoffeeScript
* Clojure
* Scala
* Python
Trying out the Ruby Koans:
http://rubykoans.com/
Short video mentioning them and similar approaches for Clojure, Scala, and JavaScript:
http://www.youtube.com/watch?v=mG6NsCIRKAk
Some bits from the video to get a sense of the flow:
1. Download, extract, run tests (assuming Ruby is installed):
Code Koans
2. Look at test results:
Code Koans
3. Examine relevant code:
Code Koans
4. Change code appropriately (trying things in irb and reading docs first if necessary):
Code Koans
5. Run tests again and look at results:
Code Koans
6. Repeat...
Link from the video with some details of the four:
https://bit.ly/code_koans
ewemoa:
Found some Python ones.
There's a version for Python 2.x (python 2 folder) and one for Python 3.x (python 3 folder).
I used the "get source" near the top right of the aforementioned page to get an archive of the relevant files.
about colorSeems to work fine on Windows :)
ewemoa:
Color output for the locally installed (2010-12-23) Ruby Koans seems to work now. The following steps were performed toward this end:
1. Install the win32console gem (adapted instructions from: https://github.com/oneclick/rubyinstaller/wiki/development-kit):
--- ---gem install win32console --platform=ruby
2. Apply the following changes to edgecase.rb:
https://github.com/edgecase/ruby_koans/commit/a53c815da0af5974cd5bcd8bb38bc3f66742715b
Attached is an updated version of edgecase.rb.
edgecase.rb.zip (3.86 kB - downloaded 255 times.)
Ruby VersionThis was all for a Ruby (1.9.3) .7z-based installation + DevKit obtained via:
http://rubyinstaller.org/downloads/
ewemoa:
Somehow I'm finding the colors too dark on my screen and the line numbers hard to see. Didn't figure out anything for the former point, but made a quick hack to make (some?) line numbers stand out.
Attached are a patch and patched file including the earlier win32console color-enabling along with "line numbers standing out" behavior. The rest of a colored line with a line number turns white, but that doesn't seem to be a problem visually to me.
koans-color-and-line-number-color.zip (0.77 kB - downloaded 239 times.)
edgecase.zip (3.98 kB - downloaded 259 times.)
jgpaiva:
Found some Python ones.
There's a version for Python 2.x (python 2 folder) and one for Python 3.x (python 3 folder).
I used the "get source" near the top right of the aforementioned page to get an archive of the relevant files.
-ewemoa (December 04, 2011, 12:21 AM)
--- End quote ---
Thanks! I've been playing with this and finding it amusing :)
Navigation
[0] Message Index
[#] Next page
Go to full version