Reasons that PHP is better than Ruby
najafali.com
najafali.com
1. focus on some of the ways that Ruby is better than PHP
2. lie about the topic in the title
3. have an annoying sarcastic tone throughout.
-1This "satire" is merely stating his point backwards, not cleverly exposing hidden flaws in an idea. Nobody touts the inconsistency of PHP's standard library as a strength of the language. Not many people even claim that PHP is better than Ruby. The positions he purports to make fun of aren't real. He's beating a dead unicorn.
It doesn't matter if you develop in php, ruby, python, asp or whatever, if you're a good coder you will produce good secure code, if you suck, so will your code.
Can we stop the language flame wars now?
So not just the tone of the discussions, but also the way questions are asked, how new people to communities are treated, the length and style of response and discourse.
People basically use it to say "the tone++ of the discussion" to badly abuse a programming metaphor.
Can we just move on as a development community and let each developer/team choose whatever language, framework, or toolset they find suits them best?
Done deal, we can stop fighting about it now.
Some of the things I "think" he was ripping on PHP for are some of my favorite things.
I don't program in Ruby and the part where he said the code didn't make sense - well, it didn't. But was he saying it did sarcastically? Or was he saying it was good that it couldn't be read?
Anyway, I wish I had a down arrow next to articles for this one because I really didn't like the way this was done.
For me, Python is the place to go if you want a good language with an emotionally mature community. Maybe that will change, just like it has for Ruby.
Luckily, there's always the PHP community for people who will never cop an attitude about how beautiful their language is. Such is the inevitability of a pragmatic, patchwork language.
You'd scarcely need any developers at all to maintain that ruby class.
If all you're doing is returning the internal value, or setting it blindly to the value provided, why bother? Why not just directly access the member variable if you're not doing any parameter validation or business logic?
Does Ruby provide some syntactically elegant mechanism for adding logic to the getters and setters? Because as it stands, it looks like Ruby has an elegant solution for a problem that didn't actually exist.
[0] Not quite; see Object#instance_variable_get. But that's cheating, ugly, and generally frowned upon.
[1] Not quite, but the difference is an implementation detail.