4 ms·
The Ruby Refresher
- methoddk 15y agoAwesome! This will help in my learning ruby from Python, thanks!
- RegEx 15y agoFor syntax comparisons to help you go from Python -> Ruby, you can check out http://hyperpolyglot.org/scripting http://hyperpolyglot.org/scripting
- aeden 15y agoThis is quite cool. I'd love to see other languages. For example, I haven't written Python in a while - it'd be great to have a refresher for it.
- jbverschoor 15y agoNice... please add this to exceptions: def hello rescue end
- techiferous 15y agoAlso useful: a comparison of languages, cookbook style: http://pleac.sourceforge.net/ http://pleac.sourceforge.net/
- rauljara 15y agoThis is wrong: primes = [2, 3, 5, 7] puts primes[0..3] # => [2, 3, 5] It actually outputs [2, 3, 5, 7]. I believe the author meant to write: puts primes[0...3] # => [2, 3, 5] Had trouble finding an email on his blog page. Hopefully the author is reading here.
- petercooper 15y ago[0, 3] could also have that behavior (3 elements from 0)
- bradly 15y agoIt's on Github, so you can send a pull request here: https://github.com/0xfe/rubyrefresher https://github.com/0xfe/rubyrefresher
- teamonkey 15y agoVery nice. But it would be helpful to see the output too, perhaps on the right side of the screen.
- pw 15y agoA good companion to, and maybe a replacement for, the Ruby QuickRef (http://www.zenspider.com/Languages/Ruby/QuickRef.html http://www.zenspider.com/Languages/Ruby/QuickRef.html).