Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Addicted to Ruby

For general discussion related FlowStone

Addicted to Ruby

Postby DaveyBoy » Fri May 04, 2018 10:53 pm

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 792 times
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Addicted to Ruby

Postby anjey_olaf » Sat May 05, 2018 8:01 am

Perfect!!! 8-) 8-) 8-)
anjey_olaf
 
Posts: 17
Joined: Wed Feb 29, 2012 12:00 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 65 guests