News Feed
Sections




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

Adam Bard:
The Same App 4 Times PHP vs Python vs Ruby vs Clojure
March 27, 2013 @ 09:13:35

Adam Bard has written up a post that takes the same small application (a "Nurblizer") and writes it as a web application in four different languages - PHP, Python, Ruby and Clojure. His point is less about which is "best" but more to show the differences between them.

Here's a toy program I wrote implemented in PHP, Python, Ruby, and Clojure. I hope it's helpful for someone who knows at least one of those and wants to learn another. The program is called "Nurblizer", and it does one thing: Accept free-form text, and attempt to replace all words but the nouns in said text with the word "nurble". It's up and running at http://nurblizer.herokuapp.com

He includes the source for each language's version using Sinatra for Ruby and Flask for Python but for PHP and Clojure it's just straight code. For each he briefly explains what its doing and a bit about how it relates to the examples from the other languages. He also points out a Hacker News discussion that's popped up about the examples.

0 comments voice your opinion now!
flask python clojure ruby example nurblizer compare


blog comments powered by Disqus

Similar Posts

Lorna Mitchell's Blog: 3 Ways to Access a Namespaced PHP Class

DZone.com: Trying out PHP Refactoring Browser

Christopher Jones' Blog: Guide to PHP and Ruby/Ruby on Rails Sessions at Oracle OpenWorld 2007

Perl.com: Programming is Hard, Let's Go Scripting...

Padraic Brady's Blog: Any Behaviour-Driven Development Tools for PHP?


Community Events





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


interview install podcast opinion testing release symfony2 unittest threedevsandamaybe configure code framework laravel list language community developer refactor introduction series

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