Addicted to Ruby

For general discussion related FlowStone
Post Reply
User avatar
DaveyBoy
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Addicted to Ruby

Post 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 :(
Attachments
Array & Hash Conversions.fsm
(520 Bytes) Downloaded 855 times
anjey_olaf
Posts: 17
Joined: Wed Feb 29, 2012 12:00 pm

Re: Addicted to Ruby

Post by anjey_olaf »

Perfect!!! 8-) 8-) 8-)
Post Reply