Live data from Hacker News

Ask HN: PHP or ROR.

news.ycombinator.com

1–10 of 19 posts

Ask HN: PHP or ROR.

#1
What do you prefer to use for your projects, RubyOnRails or PHP? Please, share your experiences.

I love PHP, tried Ruby though since I'm a Windows user, it didn't go quite well!

Re: Ask HN: PHP or ROR.

#3
I like Python. Fast to develop in like Ruby, but also well-suited to many different types of programming tasks.

If you're looking to learn a new language, Python's my advice. Ruby is good too, but it seems to be primarily used for web development.

If you already know PHP, learn any new language -- be it Python, Ruby, or something else. It's a good investment that will pay off in the long run no matter which language you choose.

Re: Ask HN: PHP or ROR.

#4
post #3

I like Python. Fast to develop in like Ruby, but also well-suited to many different types of programming tasks. If you're looking to learn a new language, Python's my advice. Ruby is good too, but it seems to be primarily used for web development. If you already know PHP, learn any new language -- be it Python, Ruby, or something else. It's a good investment that will pay off in the long run no matter which language…

Thanks, I'm pretty good in php. I love the Kohana PHP framework.

Re: Ask HN: PHP or ROR.

#5
post #3

I like Python. Fast to develop in like Ruby, but also well-suited to many different types of programming tasks. If you're looking to learn a new language, Python's my advice. Ruby is good too, but it seems to be primarily used for web development. If you already know PHP, learn any new language -- be it Python, Ruby, or something else. It's a good investment that will pay off in the long run no matter which language…

I'd second the Python recommendation. Switching from custom PHP to Python (specifically Django) saved me a ton of development headaches.

Re: Ask HN: PHP or ROR.

#6
post #5
post #3

I like Python. Fast to develop in like Ruby, but also well-suited to many different types of programming tasks. If you're looking to learn a new language, Python's my advice. Ruby is good too, but it seems to be primarily used for web development. If you already know PHP, learn any new language -- be it Python, Ruby, or something else. It's a good investment that will pay off in the long run no matter which language…

I'd second the Python recommendation. Switching from custom PHP to Python (specifically Django) saved me a ton of development headaches.

Yeah, I used Django a few times before. It's very nice.

Though, Django is pretty slower than any PHP framework(from the frameworks I've worked with)

Re: Ask HN: PHP or ROR.

#7
post #6
post #5

Earlier quoted context omitted.

I'd second the Python recommendation. Switching from custom PHP to Python (specifically Django) saved me a ton of development headaches.

Yeah, I used Django a few times before. It's very nice. Though, Django is pretty slower than any PHP framework(from the frameworks I've worked with)

That's likely a false impression, and has to do with things like number of database calls, design, and other non-language-defining features. Don't let perceived speed be the deciding factor in your language choice: If speed was that important, you'd be writing in C.

Re: Ask HN: PHP or ROR.

#8
I personally love Django (http://www.djangoproject.com/) the python equivalent of RoR. I love the way it encourages me to architect my code well, rather than being encouraged to hack up every page (all too easy in PHP).

It was easy to set up, has great documentation and an active community, and lots of encouraging case studies.

Re: Ask HN: PHP or ROR.

#9
post #6
post #5

Earlier quoted context omitted.

I'd second the Python recommendation. Switching from custom PHP to Python (specifically Django) saved me a ton of development headaches.

Yeah, I used Django a few times before. It's very nice. Though, Django is pretty slower than any PHP framework(from the frameworks I've worked with)

Perhaps it is possible that Django's highly flexible nature is giving you enough rope to hang yourself here. Performance is not an issue for me, though (as always) I have to be careful not to do stupid things to the database.

Re: Ask HN: PHP or ROR.

#10
Definitely prefer Rails.

PHP just can't match the Ruby language, and I have yet to find a PHP framework with the sheer level of awesome of Rails.

I currently have both Rails and PHP apps in production, and these days I charge extra to work in PHP because I know it will take me a lot longer.

Post reply on HN