Andy Jeffries, a senior PHP web developer, wrote up an interesting article on Why I think Ruby on Rails is an ideal web development environment.

Although he is Zend Certified Engineer for PHP4 and PHP5, he decided to try the hype and immediately loved it. He lists several features that makes RoR, (quoting) irresistible.

From the list, the ones I like the most are:

  • Console for Quick Testing
  • DB Migrations
  • RESTful Resources

Oh and he has an interesting quote about Django

Out of all the new frameworks, I decided to look at Rails because it seemed to have most of the hype (don’t get me wrong, frameworks such as Django have excellent potential, but I went with the one most people were talking about).

Maybe Google’s AppEngine will help you :-)

My first social meeting with the Ruby-PT community will happen tomorrow at Lisbon!

Bring a friend! Perl/PHP haters are more than welcome :)

As part of my investigation work on PHP, I needed a preprocessor capable of extracting all the PHP from a PHP file, discarding all HTML it encounters.

Initially I thought it would be a hard job, but latter found that AntLR3 makes this job really easy!

I wrote something like this:

lexer grammar FuzzyPHP;

options { filter=true; }

PHP : ‘‘ { System.out.println(getText()); };

This happens to work really good :) Now I can continue my PHP parser…

*: Of course my code doesn’t work when you have strings like '?>'. Here’s a new version that should work :)

PHP : ‘SINGLE_QUOTED_STRING | DOUBLE_QUOTED_STRING)) ’?>’ { out.println(getText()); };

SINGLE_QUOTED_STRING : ’\’’ (’\\\\’ | ’\\\’’ | ~(’\’‘))* ’\’’ ;

DOUBLE_QUOTED_STRING : ’”’ (’\\\\’ | ’\\”’ | ~(’”’)) * ’”’ ;

About

photo of Ruben Fonseca

My name is Ruben Fonseca. I'm a Computer Science and Systems Engineer from Portugal that loves FLOSS.

I'm currently an Open Source Consultant at Lisbon, Portugal. This blog is about my daily geek life.

You can contact me anytime at or via LinkedIn:

View Ruben Fonseca's profile on LinkedIn

Feeds

Music