Page 12 of 27
Re: Combination Circuits/Schematics
Posted: Tue Aug 01, 2017 9:38 pm
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.
Re: Combination Circuits/Schematics
Posted: Tue Aug 01, 2017 10:33 pm
by RJHollins
Thanks Tiffy !

Re: Combination Circuits/Schematics
Posted: Wed Aug 02, 2017 4:47 am
by BobF
Hi Tiffy,
Another nice one, keep them coming.
Cheers, BobF.....
Re: Combination Circuits/Schematics
Posted: Wed Aug 02, 2017 2:20 pm
by FlowStoner
Re: Combination Circuits/Schematics
Posted: Thu Aug 03, 2017 4:39 pm
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.
Re: Combination Circuits/Schematics
Posted: Thu Aug 03, 2017 5:06 pm
by RJHollins
Thanks for the OOP sharing.
It's presented in an easy to follow way [for those of us with no formal].
Thanks

Re: Combination Circuits/Schematics
Posted: Fri Aug 04, 2017 8:04 am
by Spogg
This looks SO good Tiffy!
Thank you very much for doing this for us.
Spogg
Re: Combination Circuits/Schematics
Posted: Fri Aug 04, 2017 2:42 pm
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 classesRuby Stripped, Part 2: ObjectsRuby Stripped, Part 3: Arrays
Re: Combination Circuits/Schematics
Posted: Sat Aug 05, 2017 3:09 pm
by tiffy
Re: Combination Circuits/Schematics
Posted: Sat Aug 05, 2017 9:09 pm
by tulamide
You're welcome
