TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rails or Laravel?

2 点作者 matthewjames超过 10 年前
Hello hackers!<p>I am currently a front-end dev with a good background in html5, css3, and of course js&#x2F;jQuery. I have had previous experience with PHP a in the past making my own login systems for clients and doing simple DB requests, API requests, etc.<p>I am wanting to expand my programming knowledge-base and have started some of the basic intros into Ruby, and learning Ruby on Rails. Then I came across Laravel. I am wanting to brush up on these for some upcoming startup opportunities I will be having and have about six months of preparation time to learn.<p>From someone that has some prior experience in PHP already, what would be more beneficial (long term and short) to learn? Please respond with what choice and why you would make that choice.<p>Thanks in advance!

4 条评论

gamechangr超过 10 年前
Ruby on Rails. It&#x27;s a little bit harder to learn that PHP, but if you question is &quot;more beneficial&quot;....totally Ruby on Rails.
jardaroh超过 10 年前
I am biased, I will admit, but neither of the choices you presented is optimal. If I were you I would opt for Python&#x2F;Django. Let me explain why.<p>PHP is in a terrible state, they are working on cleaning it up but it will take some time. You should not abandon PHP yet, but neither should you rely on it. Also PHP&#x27;s scope of use is extremely limited. Laravel is quite good, but having worked with it for a while I feel it gets very messy.<p>RoR is good if you want to puzzle together CRUD applications. But if you want to make something other than CRUD it gets in the way far too often. I am sure more experienced RoR users will jump in and holler &quot;you just haven&#x27;t gotten used to it yet!&quot; like they usually do. Might sound like I am bashing their community, but truth be told, they are very supportive if you choose to join their club.<p>Django is in my experience the best documented framework for web development. There are so many batteries included that you will be hard pressed to find something you need to do that it won&#x27;t do out of the box. Being a Python framework it will run on most operating systems out of the box for development purposes as they come with Python built in. You can use Python for any type of development you want (Ruby can be used for any type as well, but have a lot more gotchas across environments)
grzesiekb超过 10 年前
Hi.<p>I&#x27;m developer who works with PHP for more than 12 years so far, and with Ruby&#x2F;RoR for more than 2 years.<p>I would suggest you to stick to PHP to gain some experience, because Ruby&#x2F;RoR programming requires some experience in order to not screw things up.<p>But Ruby gives you much more possibilities, however if you don&#x27;t have experience and don&#x27;t know what is best practice you can create a lot of junk code and chaos leading to serious problems (like your apps performance).<p>Cheers, Grzegorz
flpierre超过 10 年前
Hello,<p>I am web dev, and I work with PHP and RoR (for 2 months). My first impression is that Ruby allows better productivity and fun than PHP. In my case, PHP seemed easier to learn.