Should I use Perl or PHP or something else for this project?

I am going to start a project that will have to:

  • XML process
  • Strong parsing of documents other than xml.
  • Insert data from xml and non-xml documents into a relational database.
  • Present processed data to user from db using web pages.
  • It is necessary to handle the load very well.

The website will be subjected to short-term very heavy page loads (more than 300 visitors per minute for several minutes), but most of the time it will be inactive (about a dozen visitors per minute).

I have a very strong background in Java and web services, but I do not want to use Java for this project, since I would like to diversify my skillset.

I am not looking for your opinion in which language you consider the best. What are some of the pros and cons of using these languages ​​that you might learn from your own experience?

+5
source share
13 answers

Since I'm a PHP guy, here's what I can offer about PHP

So, the language requirements from your question are met by PHP.

, Perl, Python Ruby ServerSide JavaScript (...) , . PHP , . Java Guy, Ruby , , .

+8

Perl. LibXML (DOM, XPath, XSLT ..), C-.

Perl . , , , .

Perl -, , Mojolicious, Catalyst. CGI, Mojolicious Catalyst, , .

+9

, , . , 2010 Perl PHP ( Python Ruby) . , , .

Perl, .

XML: Perl ( don 't slurp) , . Unicode (Encode), , . libxml2 , : XML::LibXML.

: (DBI), SQL , , DB-to-Webdoc, . , , Catalyst.

HTML-: Mason - -. Perl , .

: , . Perl memcached: Cache::Memcached ( Perl) Cache::Memcached::Fast ( C).

, Enlightened Perl: )

+5

, , , , , Perl . Perl , CPAN . Perl , . CPAN , ( XML, -, ORM ..), , . Plack/PSGI, - Perl .

, "" - , , , , , , . Perl, Java, PHP . , , , . , , , , - , , , .

+4

, .

Perl, PHP Java .

Perl, PHP ( ). .

+1

. , PHP UTF8 (, UTF8, ). , PHP : -)

- . API ( ).

0

, PHP ( , , ) PCRE Perl, , , XML, , . , .

XML ().

PHP - . , . , PHP, .

Perl , , , .

Python - , , , . , , , ! , , , , . , , .

- "", wordpress drupal. CMS . Wordpress 8 , !

PHP, Java, , .

0

Ruby on Rails?

, , PHP. - , , .

PHP , .

0

Common Lisp.

0

Perl, , - .

PHP, " ".

0

, , Drupal - , . , .

, , . PHP Perl, , . Python - , php . , PHP.

-1

, . .

Java, ​​ , ( - ), , 2 - 3 , Perl - PHP.

... PHP -, , ( Zend), (Java ), , , - (, Pearl Java). , ( PHP, wierd-vodoo), , , , .

In the end, I’m sure that you will get an application with less sequence if you use PHP (and if you follow all the rules of coding and design) than ever, you will use Perl.

(Java is better, but I don’t want some PHP fanatic to lynch verbally)

-4
source

All Articles