‘Ruby is simple in appearance, but is very complex inside, just like our human body’. This quote by Yukihiro Matsumoto, the chief designer of Ruby, means a lot for Rubyists. Ruby is intuitive and beautiful but has many work secrets that you don’t realize. And knowing them will obviously make you a better developer, because if you know how it works – you’re able not only using it but are empowered to improve it! Here we collected for you some tips and methods to write a better Ruby code. Read and use!
In this article you will read about classic form of memoization in Ruby, in order to present to you further approaches that meet certain requirements which the classical form can not afford.