Page 1 of 1

Learning Ruby .. from C++ any suggestions

Posted: Mon Sep 28, 2015 7:32 pm
by CodyOebel
Most of my programming knowledge is with C++ .. coming to FlowStone has prompted me to learn Ruby. I quickly google search to make sure learning Ruby is worth it. After making my own opinion I don't know why I didn't try it sooner. I'm currently using http://tryruby.org it was what popped up for ruby tutorial. However to anyone here who started from ground zero with ruby and flowstone as I have. I am open to your suggestion on what site taught you ruby in ways that helped you apply such knowledge with FlowStone.

Lastly .. I want to tap the powers of WinAPI32 in ruby as I have done in c++. How does one begin doing this ? (Maybe I'm diving in too fast first I should learn basics of Ruby before using Win API calls ? or will it just be syntax change in ruby using API calls?).

Re: Learning Ruby .. from C++ any suggestions

Posted: Mon Sep 28, 2015 8:21 pm
by tulamide
I never heard of Ruby before Flowstone. I have a programming experience with pretty much all script-like languages, uncountable BASIC dialects, Python, game-specific constructors and the like.

My first steps into Ruby were to analyse one of the examples from DSPr and checking ruby-doc.org for pretty much everything I found. I prefer to learn at my own pace, so I used google a lot for specific issues, but no teaching sites.

As long as you are already comfortable with OOP, Ruby is very easy to learn. I like that unlike C++, there's no strict formal way (.h, .cpp, .rc, etc.), but rather it's left to you to organize your code as you prefer.

I would recommend to get comfortable with Ruby before making use of API calls. They use Ruby specific data types that you should be familiar with.

Re: Learning Ruby .. from C++ any suggestions

Posted: Tue Sep 29, 2015 1:09 pm
by CoreStylerz
I think Flowstone to be not the best way to learn Ruby. FS just use ruby in a "script", "no-paradigm" way that no one would recommend. Just my 2cents

Re: Learning Ruby .. from C++ any suggestions

Posted: Tue Sep 29, 2015 9:25 pm
by CodyOebel
Thank you all for your contributing statements and advise. Aside from teaching myself ruby programming. I am teaching my 8yr old son Raiden. I got him started with basic web-design using word-press, but I want him to get his hands dirty with "Code". His website is www.RaidenScience.com ... Thus far tryruby.org seems to be quite a fun learning site. Personally for myself I guess I stubbornly teach myself everything from bottom up.

DSPRobotics has a "Klionge game" that I believe Carl Owens made a brief video of. In it.. is much ruby code. So before I try to teach my 8yr old son how to use flow-stone I felt it would benefit him to know a bit of ruby, so he can edit ruby code when making FlowStone projects.

I for myself just downloaded a ruby windows installer. My reasons nothing more than to learn all about Ruby. I have to say being a C++ novice programmer. Ruby just .. "Makes sense" ... it's such a practical language how can you not love ruby lol.

Re: Learning Ruby .. from C++ any suggestions

Posted: Wed Sep 30, 2015 8:02 am
by CoreStylerz
I found really interesting Ror (Ruby on rails) framework as a web ruby implementation. But i think Java is much better for making desktop apps and learning since the JVW is very powerful and the language itself its strictly OOP. for a learning purpose, i'll go to Java. It's really easy then to implement every OOP aspects in all languages like ruby, php, c# or een c++ if you have a good knowledge of Java.
The support of ide's like eclipse for Java is outstanding. :twisted:
And making audio apps with total ruby (even with c calls) will not be faster than Java (it can also be worse :oops: ).

Since your son is really young, will be cool for him to learn some Javascript and PHP; they cover the basic client/server application (for web) and it's kind fast to have something done in minutes and say Yeah!

Especially Javascript, now is really @ the Top. It's used for dynamic websites including server side (node.js for example) and for making Mobile web apps (PhoneGap) and games (Unity ;)).

I personally don't like so much Ruby syntax, i rather prefer c derived syntax like java, php or Js. (e.g. Curly brackets, assigments, methods etc)

Re: Learning Ruby .. from C++ any suggestions

Posted: Sat Nov 21, 2015 2:53 am
by Mr. Mac Snoer
I am also teaching myself Ruby and object oriented programming in general.

For kids I would like to advise a playfull programming language called "Scratch"." Google Blockly copied the concept.
https://vimeo.com/65583694

The video is just to funny and shows what Scratch is all about. :lol: