Combination Circuits/Schematics

For general discussion related FlowStone
User avatar
tiffy
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Combination Circuits/Schematics

Post by tiffy »

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 1044 times
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Combination Circuits/Schematics

Post by RJHollins »

Thanks Tiffy !
8-)
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Combination Circuits/Schematics

Post by BobF »

Hi Tiffy,

Another nice one, keep them coming.

Cheers, BobF.....
FlowStoner
Posts: 24
Joined: Tue Aug 01, 2017 2:03 pm

Re: Combination Circuits/Schematics

Post by FlowStoner »

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

Re: Combination Circuits/Schematics

Post by tiffy »

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 1043 times
Last edited by tiffy on Tue Aug 15, 2017 9:29 pm, edited 3 times in total.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Combination Circuits/Schematics

Post by RJHollins »

Thanks for the OOP sharing.

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

Thanks 8-)
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Combination Circuits/Schematics

Post by Spogg »

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

:D :D

Spogg
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Combination Circuits/Schematics

Post by tulamide »

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)
User avatar
tiffy
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Combination Circuits/Schematics

Post by tiffy »

tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Combination Circuits/Schematics

Post by tulamide »

You're welcome :)
"There lies the dog buried" (German saying translated literally)
Post Reply