iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> How to use Ruby
poker158149
post Oct 12 2008, 06:50 AM
Post #1


The useless one.
Group Icon


Type: Coder
Alignment: Lawful Neutral




Are you like me?

Dying to learn Ruby?

Well, I did a little research and found a nice tutorial.

http://tryruby.hobix.com/


And the website of Ruby,

http://www.ruby-lang.org/en/

-------------------------------------------------------------------------------------------------

Thanks for the find, GrandmaDeb!

QUOTE
http://www.ruby-doc.org/docs/ProgrammingRuby/

Check out this free, online copy of the book, Programming Ruby: the Pragmatic Programmer's Guide


-------------------------------------------------------------------------------------------------


Awesome finds, ERZENGEL

QUOTE



-------------------------------------------------------------------------------------------------

This post has been edited by poker158149: Oct 19 2008, 07:55 PM


--------------------
Kav has a confession.
Spoiler:
<Pyro> um
<Pyro> kav
<Pyro> why
<Pyro> are you using UK youtube
<Kav> uh..
<Kav> i have a confession
<C7> eww UK. get me off!
<Kav> i'm... actually british
* Jeff vomits
<Pyro> ..
<Kav> :x
<Pyro> gtfo
<Kav> :x@reactions
* C7 looks for a weapon
<Jeff> GET OUT OF HERE LIMEY
<Jeff> THIS IS AN AMERICAN CHATROOM

Go to the top of the page
 
+Quote Post
   
Anaxim
post Oct 12 2008, 07:39 AM
Post #2


Captain Paradox Extreme
Group Icon


Type: Undisclosed
Alignment: Chaotic Neutral




Played around with try ruby for a bit.
I'll be damned, that one is awesome.
Good work finding these.


--------------------
"Lightning is like a troll; You don't know what hit you till you smell it."

I will only say a single thing about my acquisition of RPG Maker VX: "Yarr."
Go to the top of the page
 
+Quote Post
   
Leventhan
post Oct 12 2008, 11:33 AM
Post #3


<insert member title here bleep>
Group Icon






I strongly encourage the first link. Nice find.


--------------------
Go to the top of the page
 
+Quote Post
   
GrandmaDeb
post Oct 12 2008, 01:02 PM
Post #4


Retired
Group Icon


Type: Undisclosed
Alignment: Unaligned




Woo Hoo!
Now that is something I can use - a hundred thanks! biggrin.gif

'!sknaht'.reverse
'thanks'


--------------------
Go to the top of the page
 
+Quote Post
   
poker158149
post Oct 12 2008, 05:41 PM
Post #5


The useless one.
Group Icon


Type: Coder
Alignment: Lawful Neutral




Glad you guys like it! ^^


--------------------
Kav has a confession.
Spoiler:
<Pyro> um
<Pyro> kav
<Pyro> why
<Pyro> are you using UK youtube
<Kav> uh..
<Kav> i have a confession
<C7> eww UK. get me off!
<Kav> i'm... actually british
* Jeff vomits
<Pyro> ..
<Kav> :x
<Pyro> gtfo
<Kav> :x@reactions
* C7 looks for a weapon
<Jeff> GET OUT OF HERE LIMEY
<Jeff> THIS IS AN AMERICAN CHATROOM

Go to the top of the page
 
+Quote Post
   
bammurdo
post Oct 12 2008, 07:43 PM
Post #6


purple rocks
Group Icon






wait .. is ruby case sensitve??


--------------------
Projects
» Click to show Spoiler - click again to hide... «




Go to the top of the page
 
+Quote Post
   
GrandmaDeb
post Oct 12 2008, 07:46 PM
Post #7


Retired
Group Icon


Type: Undisclosed
Alignment: Unaligned




