Jump to content

New forum!!!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
I've just started programming with Ruby and it's perfect that CodeCall now has a Ruby section. I hope you all will enjoy the new forum and I thank the admins/mods for opening this new section. I made a little "opening-program" in ruby:


answer = "N"

while answer.upcase != "Y"
puts "Hello CodeCall, ready to open the new forum section? [Y/N]"

answer = gets.chomp

puts "\n"
end

count = 11
11.times do
count -= 1

if count == 0
puts "Start asking Ruby questions since the Ruby forums has now been opened!!!".upcase
else
puts count
end

end

gets


(Happy now Jordan :P)

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
lol - What do you think of Ruby?

#3
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
I don't know yet. I just started :)

#4
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
It kinda looks like Python.

What does this do?

11.times do


#5
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
It's a for loop which will loop 11 times.

#6
Guest

Guest

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,414 posts
I have never programmed in Ruby, but that code is extremely readable. Anyone recommend it over Python? (the language I currently use for scripting)
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)

#7
asafe

asafe

    Programmer

  • Members
  • PipPipPipPip
  • 107 posts

Guest said:

I have never programmed in Ruby, but that code is extremely readable. Anyone recommend it over Python? (the language I currently use for scripting)
I've a little bias for perl, so I think I will learn python.

#8
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
I find Ruby the most readable language, better, in fact, than most pseudocode. It also has many similarities with C, especially function names, like puts above.
Watches: Nanoha, Haruhi, AzuDai. Listens to: E-Type, Dj Melodie, Nightcore.
"When people are wrong they need to be corrected. And then when they can't accept it, an argument ensues." - MeTh0Dz