News Feed
Sections




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

RubySource.com:
Confessions of a Converted PHP Developer Ugly Code
April 13, 2011 @ 13:12:02

On RubySource.com there's a recent post with a bit of a confession from an ex-PHP developer who's moved over to Ruby about some of he is experiences in making the shift and why he's a convert now.

I've been a PHP developer for nearly a decade, and in January this year I started developing in Ruby. While initially a sceptic, I'm now a convert - and I'm here to share my experiences with you. [...] I'd like to think of myself as a fairly good PHP developer, and the idea of moving to Rails was both scary and exciting. [...] In Ruby's defence, these are frustrations that are well made up for with the delights of finding out how easy other things are to do - and any learning process has its frustrations.

He compares a bit of code that would take a list of email addresses and pull out the domain parts of each, grabbing only the unique ones. He includes some PHP code (using anonymous functions in PHP 5.3) to get the job done and compares it to the Ruby method that's a bit more fluid and readable. He talks about some of his frustrations during the learning process of creating code like this and includes his steps as he evolved through it.

3 comments voice your opinion now!
ugly code ruby developer language syntax rubysource


blog comments powered by Disqus

Similar Posts

Job Posting: Red Ventures Seeks Sr. Systems Analyst/Web Developer (Charlotte, NC)

NetTuts.com: Refactoring Legacy Code: Part 4 - Our First Unit Tests

Rich Zygler's Blog: Development Environment layout using Linux, Apache, PHP, and Subversion

PHP.net: PHP 5.5.0 Alpha3 released

LinkedIn.com: Dev Recruiting 101: 10 Ways NOT to Interview a Candidate


Community Events





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


library language series threedevsandamaybe introduction release podcast tips interview framework laravel community zendserver symfony deployment conference bugfix developer api opinion

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