Case sensitive - yes.
Try it! wink.gif
Dir is not the same as dir (didn't work did it?) wink.gif

Also, if you accidentally put "honeydew' (mismatched quote marks) you will need to reset.


--------------------
Go to the top of the page
 
+Quote Post
   
BigEd781
post Oct 12 2008, 07:48 PM
Post #8


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




Strings are case sensitive in any language. 'A' does not have the same ascii value as 'a'. They are not the same. Of course, not all languages are semantically case sensitive. For example, in VB, a variable named "var" is the same as "Var" and "vAr". There are and always will be two groups of thought on this topic. I prefer case sensitivity personally.


--------------------
My blog - It's awesome, I assure you
QUOTE
While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond

---
My awards for being so awesome
Spoiler:
Go to the top of the page
 
+Quote Post
   
poker158149
post Oct 12 2008, 10:38 PM
Post #9


The useless one.
Group Icon


Type: Coder
Alignment: Lawful Neutral




I see I've started a discussion on Ruby.

Mods, should this be moved to General Discussion?


--------------------
Kav has a confession.
Spoiler:
<Pyro> um
<Pyro> kav
<Pyro> why
<Pyro> are you using UK youtube
<Kav> uh..
<Kav> i have a confession
<C7> eww UK. get me off!
<Kav> i'm... actually british
* Jeff vomits
<Pyro> ..
<Kav> :x
<Pyro> gtfo
<Kav> :x@reactions
* C7 looks for a weapon
<Jeff> GET OUT OF HERE LIMEY
<Jeff> THIS IS AN AMERICAN CHATROOM

Go to the top of the page
 
+Quote Post
   
Mr. Anonymous
post Oct 13 2008, 06:59 AM
Post #10



Group Icon


Type: Undisclosed
Alignment: Unaligned




Not at all, unless someone disagrees. RGSS2 was created in Ruby, therefore, further knowledge of the base engine is furthering that knowledge-base - is a welcome addition to this board in particular, especially given the amount of topics that request information on RGSS2 and Ruby.
Go to the top of the page
 
+Quote Post
   
bammurdo
post Oct 13 2008, 08:24 PM
Post #11


purple rocks
Group Icon






ooh .. i see .. like in ascii , a = .. sumert like 60(i dont really know) and A = something like 170 :smile.gif thank ... smile.gif

quick edit:
big ed?? how long did it take for you to learn it ?? .. roughly? tongue.gif
bam

This post has been edited by bammurdo: Oct 13 2008, 08:26 PM


--------------------
Projects
» Click to show Spoiler - click again to hide... «




Go to the top of the page
 
+Quote Post
   
Locust
post Oct 13 2008, 08:36 PM
Post #12


Ever-Present, Ever-Lurking Mad Scientist
Group Icon


Type: Undisclosed
Alignment: True Neutral




Wow. This is actually pretty useful. But my ADD kicks in somewhere around the part with those "{}" things.


--------------------
<signature>
Go to the top of the page
 
+Quote Post
   
bammurdo
post Oct 13 2008, 08:38 PM
Post #13


purple rocks
Group Icon






hashes?? - tongue.gif .. awsome memory haha

This post has been edited by bammurdo: Oct 13 2008, 08:40 PM


--------------------
Projects
» Click to show Spoiler - click again to hide... «




Go to the top of the page
 
+Quote Post
   
BigEd781
post Oct 13 2008, 08:44 PM
Post #14


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




QUOTE (bammurdo @ Oct 13 2008, 01:42 PM) *
ooh .. i see .. like in ascii , a = .. sumert like 60(i dont really know) and A = something like 170 :smile.gif thank ... smile.gif

quick edit:
big ed?? how long did it take for you to learn it ?? .. roughly? tongue.gif
bam


I am always learning smile.gif. It didn't take me long at all to pick up ruby because I am a software developer by trade. I write software for a medical device company which can get pretty tricky at times. Once you know how to program and have a good grounding in basic computer science concepts, licking up a new language is very simple. You are really only learning syntax, which only takes a couple of days (unless you are going from imperative to functional programming or vice versa. That is tough). Of course, this doesn't mean that I know all of the semantics and tricks of ruby, far from it. But once you learn how to program in general it is never hard to pick up a new language that uses similar concepts.

EDIT:
QUOTE (bammurdo @ Oct 13 2008, 01:56 PM) *
hashes?? - tongue.gif .. awsome memory haha


Curly braces denote code blocks. They are not specific to hashes, but are used to create them explicitly. For example:

CODE
array.foreach {|x| x += 1}


What you are doing is creating a lambda or anonymous function and passing that as the argument to foreach (a function itself which is actually an iterator. It is used to hide the implementation details of looping through a collection of a certain type). The curly braces denote the beginning and end of the function.

This post has been edited by BigEd781: Oct 13 2008, 08:48 PM


--------------------
My blog - It's awesome, I assure you
QUOTE
While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond

---
My awards for being so awesome
Spoiler:
Go to the top of the page
 
+Quote Post
   
GrandmaDeb
post Oct 13 2008, 10:06 PM
Post #15


Retired
Group Icon


Type: Undisclosed
Alignment: Unaligned




Trouble is, Ed, that I don't know of any source for finding things I would expect from a manual.

This little bit of a tut gets you started, but it ends pretty soon!

Nonetheless, it is a good place to start...


--------------------
Go to the top of the page
 
+Quote Post
   
BigEd781
post Oct 13 2008, 10:38 PM
Post #16


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




I tought myself to program by simply doing it and looking for resources when I hit a wall. YOu really just need to write as much code as possible.


--------------------
My blog - It's awesome, I assure you
QUOTE
While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond

---
My awards for being so awesome
Spoiler:
Go to the top of the page
 
+Quote Post
   
GrandmaDeb
post Oct 14 2008, 11:01 AM
Post #17


Retired
Group Icon


Type: Undisclosed
Alignment: Unaligned




Oh joy! Oh bliss! Oh Wonder of Wonders!

http://www.ruby-doc.org/docs/ProgrammingRuby/

Check out this free, online copy of the book, Programming Ruby: the Pragmatic Programmer's Guide

I am in Grandmotherly Heaven!!!!!!!


--------------------
Go to the top of the page
 
+Quote Post
   
poker158149
post Oct 15 2008, 03:48 AM
Post #18


The useless one.
Group Icon


Type: Coder
Alignment: Lawful Neutral




Thanks Grandma!

I'll throw that link in with the others, crediting you with the find of course.


--------------------
Kav has a confession.
Spoiler:
<Pyro> um
<Pyro> kav
<Pyro> why
<Pyro> are you using UK youtube
<Kav> uh..
<Kav> i have a confession
<C7> eww UK. get me off!
<Kav> i'm... actually british
* Jeff vomits
<Pyro> ..
<Kav> :x
<Pyro> gtfo
<Kav> :x@reactions
* C7 looks for a weapon
<Jeff> GET OUT OF HERE LIMEY
<Jeff> THIS IS AN AMERICAN CHATROOM

Go to the top of the page
 
+Quote Post
   
GrandmaDeb
post Oct 19 2008, 05:23 PM
Post #19


Retired
Group Icon


Type: Undisclosed
Alignment: Unaligned




Okay, this is gonna be an all-time stupidest question award winner, but here goes...

I downloaded Ruby onto my PC.

Where the heck is the compiler?

I found docs, an editor, but where is the thing that says "okay, I'll do what you say" in Ruby.

<sheepishly> I really am trying to learn this stuff, and it would be so much easier to play around...

I created a .rb file, and it opens a command window, but it closes right away.....

This post has been edited by GrandmaDeb: Oct 19 2008, 05:29 PM


--------------------
Go to the top of the page
 
+Quote Post
   
Sheol
post Oct 19 2008, 05:55 PM
Post #20



Group Icon


Type: Coder




Ruby is an interpreted language, it doenst use a compiler =/

About the console closing fast, add this in the end of ur program:
CODE
gets

It'll make the program wait for user input, so ur program wont exit.

This post has been edited by Sheol: Oct 19 2008, 05:56 PM
Go to the top of the page
 
+Quote Post
   

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 30th July 2014 - 10:25 PM

RPGMakerVX.net is an Privacy Policy, Legal.