@julianhoogvorst Try running the file from the command line. Ruby files don't necessarily set themselves up to run when you click on them, unless you used the rubyinstaller. If you don't know how to run it from the command line, google tells all.
@julianhoogvorst SciTE is just a text editor, you don't need it. Any text editor will work fine (even notepad). If you're having issues getting one installed, just do a Google search, Google is your friend.
@julianhoogvorst Coloring of the code is a feature of more advanced text editors. If you want something like that, get Notepad++, or do a Google search for "programmer's text editor". There are numerous places that show how to run a ruby program, again a simple Google search should help you.
Hi , when I downloaded Ruby using windows, the newer version is only available but i downloaded it, you never mentioned you needed winRAR to use it but oh well anyway when i downloaded ruby , it has a book with it which mentions it different too you, i tried your version as i prefer being shown it's easier, i use notepad plus when i tried what you did, i saved it under save as not save to the desktop, i named it hello.rb when i click it, it shows up like command prompt and then goes off
@cashjamesPremium1 The code is running, but it finishes so fast that you don't actually get to see what it prints out. Try running it from the command prompt (if you don't know how, do a Google search on it).
Or, you can add "gets" (without quotes) to the end of the program, and it will stay visible until you press enter.
then to open the folder you DO NOT click on it. just right click and select "edit" thats where you do all the programming. Now to view your program, you go to your command prompt and type "cd desktop" press enter then type "cd programs" press enter.then type "test" and it will come out.
Great video. One thing you forgot to mention is to put "Hello world!" in quotes. Very elementary for people who already know how to program, but for beginners, it's hard to see what you write before and after the string.
There are two ways to fix this. Either run the program from the command line (Start Menu->Accessories->Command Prompt). Or add gets to the end of the program.
Unless there's some sort of pause function used, command prompt is the best way to see the hello world run properly in Windows, for me in Vista, at least. I kept getting a flash of a window, but barely managed to catch a glimpse of "Hello World."
I'll be following these tutorials, I hope to learn Ruby as my first language.
I've always kicked off languages with a fuck you world
it's my personal touch ;)
jit3k 2 weeks ago
@manwithcode
It works now=)
Thanks!=)
julianhoogvorst 1 month ago
@manwithcode
I saved it and there comes a new file on my computer "vb0101.rb"
When i click it it said that he dont'n what ".rb".
I have ruby cmd.
What wrong?
Can youplease help me?
julianhoogvorst 1 month ago
@julianhoogvorst Try running the file from the command line. Ruby files don't necessarily set themselves up to run when you click on them, unless you used the rubyinstaller. If you don't know how to run it from the command line, google tells all.
manwithcode 1 month ago
@manwithcode
I use notepad and typed "
#example 0101
puts 'TEST SCITE'
10.times do |x| puts x
end"
And saved it as "vb0101.rb"
It does not worked.
Whats wrong?
Sorry for all the spelling mistakes.
julianhoogvorst 1 month ago
@julianhoogvorst When you say it didn't work, what do you mean? How did it fail?
manwithcode 1 month ago
Thanks bro, Im gonna keep up with these tuts :D
Komodo IDE ftw >.<
Paetilium 1 month ago
@Paetilium I'm happy you like them :)
manwithcode 1 month ago
You are awesome
memoivoila 2 months ago
@memoivoila Thanks! :P
manwithcode 2 months ago
I download ruby but i dont have the "sciTE"
please help me
julianhoogvorst 2 months ago
@julianhoogvorst SciTE is just a text editor, you don't need it. Any text editor will work fine (even notepad). If you're having issues getting one installed, just do a Google search, Google is your friend.
manwithcode 2 months ago
@manwithcode
i can use notepad. but how to run is in a ".exe" for ruby???
and there is no color code=(
julianhoogvorst 2 months ago
@julianhoogvorst Coloring of the code is a feature of more advanced text editors. If you want something like that, get Notepad++, or do a Google search for "programmer's text editor". There are numerous places that show how to run a ruby program, again a simple Google search should help you.
manwithcode 2 months ago
Hi , when I downloaded Ruby using windows, the newer version is only available but i downloaded it, you never mentioned you needed winRAR to use it but oh well anyway when i downloaded ruby , it has a book with it which mentions it different too you, i tried your version as i prefer being shown it's easier, i use notepad plus when i tried what you did, i saved it under save as not save to the desktop, i named it hello.rb when i click it, it shows up like command prompt and then goes off
cashjamesPremium1 3 months ago
@cashjamesPremium1 The code is running, but it finishes so fast that you don't actually get to see what it prints out. Try running it from the command prompt (if you don't know how, do a Google search on it).
Or, you can add "gets" (without quotes) to the end of the program, and it will stay visible until you press enter.
manwithcode 2 months ago
I had to listen more than once you did go fast. You would do better if you had notes for when your memory fails you. all in all.Good stuff. Thanks.
weezyclements@hotmail.com
louiseclements10 3 months ago
when I run hello world with notepad++ it just flashes it for a second and than closes. how do i fix this?
FingerSneeze 4 months ago
@FingerSneeze type gets in the next line =]
BeSabin 4 months ago
is the download down for windows? I can't seem to download it.
MrKingofSeattle 6 months ago
dude when i type in ruby Hello.rb it says this ruby is not a internal or external command
Minecrafterz1000 7 months ago
@Minecrafterz1000 Did you install Ruby correctly?
manwithcode 7 months ago
use geany its able to use any language you want and will auto detect whats a syntax and whats not like a variable
trevornida95 9 months ago
hey try Notepad++ it is great!
mylifeis2coolcmc2 1 year ago
@mylifeis2coolcmc2 Indeed it is!
manwithcode 1 year ago
macs have a ruby ide called xcode installed all ready
stanmarshk 1 year ago
@stanmarshk True! I forgot about that! Thanks for reminding me :)
So yeah, everyone with a mac, you can use xcode to write ruby programs
manwithcode 1 year ago
When getting a ruby version, you should always get a even number version if you are just starting, as they are stable versions, E.G: 1.9.2 1.8.6
zowlyfon 1 year ago
great
srinivasgoud1 1 year ago
Great video for starters to the world of ruby.
vendettapianist 1 year ago
5 stars. Great vid
tempss 2 years ago
another 5 stars tut, thanks
themewz 2 years ago
.........what? i didnt catch any of that...good turtorial, though :)
iamghost1125 2 years ago
then to open the folder you DO NOT click on it. just right click and select "edit" thats where you do all the programming. Now to view your program, you go to your command prompt and type "cd desktop" press enter then type "cd programs" press enter.then type "test" and it will come out.
USANAmillionaire 2 years ago
@iamghost1125 give me a day and I will give you a step by step tutorial
mylifeis2coolcmc2 1 year ago
Great video. One thing you forgot to mention is to put "Hello world!" in quotes. Very elementary for people who already know how to program, but for beginners, it's hard to see what you write before and after the string.
novellterminator 2 years ago
How do I get the window to stay up, I'm having the same problem as arinlares. The window just flashes up and then disapears before I can read it.
packered 2 years ago
Hi!
There are two ways to fix this. Either run the program from the command line (Start Menu->Accessories->Command Prompt). Or add gets to the end of the program.
manwithcode 2 years ago
Actually, I did a google search and if you add
sleep x
to the end of the program it stays up for x seconds.
packered 2 years ago
Unless there's some sort of pause function used, command prompt is the best way to see the hello world run properly in Windows, for me in Vista, at least. I kept getting a flash of a window, but barely managed to catch a glimpse of "Hello World."
I'll be following these tutorials, I hope to learn Ruby as my first language.
arinlares 2 years ago
you can write 'gets' at the end of the code so you can see what was printed on the screen.
japmsn 2 years ago
visual basic is better then Ruby,because it's simple.
LazarRedDevil95 2 years ago
use whatever you want to use, but I still think Ruby is better.
manwithcode 2 years ago 3
maybe but i think visual basic better for beginners.
LazarRedDevil95 2 years ago
@manwithcode You are correct.
Bleachlover214 1 year ago
@manwithcode ruby, python, .vbs, .bat, c#, C++, boo, javascript, java, HTLM, and a little of PHP.
I Have not learned a thing in school yet I know a ton of programming languages!
mylifeis2coolcmc2 1 year ago
nice work this is great
PS3PRO84 2 years ago
Nice work, thanks.
jarrodamoore 2 years ago
thanks a lot this is great for beginers like me!
patheticpassion 2 years ago