Should I learn PHP or Ruby? by Sergei Smit
Answer by Sergei Smit:
PHP or Ruby? My advice is Ruby.
1. Ruby is very easy to learn. In fact, I can't name any easier language to study. Such a low entry barrier can be explained by a simple and intuitive syntax, easy access to some of the best learning resources, online courses and tests, and very friendly community.
2. There is a high demand for Ruby, mostly thanks to Ruby on Rails, of course. It would be more accurate to say that there is a high demand for developers who use this framework. Moreover, the average salary for a Ruby programmer is higher than, for example, that for PHP-programmers.
One of the possible reasons is that the number of Ruby developers is kind of limited and the number of really cool developers using this language is even fewer. However the percentage of good programmers using Ruby is higher than that of good programmers using PHP.
3. Ruby is a full-fledged language. It is supported by a vast, well-developed and sustainable ecosystem with a number of libraries using which you can solve any problem. In some programming languages, for some tasks you will have to reinvent the wheel. But because in Ruby we have a very friendly and helpful open source community, Ruby guys hardly ever experience problems like that. I'm not even talking about the fact that, with the standard means of language available, one often has no need to consult any extra libraries.
4. Writing your code in Ruby is always fun and exciting experience. It is difficult to substantiate such a claim, but you will know what I mean when you first try it yourself.
Some getting started resources:
– an article for those who are confused about choosing between Rails and PHP. After reading this article the choice will be obvious
– if there is someone who knows how to write a pretty awesome code, these are the guys from GitHub;
– the official website that serves as an excellent introductory course to Ruby programming;
– a free online course on some Ruby basics (very cool design). A must for all newbies to Ruby;
– a set of exercises where you have to write code that passes the
– a relatively new book about writing an awesome clear code in
– Screencasts about Ruby and Rails;
– Screencasts about Ruby, some episodes come free of charge;
– online courses that teach Ruby and a number of other technologies. Free of charge to follow but after a certain stage you would certainly have to pay;
– a list of resources for learning programming.