TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Should I code my next project in PHP or Ruby?

8 pointsby C1Dalmost 12 years ago
Hello, I'm a PHP developer and I'm working a new video hosting project and was wondering if I should learn Ruby and then code it in that or just use what I'm good at, PHP. Thanks :)

11 comments

tanguealmost 12 years ago
If you can do it in php do it. Don't waste your time learning another language. Focus on your product, not on what the average geek says.
评论 #5751909 未加载
micromartyalmost 12 years ago
I had this dilemma while back. I decided to suck it up and learn Ruby and Rails. I now realized that I hate PHP and have used rails, django, and play for all of my web applications and have not looked back.<p>If you are in a learning mood, I'd say go with rails.
dragonwriteralmost 12 years ago
<i>Personally</i>, I prefer Ruby to PHP. But:<p>If the point is to build the video hosting project, and you are productive using PHP, then that's probably the best option.<p>If the point is to increase the breadth of your development skills while building the video hosting project, choosing a new language like Ruby might make sense.<p>If you've identified a specific technical challenge in what you want to do that makes PHP problematic, investigating alternatives (including different languages, though that's probably not the first thing to look at) for that particular problem also makes sense.
评论 #5751672 未加载
PLenzalmost 12 years ago
Code is code - it's the concepts behind it that matter. If this is going to paying project then go PHP - it's what you know and you'll be able to get it done faster and probably with higher quality. If this is just a project for your own gratification then I suggest Ruby - or Node.js or Haskell or Erlang or 8086 Assembler or ... It doesn't matter. When you are your own client you do what you need to do to make you happy. Doing something because we busy bodies on HN think you should ultimately does nothing for my happiness or yours.
评论 #5751712 未加载
Sealyalmost 12 years ago
I was in the same boat as you a few months ago.<p>Then I thought to myself. I wonder if Zuckerberg back in 2004 asked himself that.<p>If Facebook is capable of running the most popular website in the world successfully on PHP, then it'll probably be good enough for me!<p>My vote goes for PHP. Stick with what you know.
ryanwjacksonalmost 12 years ago
I was in the same shoes, and I decided to learn Rails. I haven't looked back since, but then again, I was in a startup and wanted to walk out with some new skills.<p>Rails is great, not for everything, but it does make standing up a new site pretty darn easy. Personally, I won't touch PHP again if I have my choice.
评论 #5751656 未加载
wldlyinaccuratealmost 12 years ago
I'll just reiterate what other people have already said: If this is a serious project then stick with what you know. By all means, learn Ruby by using it for some side projects, but don't use it for serious projects until you <i>really</i> understand it or you'll just end up writing bad code.
jeffasingeralmost 12 years ago
Ruby (or my recommended choice of Python) is likely going to take you longer in the short term than PHP is. But you'll probably save some time with maintenance and new features in the future, and learn something new.<p>So, if you're not in a big rush, I'd learn a better language than PHP.
xauronxalmost 12 years ago
Nothing wrong with PHP, just use what you know and are good at.
评论 #5754275 未加载
AbhishekBiswalalmost 12 years ago
If you're comfortable with PHP, and have previously used it in some other project, do it with PHP. Because if you learn a new language now, you'll lose a lot of time.
aitharajalmost 12 years ago
Ruby on Rails. It saves you so much time and its beautiful.