开发者

Would it be okay to learn Ruby On Rails? [closed]

开发者 https://www.devze.com 2023-01-10 19:32 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 12 years ago.

I know HTML&Css, Little Javascript & Little PHP. I really want to get in the world of programming languages and I think Ruby looks way better then PHP. But I might be wrong.

Should I stick learning PHP? Or should I go along with Ruby On Rail开发者_高级运维s?


I think you should learn the technologies in the LAMP stack.

If you are into web development, its important to build up a good foundation with HTML+CSS+JS. Personally, I believe that PHP is a good starting point, given the vast resources/help there are on PHP. In the long run, I think that learning PHP will pay off. Most people who know Ruby have prior experience in PHP. Its OK to learn Ruby once you have a good understanding of LAMP.


This is a pretty much a subjective question. RoR is popular for getting things done quickly. That doesn't mean that you can't also be efficient with PHP. There have been some scaling issues with RoR, but I'm not sure if that issue is inherent to RoR or simply due to its relative youth. There are some oddities inherent to PHP for historical reasons. (E.g. variations in function naming conventions, function argument order and some weirdness in OOP, to name a few.)

Ultimately, you'll want to try them both in order to decide for yourself. Being relatively new to programming, you may want to pick one and stick with it for a while. However, there's no reason that you can't use either one, as appropriate for your needs. As kingjeffrey states, they are both just tools. As I like to think of it, programming is a state of mind, the languages are just syntax.


The answer depends upon what you plan on building. If you will be building vanity websites and blogs, stick with PHP (and a CMS or two, like WordPress). If you will be building more involved web apps, learn Ruby (and the Ruby on Rails framework).

I've done (and do) substantial work in both. At the end of the day, they are just tools. To know what tool is right for the job, evaluate the job.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号