Should I Change To Ruby?

  • (2 Pages)
  • +
  • 1
  • 2

25 Replies - 5747 Views - Last Post: 05 October 2009 - 05:45 AM Rate Topic: -----

#1 Kingbradley6  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 149
  • Joined: 10-July 08

Should I Change To Ruby?

Posted 16 August 2008 - 08:00 AM

(For those that scan read posts, please can you read all of it as it contains stuff to answer my question all the way through)

Well about 3 weeks ago I decided to learn a programming language.

I started off with C++ for a week but after reading some articles I found out that Java was going to be easier for someone that has never programmed before (I only know HTML & CSS).

So for 2 weeks I've been learning Java but I have found it quite hard. I get the jist of it but it does baffle me at times trying to do even the simplest of things.

public class Demo {

public static void main(String []args) {

int myFirstNumber = 1;
int mySecondNumber = 5;

if(myFirstNumber == mySecondNumber) {
System.out.println("The numbers match!");
}
else {
System.out.println("Unfortunately the numbers don't match");
}

}

}


The above Java code I can easily manage however that is about as far as it goes. So although the above is simple I don't understand anything more complex than that.

So I was wondering...

Should I stick with Java and just keep re-reading the same tutorial/s until I understand it or should I switch to ruby which at a quick first glance seems simple?

OR, should I change to ActionScript as I do have Adobe CS3 Flash, it's just I'm not good in any aspect of Flash from AS to drawing.

If it makes any difference, I want to be able to make online games with it.

P.S. Please don't say a game will take you ages to make and I'm setting my goals far too high. That's my goal and I want to complete it - I just don't know down which path to go.

This post has been edited by Kingbradley6: 16 August 2008 - 08:07 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Should I Change To Ruby?

#2 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Should I Change To Ruby?

Posted 16 August 2008 - 08:24 AM

Pick whichever one you like best - there really isn't a 'best' language. If you're working on making a game, the languages that are typically chosen are C++ or Java.
Was This Post Helpful? 0
  • +
  • -

#3 Kingbradley6  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 149
  • Joined: 10-July 08

Re: Should I Change To Ruby?

Posted 16 August 2008 - 08:29 AM

Okay let me re-word it...

Out of Java and Ruby what is the easiest to learn and quickest to develop programs* with a GUI?

* = Doesn't have to be a game

(C++ isn't in it as I find the memory business too hard)
Was This Post Helpful? 0
  • +
  • -

#4 MitkOK  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 32
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Should I Change To Ruby?

Posted 16 August 2008 - 11:42 AM

Do you want easy learning and programming or you're just lazy ?
Was This Post Helpful? 0
  • +
  • -

#5 Kingbradley6  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 149
  • Joined: 10-July 08

Re: Should I Change To Ruby?

Posted 16 August 2008 - 12:44 PM

View PostMitkOK, on 16 Aug, 2008 - 11:42 AM, said:

Do you want easy learning and programming or you're just lazy ?


I'm not lazy :angry: I just want a programming language that is easy to learn so I can start developing programs quickly.

This post has been edited by Kingbradley6: 16 August 2008 - 12:45 PM

Was This Post Helpful? 0
  • +
  • -

#6 MitkOK  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 32
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Should I Change To Ruby?

Posted 16 August 2008 - 02:43 PM

Ruby is easy ot learn, easier to code than Java, C/C++.
But the proccess of learning programming depends on you.

PS: http://www.dreaminco...wtopic59830.htm

This post has been edited by MitkOK: 16 August 2008 - 02:43 PM

Was This Post Helpful? 0
  • +
  • -

#7 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3089
  • View blog
  • Posts: 19,137
  • Joined: 14-September 07

Re: Should I Change To Ruby?

Posted 16 August 2008 - 03:43 PM

Java can have a GUI set up and running a lot faster then C++; I can't speak to the ease of Ruby, but python was pretty easy as well.
Was This Post Helpful? 0
  • +
  • -

#8 MitkOK  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 32
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Should I Change To Ruby?

Posted 17 August 2008 - 01:49 AM

Ruby GUI Toolkits:
- Tk
- wxRuby(wxWindows/wxWidgets)
- Ruby/Gnome(GTK)
- Ruby/QT
- RubyCocoa ( for Mac OS X, even on iPhone )

and many more.

Aside from GUI Toolkits there's Java implementation of Ruby ( JRuby ) and .NET implementation of the Ruby ( IronRuby ).

This post has been edited by MitkOK: 17 August 2008 - 01:53 AM

Was This Post Helpful? 0
  • +
  • -

#9 jaxx751  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-September 08

Re: Should I Change To Ruby?

Posted 29 September 2008 - 07:17 AM

View PostKingbradley6, on 16 Aug, 2008 - 12:44 PM, said:

View PostMitkOK, on 16 Aug, 2008 - 11:42 AM, said:

Do you want easy learning and programming or you're just lazy ?


I'm not lazy :angry: I just want a programming language that is easy to learn so I can start developing programs quickly.


Programming is more based on logic. Once you learn one language, it is fairly easy to move to another language simply by learning the syntax. There isn't a better language overall, but some things are more suited for certain development types. You wouldn't use PHP to create a game...

Read a little bit about the logic of programming and you should soon be able to create programs no problem.

The best programmers don't think about the language that they program in before they start programming, they pick the language best suited for the job. If I wanted a simple email script for a form filled out by a user on a website, I highly doubt that I would create a Ruby on Rails application to use a mail function. PHP is more suited for a small job like that, and can be tied in easily without modifying the rest of the website.

What I'm trying to say is that you shouldn't get caught up in one language is better than another. Computer logic is all the same. Different languages, simply put, only change syntax of logic. (there are other differences, but this is the main point I'm trying to make.)


With that said, what are you trying to develop? Desktop application? Web interface? Don't limit yourself to one language.

Cheers
Was This Post Helpful? 0
  • +
  • -

#10 Kingbradley6  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 149
  • Joined: 10-July 08

Re: Should I Change To Ruby?

Posted 05 October 2008 - 10:16 AM

Quote

Don't limit yourself to one language


But surely it is better to know one language inside-out than many not very well?

On that note, what is better...

Ruby OR Pascal???
Was This Post Helpful? 0
  • +
  • -

#11 Inkman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 06-October 08

Re: Should I Change To Ruby?

Posted 13 October 2008 - 01:00 PM

umm, I am new here and all, I do believe that the guy just said, no one language is better.

In, my school I got started out with a book on ruby, so far I think its a pain, but thats cause I don't have logic or something and I am a complete beginner, I don't even know how to ask questions (noone understands me). it just makes me want to smash my brains in.
Was This Post Helpful? 0
  • +
  • -

#12 Kingbradley6  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 149
  • Joined: 10-July 08

Re: Should I Change To Ruby?

Posted 13 October 2008 - 01:15 PM

View PostInkman, on 13 Oct, 2008 - 01:00 PM, said:

umm, I am new here and all, I do believe that the guy just said, no one language is better.

In, my school I got started out with a book on ruby, so far I think its a pain, but thats cause I don't have logic or something and I am a complete beginner, I don't even know how to ask questions (noone understands me). it just makes me want to smash my brains in.


Perhaps technically no-one langauge is better but then if that was true then I could make the next Call of Duty with Pascal (obviously not possible for many reasons).

Ruby is actually very easy once you understand the simple algorithm of programming. Don't smash your brain just keep on trying. You will get there in the end and just try and ask questions otherwise ask them here!
Was This Post Helpful? 0
  • +
  • -

#13 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4188
  • View blog
  • Posts: 11,852
  • Joined: 18-April 07

Re: Should I Change To Ruby?

Posted 13 October 2008 - 01:35 PM

The correction is, no-one language is better than another just one language can be suited to a particular job more than another.

Here is the low down...

1) Ruby is easier for the beginner to learn because it reads easier, is very flexible with syntax and can be straight forward. Problem is that it doesn't have its own GUI setup.

2) Java has the GUI (using java.awt and javax.swing packages) and is more powerful than Ruby and a lot bigger than Ruby. It has more principles that apply to object oriented programming as you would see in other languages (which you will need to learn eventually) as well as more support. Problem is that it can be a more cryptic at times and the syntax is more rigid.

