Ruby - "Where everything's an object!"

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > Ruby

Ruby - "Where everything's an object!"

eyvind
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, biggrin.gif )

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:
There are a lot more links, you can fnd the best ones here: http://www.rubycentral.com/links/index.html.

 

 

 


Reply

miCRoSCoPiC^eaRthLinG
Well, if you look around a bit or read the forum descriptions a little more carefully, you'll see we already have a forum for Ruby under Programming > Scripting.

Moved to Ruby.

Reply

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

Reply

eyvind
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).

Reply

manymanymuch
I'm new to Ruby. Years ago I did glanced through the Ruby manual from www.PragmaticProgrammer.com which was actually fully published on 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 www.RubyOnRails.com while googling for new Ruby development progress, it looks to be an exciting framework to build websites on.

Q: AstaHost.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?

Reply

manymanymuch
I actually found the entire Pragmatic Programmer's Guide to Ruby book published online at RubyCentral.com here is the link:

Programming Ruby: The Pragmatic Programmer's Guide

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. http://www.rubycentral.com/book/index.html - 39.06 hr back. (1)
  2. ruby years - 125.49 hr back. (1)
Similar Topics

Keywords : ruby, everythings, object

  1. Changing Path Of Shared Object
    (2)
  2. Cleanly Killing The Itunes Com Object
    (2)
    So, I'm working on a media server that interfaces with iTunes to play my music for me. I've
    run into a small nuisance, but not something critical. To work with iTunes, a C# application needs
    to instantiate an iTunes COM object. This actually forces iTunes to open. Now, if a person were to
    attempt to close iTunes, the C# application would receive an AboutToPromptUserToQuit event. If the
    iTunes COM object is not destroyed and dereferenced so that iTunes thinks it can cleanly exit
    without stranding any other application, the user will be prompted to confirm the....
  3. Problem In Theme Or Active Object!
    (4)
    now i got this problem in the picture. when i copied a link from the internet, and past it on the
    desktop, a massege said : are you sure you want to copy active object, as i remember, maybe not
    exactly that but i rapidly clicked ok...so that what happened!, it's the same as the web
    page at the corner of the desktop, and i can use it and the links in it are working! i changed
    the theme but it still. anybody can help me please....
  4. C# Tutorial : Lesson 4 - Object Oriented Programming
    (2)
    Object Oriented Programming Object Oriented Programming is a methodology modeled on real
    life. It comprises of the basic unit, an object, being used in implementing a program. Think of all
    the objects around you - cars, buses, birds, trees, etc. You will find countless ones of them,
    everywhere you go. In order to tackle this huge number, we started classifying them, thus came the
    term Class. Class A class is a composition of the theoretic characteristics (attributes and
    properties) of an object and the things it can do - behaviors, methods and features. Tak....
  5. Php - Object Oriented Programming
    (1)
    Hi, I just recently found out PHP's capabilities of being OOP. Since I had learned Java's
    methods, I've adapted its methods and applied it to PHP. Since then, I've been avoiding
    procedural PHP scripting and moved to OOP instead. Like Java, I have divided the codes in classes. I
    have a commented package namespace to show which project it's from. It's almost like Java.
    I want to know, does anyone use PHP's OOP in different way? Well I believe you can form PHP in
    C++ way.....
  6. Linking An Object Tag
    (0)
    Hi, i have an OBJECT tag -a swf file- that i want to be part of an A tag so when a user clicks
    on this it opens a new window, someone should think why i want to do this, well, the reason for this
    is because the swf file dont have an hyperlink in it and i dont work with flash so i cant edit it.
    I try the following: CODE <a href="url_to_open"> <object
    type="application/x-shockwave-flash" data="some.swf" width="70"
    height="70" id="logo"> <param name="movie" value="some.swf"
    /> ....
  7. OSCommerce Errors
    Passed variable is not an array or object (5)
    I don't know where this topic is appropriate in so please move it if it's innapropriate for
    this place as this involves PHP and OSCommerce Hi, I got an error stating the following: Warning:
    reset(): Passed variable is not an array or object in
    /home/content/j/w/s/jws8118/html/catalog/admin/includes/classes/object_info.php on line 17 Warning:
    Variable passed to each() is not an array or object in
    /home/content/j/w/s/jws8118/html/catalog/admin/includes/classes/object_info.php on line 18
    Here's the source code: CODE <?php /*   $Id: object....
  8. Rpg Maker Xp Rgss - Ruby Discursions
    Talk about programming techniques used in the RGSS (1)
    What are the methods from the "Time" class in the RPG Maker XP. Is it native from Ruby? Since
    it's not open for editing, I don't now what are the methods I can use with it. What are the
    options I have for "comparing dates" there? ....
  9. VB 6.0 Ole DB Object/Session Error
    (1)
    i've been coding a small appz to manage mail senders. All of a sudden we are receiving an 3709
    error, Requested operation requires an OLE DB Session object, which is not supported by the current
    provider. Any ideas why? ....
  10. Datasource Object Limitations?
    (0)
    I'm trying to build asp.net pages with an SQL Server backend. I am running into what I think is
    string limitations in SQLDataSource objects. But I could be wrong. And this could be the gridview
    doing this. I haven't tried anything else. I'm just learning. What is happening is when
    I include some columns from the data table in the sql of the SQLdatasource object it will no longer
    let me update records. I change the data and click update. It refreshes the page but the data
    doesn't change. The reason I was thinking it is a string length problem is ....
  11. Object & Classes Trouble
    (2)
    The following is the code that I am testing with. QUOTE Public Class Form1 Private
    sckCom As New MSWinsockLib.Winsock Private sckDat As New AxMSWinsockLib.AxWinsock Private
    Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    sckCom.Close() sckDat.Close() End Sub End Class The sckCom.close() method works
    fine, but the sckDat.close() method causes the following exception :- Exception of type
    'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. I am not su....
  12. Ruby On Rails
    an outright PHP Killer??? (6)
    A website that I visit pretty regularly, Sitepoint.com, today published an excellent introduction
    for Ruby On Rails (ROR). I, like many of the webdevelopers, have been terribly curious about this
    almost "magical, no fuss" web development language, hence the time was perfect for Sitepoint to come
    out with the article. Danny's article on Sitepoint gave a brief introduction, but moreso
    stressed and emphasized on the "ease of development" that ROR brings along. We've witnessed
    years of almost three decades of "hero worshipping" OOP techniques in software programmin....
  13. Ruby - Better Programming Language Than Java Or C#?
    Ruby is an object-oriented, meta-programming language that has many de (1)
    hey all i read this very intresting and intriguing article and i thought i should share it here..
    find example codes in the attached file. cheerz! shiv Ruby —A Diamond of a Programming
    Language? QUOTE Have you heard about Ruby? It seems to be a popular topic in software
    development circles today. This language came to my attention at a Java conference last spring,
    where gentlemen like Bruce Tate (author of Bitter Java and Better, Faster, Lighter Java), Dave
    Thomas (Pragmatic Programmer: From Journeyman to Master), and others were all talking about Rub....
  14. Ruby On Rails
    Is ruby on rails a good language? (0)
    Is ruby on rails a good programming language?? I heard alot about it but i would like to know if the
    programming language is as good as the ASP or PHP programming language??? whats the benefite of
    using this ruby on rails as compaired to ASP or PHP???....
  15. Embedding Object In MySQL
    Embedding binary object in MySQL (2)
    I would like to ask, is it possible to embed binarry object into an MySQL database, like the MSSQL
    database & MS Access database. I would like to embed a few small txt based files into the mysql
    database. These text files are actually the settings of my web application so that the use can get
    the text file from the database. So any one with any clue, could u please gimme a hand here.
    Thanks mates.....
  16. Photoshop Tutorial: Selective Coloring - Color Object In A B & W Photo
    I don't know the proper term. (4)
    First of all, I was planning on posting this tutorial 6 months ago but due to my crazy life and my
    recent relocation to Hell I'm just now getting around to it /unsure.gif' border='0'
    style='vertical-align:middle' alt='unsure.gif' /> So here it is! Have you ever seen one of
    those black and white pictures that has a single object in color? Well, I'm gonna show you how
    to do that in 3 EXTREMELY easy steps! I used this effect on a promo pic for my fiance's
    little brother Sean's band, There's Always Forever . However, I went with more of ....
  17. Garmon's Javascript #1 - Simple Object Database
    Learn basic Object-Oriented Programming (1)
    Okay, so you're like me - you've heard about OOP or Object Oriented Programming and wonder
    what all the hOOPlah is about! So here's the straight pOOP. Okay, sorry for the stOOPid
    puns. I'll stop now. Honestly, I will. OOPs I did it again. Right. Here's the scenario: we
    have an online store, we want to maintain a database of our products, and we want to be able to
    access them. This tutorial shows how this can be done, with very simple, commented code. Please
    note, that I'm not recommending that you use JavaScript to store your actual product....
  18. Question About Embedding Flash Object Header
    flash (2)
    hello, how can i put my flash object(header) im my page. what file do i have to use. ive you make a
    flash you get 2 file the ecxual flash file and an animation only file. do i only have to put the
    animation only file in my web folder or all 2.....
  19. VB6 Need Help With Object Validation
    Any help will be appreciated (4)
    OK, only been using VB6 for less than 2 weeks, but have gone passed expectations and have found
    things I have overlooked and am now needing either an explanation on how to do it or some good
    places they will clearly explain how to go about it. To be honest, I'm not wanting to learn
    this language, it's just a requirement that I must get out of the way before moving onto a much
    larger project. I will apologise now if I speak a lot of C/C++
    Objects/Properties/Methods/Functions, I can explain programming better under this language. So back
    to VB, Just to ignore m....
  20. Ruby, A Good Language To Learn First?
    Should ruby be a first language to learn (14)
    Ok I've had a small introduction to programming while in college, and have been thinking about
    getting back into it. After looking around I've noticed that ruby seems to be a good programing
    language and easy to use, though not to popular outside of Japan. My question is this, what do
    people think of Ruby as a first language for a someone just getting into the programming world?....
  21. What Scripting Language?
    Java/Python/Ruby? (2)
    Hi... First of all I know that this place isn't best for this, but this fits into 3 different
    categories so I decided to place it in main category... If it fits somewhere else better, I
    don't mind moving it somewhere else... So now the case. We (I and few other people I know) are
    working on 3D engine... exactly we want to create engines for 3 platforms (Linux, Windows, Mac OS)
    that would have one scripting interface so we decided to integrate one of those three script
    languages with C++ engine to make it more portable. I was searching for some infos that would....
  22. Does Astahost Support Ruby Cgi?
    What are the general specifications? (9)
    I was searching this forum to find out if Astahost actually support Ruby. It remains vague to me.
    I found Astahost from clickherefree.com when searching for webhosts featuring Ruby. But on
    Astahost's own page of complete hosting feature, there is no mention of Ruby. Also, on
    free-webhosts.com there is no mention of Ruby under Astahost's description.. Q: Does Astahost
    support Ruby CGI programming? if so, what are the general specifications?....
  23. How Long Have You Been Programming In Ruby?
    Find out how many Ruby programmers here (0)
    Let's find out how many Ruby programmers are there on this forum and how many years experience
    they have.....
  24. Newbie!
    ruby booby (1)
    hey guys, /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> im new ere
    and i am confused /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> coz i
    tot we could MAKE a fourm? /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
    but it seems as if we cant! /unsure.gif' border='0' style='vertical-align:middle'
    alt='unsure.gif' /> any1 wanna chat??....
  25. The Ruby Language
    Is Ruby a scripting language or not? (4)
    Is Ruby a scripting language? /dry.gif' border='0' style='vertical-align:middle' alt='dry.gif' />
    Personally I think it is a full programming language. When I think of a scripting langauge, I
    think of Perl or JavaScript, Ruby isn't like those, Ruby is a lot more like Java than Perl.
    What do you think?....
  26. Force Object To Load Last
    html question (2)
    Alright html wizards...i've got a question ^_^ I assume that, like other programming codes, html
    and php compilers read a code from top to bottom. Say I have a object though...and I want it to load
    last...how do I do that? Let's just pretend I have an image that I do not want to load until
    everything else on the webpage is loaded...how can I set that up? Is there perhaps a javascript code
    for it...or maybe a CSS style I could add onto the object? Or better yet, is it possible to make
    everything within a div/span/table tag load last? Another thing...if I leave an....
  27. Beginners Php - Object Initialization
    (10)
    So I got fed up with HTML and wanted to move to dynamic pages... php was THE thing I wanted to learn
    LOL... SO I started going by a book. I got stuck with Object Initialization . I don't
    understand.... I really don't... CODE To initialize an object, you use the new statement to
    instantiate the object to a variable. class foo {    function do_foo () {        echo
    "Doing foo.";    } } $bar = new foo; $bar->do_foo(); What gets
    me is the given explanation, "you use the new statement" what new statement?? LOL I ....
  28. Object Orientated Programming Help!
    I just can't understand OOP!! (2)
    I'm coming here not because I expect anyone to post a step by step of what it is but because
    hopefully someone here has links to a website that explains it really well or maybe knows of a
    script that uses it in a clear example. Any links would be greatly appreciated. I just need to
    understand it to see if using it could save me some time and effort. Thanks Kage This topic
    deals with General Programming Concept. So I guess it should be in Programming > General. Topic
    moved. Oopsadaisies. I should have mentioned that I want to learn the use of OOP in PHP, such ....
  29. Delphi - Tfilestream
    Object Persistence... use TFileStream (1)
    OK. This tutorial may be helpful to people who use Delphi, for anyone else... it will probably be
    boring /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> . This tutorial is
    going to explain briefly how to use the TFileStream Class. For anyone who has wanted to say... save
    any data from a listbox and during run-time you wanted to append different information to it, or
    throughout the applications running time and then save the information when the application closes
    then you should use the TFileSteam Class. The great thing about this is it can re....
  30. Ruby - Cool Syntax
    Scripting language Ruby (9)
    Of all the programming languages I have come accross, there is no language which is as fun to use
    and easy to program in as Ruby. The iterators in the language and the use of code blocks is just
    excellent. It takes just an hour or so to get used to the philosphy of Ruby and bang... u can just
    program anything easily in the language. I strongly recomment it to anyone interested in
    programming. e.g. CODE 1.upto(10) {|x| puts x} prints numbers from 1 to 10.
    CODE "abcdef".reverse! reverses the string to fedcba. Cool /smile.gif'....

    1. Looking for ruby, everythings, object

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for ruby, everythings, object
Similar
Changing Path Of Shared Object
Cleanly Killing The Itunes Com Object
Problem In Theme Or Active Object!
C# Tutorial : Lesson 4 - Object Oriented Programming
Php - Object Oriented Programming
Linking An Object Tag
OSCommerce Errors - Passed variable is not an array or object
Rpg Maker Xp Rgss - Ruby Discursions - Talk about programming techniques used in the RGSS
VB 6.0 Ole DB Object/Session Error
Datasource Object Limitations?
Object & Classes Trouble
Ruby On Rails - an outright PHP Killer???
Ruby - Better Programming Language Than Java Or C#? - Ruby is an object-oriented, meta-programming language that has many de
Ruby On Rails - Is ruby on rails a good language?
Embedding Object In MySQL - Embedding binary object in MySQL
Photoshop Tutorial: Selective Coloring - Color Object In A B & W Photo - I don't know the proper term.
Garmon's Javascript #1 - Simple Object Database - Learn basic Object-Oriented Programming
Question About Embedding Flash Object Header - flash
VB6 Need Help With Object Validation - Any help will be appreciated
Ruby, A Good Language To Learn First? - Should ruby be a first language to learn
What Scripting Language? - Java/Python/Ruby?
Does Astahost Support Ruby Cgi? - What are the general specifications?
How Long Have You Been Programming In Ruby? - Find out how many Ruby programmers here
Newbie! - ruby booby
The Ruby Language - Is Ruby a scripting language or not?
Force Object To Load Last - html question
Beginners Php - Object Initialization
Object Orientated Programming Help! - I just can't understand OOP!!
Delphi - Tfilestream - Object Persistence... use TFileStream
Ruby - Cool Syntax - Scripting language Ruby
advertisement




Ruby - "Where everything's an object!"



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE