Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSuli S
1,475 PointsIs Ruby a good language?
Hi
I want to know is Ruby a good language to start with? As you know for a beginner he/she should choose a good programming language to start with to learn the OOP basics, etc.
I have heard good things about Java as a starting language but I don't know about Ruby. So, what do you think?
8 Answers
sitkibagdat
27,311 PointsIf you want to learn OOP basics, Ruby will definetly the best choice, also it has build in functional programming structures. Java or other languages have some gaps in their OOP concepts, but in Ruby, nearly everything except a few like blocks is an object. So, you can practice OOP more accurately.
As a result, spending your time with Ruby is not a bad idea.
dhillonsh
4,745 PointsRuby is a very powerful language and will certainty mind boggle you at times if you are inexperienced with programming. The amount of effort to learn it will force you to appreciate its abilities if you wish to transition to Ruby on Rails, web server component of Ruby. I personally learned PHP as my first programming language, without real consideration of what I was getting into to and I felt Java would have been a smoother learning process as it is not as complex as Ruby can be yet still entails a powerful engine. I would suggest attempting Java and then venturing off into Ruby later on once you have a strong understanding of the fundamentals.
Maxim Kontsevitch
25,447 PointsRuby is a very powerful language. It has a very powerful function that applied with a simple install of GEM. Ruby also has a friendship and javascript features. But you should know first JavaScript then start learning Ruby. If you like to build a social app, I strongly recommend using ruby and Ruby on Rails. It is better than writing lots of code in PHP. Ruby might seem complicated but it is only a little, it is a challenging language. Little Tip: if you want to build an authentication system download rails 3.2.16 to keep out of trouble in the future. Hope that help's you.
sitkibagdat
27,311 PointsGood points, but Ruby != Rails
dhillonsh
4,745 PointsA social networking website, you could accomplish with both PHP/HTML or Ruby/Ruby on Rails. Ruby and Java are similar in that they both are very focused in the use of Objects; however, Ruby is a lot less strict when initializing variables. In java you would have to declare that your variable is an integer/string/etc. whereas in Ruby you don't. There's a great deal of similiarities and differences, here's a short summary of some: http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-java/ . Ruby on Rails is the web framework while Ruby is the server sided programming; so essentially RoR serves the same purpose as HTML.
Ricardo Hill-Henry
38,442 PointsAlright, thanks for your responses. I think I'll take on PHP and maybe JSP as a back up/ alternative.
Ricardo Hill-Henry
38,442 PointsI also am curious about this. I want to know which would be better, or more suitable, Ruby or PHP? Java is my first language I learned, so by the sounds of it, the basics shouldn't be very hard to grasp? I hear PHP can be quite messy since it's not very structured, or organized; but it is s[ecifically for the web and powers some of the biggest sites on the web. Then I hear Ruby gives the programmer a better way to organize their code, but does nothing more than what PHP can do..So I'm left with the question, which should Iearn, first perhaps?... I wouldn't touch the other until later down the road. I'm only 17, so I'm sure standards will change, etc.
dhillonsh
4,745 PointsIt depends on what you plan on doing. PHP is very simple if you plan to use it as the back end for a web server, although it is made for beginners. Ruby on Rails would be far more structured and organized; however, it would probably take more time to understand and become proficient. If you have a strong basis of OOP, then I would definitely give Ruby on Rails a shot.
Ricardo Hill-Henry
38,442 PointsSo if I wanted to go into more social networking, would you guys recommend Ruby over PHP? And how similar is Ruby to Java? What are the differences between Ruby and RoR?
James Barnett
39,199 PointsRuby is all object oriented all the time as they say "everything in Ruby is an object".
Suli S
1,475 PointsI know that but this is not my question. :)