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
2 posts
• Page 1 of 1
Addicted to Ruby
I think I'm getting addicted to Ruby , I think it's absolutely brilliant.
Example:
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?
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
Example:
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?
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
-
DaveyBoy - Posts: 131
- Joined: Wed May 11, 2016 9:18 pm
- Location: Leeds UK
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 38 guests