3) As noted earlier, Java is NOT necessarily faster than C++ (keep in mind that Java came out of C++... ever notice the similarity in syntax?) and actually C++ can be drastically faster than Java because it doesn't run in a virtual machine and can be native. Not saying Java is better or worse than C++ but know where they are coming from before making a generalization like that.

4) As for game making, if you want a visual game then Java will probably be what you want to use. Ruby lacks the graphics power but could make great little text based games.

5) Ruby is an interpreted language which means that it is executed on the fly as it is being read while Java is compiled which means, in many situations, it is faster once compiled because it runs straight from memory.

Personally I don't think the two are really at all equals because they have radically different purposes. Java is more of a compiled full blown desktop and applet language while Ruby is an interpreted off the cuff typically web useful language (ruby is typically ran on rails). They have their own strengths but if you are just wondering which can be easier to learn, Ruby would have a significant advantage due to its lack of strict syntax, easy to read commands and quick development time for small programs.

:)

This post has been edited by Martyr2: 13 October 2008 - 01:36 PM

Was This Post Helpful? 0
  • +
  • -

#14 richs-lxh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-November 08

Re: Should I Change To Ruby?

Posted 09 November 2008 - 06:00 PM

For what it's worth, I would look at different games, scripts, apps and check out the code which produced the ones you like. If you like an online game, then see how it was written and emulate it, hack it about and make changes. You learn from breakage and repair.

For example, I admin forums, so I learned php. There are certain ruby Linux applications i like so I learned ruby. Back in the day when I wanted a website, I learned html. Just learn the code for the result that you want.

I am a proud jack of all trades, master of none. There is a saying that says "knowing a little about a lot is dangerous", well I never killed anybody with a badly coded forum script ;)

This post has been edited by richs-lxh: 09 November 2008 - 06:00 PM

Was This Post Helpful? 0
  • +
  • -

#15 c0mrade  Icon User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 412
  • Joined: 16-November 07

Re: Should I Change To Ruby?

Posted 31 January 2009 - 08:06 PM

OP, what do you want to do; become a programmer or write a program?

A language like Ruby might have you doing more complex things quicker, but that is not really a good thing. You will not get too far if you do not learn how things work before using them. With Ruby and Rails you could be writing full web applications in very little time - BUT - you will have no idea what your doing. What does that accomplish?

You say that the "memory stuff" in C++ is "hard". But that memory stuff has to happen whether you like it or not, and you cannot really be a 'programmer' without knowing what your telling the computer to do!

Basically what I'm trying to get out is learn from the ground up, not the other way round.

So my advice: learn C. Yes - plain old C (not C++). Let me explain. C is a simple, lean, and easy language. You expressed confusion doing simple things in Java, this is because Java is designed to solve a lot of complex problems, C, on the other hand, is designed simply for the manipulation of the machine. Please, start with C, learn how things work, and then move to higher level languages when you just need to get stuff done, or start solving more complex problems.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2