Jump to content
xisto Community
Sign in to follow this  
eyvind

Ruby Where everythings an object

Recommended Posts

I have been a huge fan of Java for a few years now, and recieved a 5 (out of 5) on the AP COmputer Science A exam (college level programming, in Java). I signed up for AP Computer Science AB for this year, but 7 people signed up so the class was cancelled, so I have signed up for next year. I have also read a few books on Java, one of which is the Exam Prep (Exam Cram) review book for the Sun Certified Java Prgrammer exam, it looks to me as though I know most of what is tested, but I have not memorized the limits for the different primitive types.

 

THat is my background in Java. This year, a few weks ago really, I came acros a new programming language, Ruby. Ruby appears to be as Object Oriented as is presently possible, which is shown, or alluded to, in their moto: "Where everyhing is an object." If you look at a statement in Ruby:

 

returnedNumber = -7.ab

 

assigns 7 to returnedNumber. In Java:

 

returnedNumber = Math.abs(-7);

 

You can tell how much more OO Ruby is even compared to Java.

 

Durign my Java addiction I began a website: "You Like Java?". I have now decided to change my website to "You Like OOP?"(I actually requested here to change my subdomain to oop, from java, but apparently I had too little credits, which is partly why I am posting this, :( )

 

I think we should have a Ruby Forum, Ruby is prospering, athough relatively few people know about it, it is powerful, and, I think, sets teh way for even purer OOP languages, paving the way for the furure of programming.

 

Here are a few Ruby websites:

/en/ (the official Ruby site)

http://forums.xisto.com/no_longer_exists/ ("the source for Ruby")

http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml (ruby talk)

http://forums.xisto.com/no_longer_exists/ (the Programming Ruby book)

http://forums.xisto.com/no_longer_exists/ (the same book, but here you can actually execute the ode samples right from your browser!)

http://rubyforge.org/ (you know sourceforge right? well this is rubyforge.)

There are a lot more links, you can fnd the best ones here: http://forums.xisto.com/no_longer_exists/.

Share this post


Link to post
Share on other sites

Ruby is a bit more than a simple scripting language, though. Unlike Perl, or bash shell scripts, it's well-suited to writing REAL proggies. Along with Python, it sort of bends the boundaries of scripting languages and real languages.Also, it is VERY good for those looking to learn the basic concepts of OOP. It has a MUCH cleaner object model than Java... In a lot of ways, it's actually the "ideal" programming language that I had been cooking up in my head. I was able to start using MUCH faster than any other language I had previously tried my hand at, because it so closely matched my ideas of how a language SHOULD work.

Share this post


Link to post
Share on other sites

I didn't look under scripting for that reason, RUby is a fullflsddged programming language, NOT a scripting language. It is definitely in teh same league as Java, at least more so than Perl.I really think we should have the Ruby Forum here in Programming, (although it wasn't the main point of my post).

Share this post


Link to post
Share on other sites

I'm new to Ruby. Years ago I did glanced through the Ruby manual from https://pragprog.com/no_js which was actually fully published on http://www.informit.com/ at the time. Since then, I've always wanted to try programming web pages in Ruby, but were not successful in getting a free webhost which has Ruby. Recently, I found out about http://rubyonrails.org/ while googling for new Ruby development progress, it looks to be an exciting framework to build websites on.

 

Q: Xisto.com has full Ruby support on the server, right?

 

For now, I'm interested in learning simple Ruby programming. I'm afraid I'm not familiar enough to start off any topics on the basics of Ruby yet.

 

Q: Would anyone of you care to start something simple on the basics of programming Ruby, maybe something I'd be able to contribute as well?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.