News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mike Naberezny's Blog:
PHP Secret Santa
December 16, 2005 @ 07:40:48

In the spirit of the holiday, Mike Naberezny has his own take on the whole "simplicity" and "clean code" arguments between the different camps (PHP/Python/Ruby) and gives an example of a simple way PHP can handle your Secret Santa needs.

Today, I ran across Ruby Secret Santa. I couldn't help but think to myself, "That's sort of nice looking but wow, for a little thing like Secret Santa, how much overkill is that?" Here's the same thing in PHP, minus the database fetch (add it in two lines).

That's less than half the code. I think this is a fair comparison because it directly compares PHP to Ruby, without any "frameworks" or other middleware in between. Which one do you think is extremely simple?

I like how he puts it as well:

I think that Rails is a phenomenal tool, but it's tooling '" not a language. I am sure that great tools will come for PHP as well, and that PHP itself will always be a language that is both highly productive and high performance. Do you Yahoo!?

0 comments voice your opinion now!
secret santa ruby python simplicity clean secret santa ruby python simplicity clean


blog comments powered by Disqus

Similar Posts

/Dev/Hell Podcast: Episode 20: Chris Hartjes's Kitchen Nightmare

Greg Beaver\'s Blog: My language is bigger than your language so nyah nyah

CIO Magazine: PHP, JavaScript, Ruby, Perl, Python & Tcl Today: The State of the Scripting Universe

PHP 10.0 Blog: php -T (variable tainting)

Reinhold Weber's Blog: From PHP to Ruby - 30 similarities and differences


Community Events











Don't see your event here?
Let us know!


code component introduction release package symfony2 example facebook security composer application install overview unittest opinion hhvm hack podcast language framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework