Page 1 of 1

Addicted to Ruby

Posted: Fri May 04, 2018 10:53 pm
by DaveyBoy
I think I'm getting addicted to Ruby , I think it's absolutely brilliant.

Example:

Image

I have the usual nested arrays of notes and thought I'd convert to a hash to see if it performed better, I managed to do it with one line of code. Then just for fun I thought I'd try and convert it back again, also managed to do it with one line of code. The conversion back to array has no less than five operations in one line!

Having said that I'm betting there are better ways to do this. I'm still a novice with this so I'd be interested to see how the experts on here would do it.

Isn't Ruby great? :D

PS The Forum will only let me upload pics up to 400 pixels wide, I thought I read on here recently that the limit was 650 pixels :(

Re: Addicted to Ruby

Posted: Sat May 05, 2018 8:01 am
by anjey_olaf
Perfect!!! 8-) 8-) 8-)