News for hackers. Stuff that matters.
Re:Ask HN: PHP or ROR. by mcav on Sunday November 08, 2009 @05:23PM (#929915)
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. by jaddison on Sunday November 08, 2009 @05:35PM (#929931)
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. by hajrice on Sunday November 08, 2009 @05:37PM (#929933)
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. by mcav on Sunday November 08, 2009 @05:43PM (#929938)
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. by jaddison on Monday November 09, 2009 @12:14AM (#930438)
When I first started using Django, I wasn't sure about it either, for a few different reasons - but performance wasn't one of them. Long story short, I'm glad I invested the time in taking it up...

Django was actually my first use of Python - so you can imagine how pleased I was to replace a custom PHP app with something I just learned - and in record time. (if you're interested, the web app was: http://www.snapact.com/)

I have noticed no issues with performance as compared to PHP.

Re:Ask HN: PHP or ROR. by jaddison on Monday November 09, 2009 @12:22AM (#930452)
This is an old link (that I wish would be updated) about performance of some various frameworks (in various languages):

http://www.alrond.com/en/2007/jan/25/performance-test-of-6-l...

Re:Ask HN: PHP or ROR. by gridspy on Sunday November 08, 2009 @05:48PM (#929950)
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. by hajrice on Sunday November 08, 2009 @05:26PM (#929919)
Thanks, I'm pretty good in php. I love the Kohana PHP framework.