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

Combination Circuits/Schematics

For general discussion related FlowStone

Re: Combination Circuits/Schematics

Postby tiffy » Tue Aug 01, 2017 9:38 pm

CONVERT NUMBER "N" TO THE BASE "A" TO A DECIMAL NUMBER BASE (10) - RUBY

Examples included in the Comment attached to the Schematic.
Attachments
Convert Number - n to the Base - a to a Decimal Number Base 10 - Ruby.fsm
(1.45 KiB) Downloaded 926 times
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Combination Circuits/Schematics

Postby RJHollins » Tue Aug 01, 2017 10:33 pm

Thanks Tiffy !
8-)
RJHollins
 
Posts: 1567
Joined: Thu Mar 08, 2012 7:58 pm

Re: Combination Circuits/Schematics

Postby BobF » Wed Aug 02, 2017 4:47 am

Hi Tiffy,

Another nice one, keep them coming.

Cheers, BobF.....
BobF
 
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Combination Circuits/Schematics

Postby FlowStoner » Wed Aug 02, 2017 2:20 pm

;)
FlowStoner
 
Posts: 24
Joined: Tue Aug 01, 2017 2:03 pm

Re: Combination Circuits/Schematics

Postby tiffy » Thu Aug 03, 2017 4:39 pm

OBJECT ORIENTED PROGRAMMING (OOP) IN THE RUBY LANGUAGE.

This Anatomy in *.pdf format of how Objects and Methods works, together with the attached DSP Flowstone Ruby Examples 1 through 21, provided me with a better understanding of Object Oriented Programming (OOP) in the Ruby language and I thought that I should share this since maybe it could help other newcomers to OOP as well. This does not cover everything on Objects, Methods, or Classes but it gave me a solid starting point.

I have updated this document so it now contains 20 typed pages and 21 tested Examples that works in Flowstone. I have also corrected some typo's, coloured the headings and added some short notes of value to the original as well.

The document is not yet completed to that point where I would say stop, but I am giving it out in the meantime as it could take some time to get to that point where I say halt...I think I will stop the lorry with Ruby Classes.

Also read tulamide's written documents on the Guru website as mine is only meant for an absolute Flowstone Ruby noob like myself...still learning.
Attachments
OBJECT ORIENTED PROGRAMMING (OOP) in RUBY v1.2.rar
Updated and Corrected version 1.2 - with 21-Ruby Examples that works in Flowstone.
(368.67 KiB) Downloaded 928 times
Last edited by tiffy on Tue Aug 15, 2017 9:29 pm, edited 3 times in total.
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Combination Circuits/Schematics

Postby RJHollins » Thu Aug 03, 2017 5:06 pm

Thanks for the OOP sharing.

It's presented in an easy to follow way [for those of us with no formal].

Thanks 8-)
RJHollins
 
Posts: 1567
Joined: Thu Mar 08, 2012 7:58 pm

Re: Combination Circuits/Schematics

Postby Spogg » Fri Aug 04, 2017 8:04 am

This looks SO good Tiffy!
Thank you very much for doing this for us.

:D :D

Spogg
User avatar
Spogg
 
Posts: 3318
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Combination Circuits/Schematics

Postby tulamide » Fri Aug 04, 2017 2:42 pm

Tiffy, in your pdf you encourage other Rubyists to improve or add. So I do.

While you are right in your descriptions, the resulting code is considered bad writing. On-the-fly creation should be an exception for certain specific cases. In all other cases there's a better style. Objects are classes. You can use them as synonyms. In fact, 'Object' in Ruby is the root class, where all other classes derive from.

I made a three part series, called "Ruby Stripped" a few years ago on Flowstone Guru. It introduces the terms object, class, method, etc. It also provides graphics of applications within Flowstone, and fsm-files. Maybe it helps getting a better view over the concept of class creation/management?

Ruby Stripped, Part 1: Introduction to classes
Ruby Stripped, Part 2: Objects
Ruby Stripped, Part 3: Arrays
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Combination Circuits/Schematics

Postby tiffy » Sat Aug 05, 2017 3:09 pm

User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Combination Circuits/Schematics

Postby tulamide » Sat Aug 05, 2017 9:09 pm

You're welcome :)
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 36 guests

cron