What is the best and complete book for ruby.
To be specific I want to learn the following things apart from
understanding the language:
- thread handling.
- Code efficiency, i.e. the time-cost of each instruction.
What is the best and complete book for ruby.
To be specific I want to learn the following things apart from
understanding the language:
hi,
pickaxe… if you know anther language you are fine ![]()
On 11 Αυγ 2012, at 23:23 , ajay paswan [email protected] wrote:
What is the best and complete book for ruby.
To be specific I want to learn the following things apart from
understanding the language:
- thread handling.
- Code efficiency, i.e. the time-cost of each instruction.
–
Posted via http://www.ruby-forum.com/.
Panagiotis A.
ajay paswan wrote in post #1072056:
What is the best and complete book for ruby.
To be specific I want to learn the following things apart from
understanding the language:
- thread handling.
- Code efficiency, i.e. the time-cost of each instruction.
I would agree with Pickaxe, a.k.a. Programming Ruby - 2nd edition if you
are using 1.8, 3rd edition if you are using 1.9. The 1st edition is
online for free:
http://ruby-doc.org/docs/ProgrammingRuby/
As for “the time-cost of each instruction” you’re not going to get much
help from any book. You need to profile your code - e.g. using the
Benchmark library or ruby-prof; identify where the hot-spots are, and
then optimise.
Ruby is a dynamic language and it all boils down to method dispatch.
e.g.
a + b
is exactly the same as a.+(b), or a.send(:+, b)
If you have a hotspot which you can’t improve using Ruby, then you can
always rewrite that part in C using the RubyInline gem.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs