Re:Why PHP is Still Better than Ruby
by Raphael_Amiard on Thursday April 09, 2009 @12:03PM
(#554586)
I'm maybe not getting the HN philosophy, but this kind of useless posts should better be voted down than up in my opinion. You bring nothing new to the table except your useless hate about what the author has to say.
I'm no php fan either, neither a Ruby one. I'm not that involved into language wars to be honest. To my naïve eye, this article just sounds satiric and fun. It's not meant to be serious, and, no matter what is your definition of fun, i find it hard to take that personnally.
Also, if you really want to take this article seriously, there is quite a bit of consensus around the fact that PHP has MANY shortcomings that are not present in other dynamic languages. I won't argue in lengths about that, but if you replace "Ruby" by "Python" here, the article doesn't change a lot.
So if you're really offended by this - fun - post enough to register on HN just to post a troll about it (what is to be digged up in this guys seriously, the part about cocks ? duh ..), why don't you chill up, grab a beer, and forget about computers for a moment ?
Re:Why PHP is Still Better than Ruby
by mechanical_fish on Thursday April 09, 2009 @12:23PM
(#554625)
The title of this post is pure, unadulterated linkbait. It is not surprising that people are responding with reflexive revulsion. This submission attracts an audience and then rudely spurns them.
Jokes about dead people can be funny. Inviting people to a relative's funeral and then bringing on a comedian to tease them about their formal clothes is... not funny.
Re:Why PHP is Still Better than Ruby
by jmtame on Thursday April 09, 2009 @12:12PM
(#554598)
I think this type of thread needs flagged and removed altogether. It serves no intellectual purpose, I personally don't like reading stuff that's presented in this type of way.
*Edit: thanks for deleting this. I don't see anything wrong with pointing out the differences between ROR and PHP, but the trolling is getting old.
Re:Why PHP is Still Better than Ruby
by jon_dahl on Thursday April 09, 2009 @11:52AM
(#554563)
There are a-holes that use every language. Ruby actually had a reputation of being a really nice community until about 2007, and most of those people are still around (despite the influx of some less savory types).
Personally, I really wish developers didn't get stereotyped based on their programming language of choice, and communities weren't pigeonholed based on a few loud members.
Re:Why PHP is Still Better than Ruby
by scorxn on Thursday April 09, 2009 @11:51AM
(#554560)
Just the insecure ones. If someone charismatic were to write and present "PHP: The Good Parts," it'd suddenly be in style among the tool polishers again.
Re:Why PHP is Still Better than Ruby
by utsmokingaces on Thursday April 09, 2009 @11:27AM
(#554510)
I am comparing PHP Frameworks vs Ruby on Rails because that is a closer and more relevant comparison.
PHP frameworks such as Codeigniter are dead simple to use. They do not have the deployment, scaling, and performance headaches that Ruby On Rails has.
I don't get why people worship ROR, maybe because it is the original MVC framework.
Why hate on PHP when the popular and most successful website runs on it (facebook, yahoo, flickr, wikipedia, digg)?
The only mainstream ROR sites is Twitter which is still buggy even though it is 50x simpler than Facebook. I wouldn't put Basecamp into that category yet.
Re:Why PHP is Still Better than Ruby
by chaostheory on Thursday April 09, 2009 @12:05PM
(#554589)
the problem with most PHP frameworks (symfony, cake, yes even code igniter) is that they are much slower than Rails (by at least 4x). They don't buy you anything unless you're not willing to learn anything beyond PHP. in terms of deployment, you don't have to use capistrano; if you want you can manually deploy rails like php
another problem with PHP compared to x language is that it's too web centric; it's just not flexible enough
imho You're better off either using Rails or Django, but thats me
Re:Why PHP is Still Better than Ruby
by chaostheory on Thursday April 09, 2009 @02:13PM
(#554841)
"Would less web-centric mean being useful in making desktop apps?"
yes that and bots, and God knows what other back end programs; PHP is decent at the one thing it does (way better than Perl 5 - the thing it replaced), but why limit yourself to just being able to code only web apps? to me that's PHP's biggest weakness, but again that's just my opinion
to me what I still don't understand is why people aren't willing to learn and migrate to either ruby or python... they are very easy to use and understand (just as easy as PHP imo), while being very powerful and flexible at the same time; plus they're popular enough with large enough communities (though yes at times there are jerks in the ruby side - but they are very helpful when asking ruby questions)
Re:Why PHP is Still Better than Ruby
by tommusic on Thursday April 09, 2009 @02:46PM
(#554904)
Thanks for clarifying some more!
I've been using PHP almost exclusively when doing stuff for the web, but frequently feel that I want to pick up both Ruby and Python. I still haven't actually done it yet.
It isn't a lack of community or the presence of jerks that keeps me from getting there. A big part of it is that it seems to take a bit of a different infrastructure to get started. This may be somewhat driven by misunderstandings.
If I want to incorporate a great library that someone wrote in PHP, I drop the source in and start linking to it. File system operations; I know those. For others, say Ruby, it seems like I'd need to run an installer that grabs files and places them somewhere. Then I type out a text file and run another script that builds my database. I don't know how that clock works, so I don't feel comfortable basing my schedule on it yet.
It seems like an awesome way to do things, and I'm excited about getting into it, but I'm making time tradeoffs between (learning another language and how to manage apps) and (day-job and building project ideas that I love).
The key is going to be to shift (learning another language ... etc) onto the project stack.
Re:Why PHP is Still Better than Ruby
by chaostheory on Friday April 10, 2009 @01:43AM
(#555761)
just remember the older you get, the harder it will be to learn new tricks =) (from what I've seen it's very rare for a programmer to know more than 1 or even 2 languages)
everything new is hard and initially inconvenient until you get past the initial hump
Re:Why PHP is Still Better than Ruby
by tommusic on Friday April 10, 2009 @12:01PM
(#556217)
Thanks for the tip! I'll spend some time reading on what those both provide; I think that once I'm writing code and watching it perform I'll have to motivation to pull myself over the other hurdles.
Re:Why PHP is Still Better than Ruby
by jmtame on Thursday April 09, 2009 @11:59AM
(#554574)
The fact is, both ROR and PHP are good in different scenarios. CodeIgniter allowed me to build HnDir.com in <8 hours, and I'm using ROR on my current project. But this constant bashing of the other language treating it like PC vs Mac is just absurd.
Re:Why PHP is Still Better than Ruby
by nir on Thursday April 09, 2009 @11:56AM
(#554566)
It says "They do not have the deployment, scaling, and performance headaches that Ruby On Rails has". From my experience, it's true, even with Passenger (though much better than before).
Re:Why PHP is Still Better than Ruby
by ashleyw on Thursday April 09, 2009 @12:20PM
(#554613)
Facebook, Yahoo, Flickr and Digg all use non-PHP solutions for the back end.
Rails can scale fine once you realize it's not magic; you take a hit from using a framework designed to make developers happy, not servers, but you can work around it — at the end of the day, Ruby isn't slow like people make it out to be.
Re:Why PHP is Still Better than Ruby
by mildweed on Thursday April 09, 2009 @11:42AM
(#554542)
It only reads like a natural language if you have already learned how to read ruby. To the rest of us, its still just just Heavenly Script.
(http://languagelog.ldc.upenn.edu/nll/?p=1024)
Re:Why PHP is Still Better than Ruby
by JeremyChase on Thursday April 09, 2009 @12:21PM
(#554616)
I'm guessing it was downvoted because it was written in a snarky way.
Personally I don't understand the need for code that looks like natural language. This is probably because I grew up in the world of C/C++, and I find php to be the most relatable. When I look at Ruby I have to think about what the heck they are talking about.
Considering how popular Ruby is I have often thought of spending more time with it, but it is so slow I just can't get my head around bothering. PHP using opcode cachers(xcache) and a good webserver (lighttpd) will run very fast...
I'm no php fan either, neither a Ruby one. I'm not that involved into language wars to be honest. To my naïve eye, this article just sounds satiric and fun. It's not meant to be serious, and, no matter what is your definition of fun, i find it hard to take that personnally.
Also, if you really want to take this article seriously, there is quite a bit of consensus around the fact that PHP has MANY shortcomings that are not present in other dynamic languages. I won't argue in lengths about that, but if you replace "Ruby" by "Python" here, the article doesn't change a lot.
So if you're really offended by this - fun - post enough to register on HN just to post a troll about it (what is to be digged up in this guys seriously, the part about cocks ? duh ..), why don't you chill up, grab a beer, and forget about computers for a moment ?
Jokes about dead people can be funny. Inviting people to a relative's funeral and then bringing on a comedian to tease them about their formal clothes is... not funny.
*Edit: thanks for deleting this. I don't see anything wrong with pointing out the differences between ROR and PHP, but the trolling is getting old.
Personally, I really wish developers didn't get stereotyped based on their programming language of choice, and communities weren't pigeonholed based on a few loud members.
s/you Ruby/some/
Others of us try to be polite.
PHP frameworks such as Codeigniter are dead simple to use. They do not have the deployment, scaling, and performance headaches that Ruby On Rails has.
I don't get why people worship ROR, maybe because it is the original MVC framework.
Why hate on PHP when the popular and most successful website runs on it (facebook, yahoo, flickr, wikipedia, digg)?
The only mainstream ROR sites is Twitter which is still buggy even though it is 50x simpler than Facebook. I wouldn't put Basecamp into that category yet.
Oh come on. Yellow Pages, Urban Dictionary, Hulu, 43 Things, ... http://rubyonrails.org/applications
Um, what? No. RoR is rather late to that game. You might be interested in http://en.wikipedia.org/wiki/Model-view-controller#Implement...
another problem with PHP compared to x language is that it's too web centric; it's just not flexible enough
imho You're better off either using Rails or Django, but thats me
Would less web-centric mean being useful in making desktop apps? What other dimensions of flexibility do you have in mind?
yes that and bots, and God knows what other back end programs; PHP is decent at the one thing it does (way better than Perl 5 - the thing it replaced), but why limit yourself to just being able to code only web apps? to me that's PHP's biggest weakness, but again that's just my opinion
to me what I still don't understand is why people aren't willing to learn and migrate to either ruby or python... they are very easy to use and understand (just as easy as PHP imo), while being very powerful and flexible at the same time; plus they're popular enough with large enough communities (though yes at times there are jerks in the ruby side - but they are very helpful when asking ruby questions)
I've been using PHP almost exclusively when doing stuff for the web, but frequently feel that I want to pick up both Ruby and Python. I still haven't actually done it yet.
It isn't a lack of community or the presence of jerks that keeps me from getting there. A big part of it is that it seems to take a bit of a different infrastructure to get started. This may be somewhat driven by misunderstandings.
If I want to incorporate a great library that someone wrote in PHP, I drop the source in and start linking to it. File system operations; I know those. For others, say Ruby, it seems like I'd need to run an installer that grabs files and places them somewhere. Then I type out a text file and run another script that builds my database. I don't know how that clock works, so I don't feel comfortable basing my schedule on it yet.
It seems like an awesome way to do things, and I'm excited about getting into it, but I'm making time tradeoffs between (learning another language and how to manage apps) and (day-job and building project ideas that I love).
The key is going to be to shift (learning another language ... etc) onto the project stack.
everything new is hard and initially inconvenient until you get past the initial hump
Rails can scale fine once you realize it's not magic; you take a hit from using a framework designed to make developers happy, not servers, but you can work around it — at the end of the day, Ruby isn't slow like people make it out to be.
Tell HN: "Ruby vs. PHP" is not of interest to good hackers. http://news.ycombinator.com/item?id=554608
And by sucks I mean "reads like a natural language and rules".
Your opinion that this snippet reads like a natural language and is therefore useful is well taken.
Personally I don't understand the need for code that looks like natural language. This is probably because I grew up in the world of C/C++, and I find php to be the most relatable. When I look at Ruby I have to think about what the heck they are talking about.
Considering how popular Ruby is I have often thought of spending more time with it, but it is so slow I just can't get my head around bothering. PHP using opcode cachers(xcache) and a good webserver (lighttpd) will run very fast...
Jeremy