Added: 3 years ago
From: manwithcode
Views: 13,729
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (47)

Sign In or Sign Up now to post a comment!
  • I've always kicked off languages with a fuck you world

    it's my personal touch ;)

  • @manwithcode

    It works now=)

    Thanks!=)

  • @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 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

    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 When you say it didn't work, what do you mean? How did it fail?

  • Thanks bro, Im gonna keep up with these tuts :D

    Komodo IDE ftw >.<

  • @Paetilium I'm happy you like them :)

  • You are awesome

  • @memoivoila Thanks! :P

  • I download ruby but i dont have the "sciTE"

    please help me

  • @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

    i can use notepad. but how to run is in a ".exe" for ruby???

    and there is no color code=(

  • @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.

  • 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

  • when I run hello world with notepad++ it just flashes it for a second and than closes. how do i fix this?

  • @FingerSneeze type gets in the next line =]

  • is the download down for windows? I can't seem to download it.

  • dude when i type in ruby Hello.rb it says this ruby is not a internal or external command

  • @Minecrafterz1000 Did you install Ruby correctly?

  • use geany its able to use any language you want and will auto detect whats a syntax and whats not like a variable

  • hey try Notepad++ it is great!

  • @mylifeis2coolcmc2 Indeed it is!

  • macs have a ruby ide called xcode installed all ready

  • @stanmarshk True! I forgot about that! Thanks for reminding me :)

    So yeah, everyone with a mac, you can use xcode to write ruby programs

  • 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

  • great

  • Great video for starters to the world of ruby.

  • 5 stars. Great vid

  • another 5 stars tut, thanks

  • .........what? i didnt catch any of that...good turtorial, though :)

  • 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.

  • @iamghost1125 give me a day and I will give you a step by step tutorial

  • 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.

  • 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.

  • 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.

  • Actually, I did a google search and if you add

    sleep x

    to the end of the program it stays up for x seconds.

  • 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.

  • you can write 'gets' at the end of the code so you can see what was printed on the screen.

  • visual basic is better then Ruby,because it's simple.

  • use whatever you want to use, but I still think Ruby is better.

  • maybe but i think visual basic better for beginners.

  • @manwithcode You are correct.

  • @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!

  • nice work this is great

  • Nice work, thanks.

  • thanks a lot this is great for beginers like me!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more