Do not make the mistake of thinking that because my conclusion is the same as another person's that my reasoning is the same
A Good Cause or Two
nbuf_button.gif bootbush.jpg
Click for more info

The Best of P6
The Racism Series The Reparations Series Installing a negro in your head Identity Blogging Where We Stand The LimbaughDiscussion That has Nothing To Do With Limbaugh
Updated when I write something really cool

Search
Local Links
The Attack on Civil Rights Corporate Influence on Government The Development of Race Basic Laws of Human Stupidity Blogger Archives
EMAIL ME AT
email.gif
Blogroll Me!
Blog-related mail may be published

The Public Library
The Black Experience in America The Souls of Black Folks My Bondage and My Freedom The Martin Luther King Jr. Collection Walker's AppealThe Shaping of Black America, Ch. 3
Updated as frequently as possible

Archives
August 01, 2004 - August 07, 2004 July 25, 2004 - July 31, 2004 July 18, 2004 - July 24, 2004 July 11, 2004 - July 17, 2004 July 04, 2004 - July 10, 2004 June 27, 2004 - July 03, 2004 June 20, 2004 - June 26, 2004 June 13, 2004 - June 19, 2004 June 06, 2004 - June 12, 2004 May 30, 2004 - June 05, 2004 May 23, 2004 - May 29, 2004 May 16, 2004 - May 22, 2004 May 09, 2004 - May 15, 2004 May 02, 2004 - May 08, 2004 April 25, 2004 - May 01, 2004 April 18, 2004 - April 24, 2004 April 11, 2004 - April 17, 2004 April 04, 2004 - April 10, 2004 March 28, 2004 - April 03, 2004 March 21, 2004 - March 27, 2004 March 14, 2004 - March 20, 2004 March 07, 2004 - March 13, 2004 February 29, 2004 - March 06, 2004 February 22, 2004 - February 28, 2004 February 15, 2004 - February 21, 2004 February 08, 2004 - February 14, 2004 February 01, 2004 - February 07, 2004 January 25, 2004 - January 31, 2004 January 18, 2004 - January 24, 2004 January 11, 2004 - January 17, 2004 January 11, 2004 - January 17, 2004January 04, 2004 - January 10, 2004December 28, 2003 - January 03, 2004December 21, 2003 - December 27, 2003December 14, 2003 - December 20, 2003December 07, 2003 - December 13, 2003November 30, 2003 - December 06, 2003November 23, 2003 - November 29, 2003November 16, 2003 - November 22, 2003November 09, 2003 - November 15, 2003November 02, 2003 - November 08, 2003October 26, 2003 - November 01, 2003October 19, 2003 - October 25, 2003October 12, 2003 - October 18, 2003October 05, 2003 - October 11, 2003September 28, 2003 - October 04, 2003September 21, 2003 - September 27, 2003September 14, 2003 - September 20, 2003September 07, 2003 - September 13, 2003August 31, 2003 - September 06, 2003August 24, 2003 - August 30, 2003August 17, 2003 - August 23, 2003August 10, 2003 - August 16, 2003August 03, 2003 - August 09, 2003 July 27, 2003 - August 02, 2003 July 20, 2003 - July 26, 2003 July 13, 2003 - July 19, 2003 July 06, 2003 - July 12, 2003 June 29, 2003 - July 05, 2003 June 22, 2003 - June 28, 2003 June 15, 2003 - June 21, 2003 June 08, 2003 - June 14, 2003 June 01, 2003 - June 07, 2003 May 25, 2003 - May 31, 2003 May 18, 2003 - May 24, 2003 May 11, 2003 - May 17, 2003 May 04, 2003 - May 10, 2003 April 27, 2003 - May 03, 2003 April 20, 2003 - April 26, 2003 April 13, 2003 - April 19, 2003 April 06, 2003 - April 12, 2003
« RegExs aren't bad! | Main | Oldspeak vs. Newspeak »

August 01, 2004
Perl vs. PHP is as bad as C vs Pascal ever was. 

I'm looking at Perl and PHP side by side for the first time. No Camel book incessantly reminding me the given answer is only "one way to do it," not torturous constructs written just 'cause. The two languages are a lot more alike than different.

Just like C and Pascal.

I actually should prefer Perl to PHP. I like pre-declaring variable. It makes you think about what resources you'll need, get them defined, understood and organized before you start. But I prefer PHP, and I figured out why. I think of PHP as a scripting language whereas I think of Perl as a programming language.

Now, for programming, creating a set of integrated functions designed to accomplish I've rejected C and all C-like languages, more because of the implementations than the languages as it turns out. For programming I use Pascal.

But I've been using C-like scripting languages forever. And I've always thought of PHP as almost a macro language, embedded in the web page.



Posted by P6 at August 1, 2004 02:56 AM
Trackback URL: http://www.niggerati.net/mt/mt-tb.cgi/5777
Comments

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a few big problems with PHP:

1 - It lacks clean support for OOP, or at least it did before PHP5, which nobody's gotten round to deploying just yet.

2 - It encourages the mixing of content and presentation. I've looked at templating systems like Smarty, but so far I haven't been impressed by what I've seen.

3 - Overuse of global variables.

4 - Support for Unicode is a horrible kludge.

5 - One has to buy Zend's software to get support for caching.

Other than the above, the language is just fine! Seriously though, I can't imagine developing anything major for the web either in Perl or PHP, not when I can choose between JSP/Servlets (NOT J2EE!) and ASP.NET. PHP's fine for smaller one-off projects that need to be done in a hurry, but for anything that needs long-term maintenance and support for i18n, I'd look elsewhere.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32) - GPGshell v3.10
Comment: My Public Key is at the following URL:
Comment: http://www.alapite.net/pgp/AbiolaLapite.txt

iD8DBQFBDN2IOgWD1ZKzuwkRApEjAJ4+GsWtor3i3r2vIwDbWTWDpeeVJACeJlRu
pbDZ6y0olLUGPWawNN0/EmM=
=kGA6
-----END PGP SIGNATURE-----

Posted by Abiola Lapite at August 1, 2004 08:10 AM 

I have no problem with no object oriented programming support. I learned "oop" by realizing it's just a way of implementing abstract data types. I'm supposed to say "object based programming" but that's just being fashionable.

It DOES encourage mixing content and presentation because it is, in essance, a templating system in and of itself, but I feel complaining about that is like complaining about lack of discipline. Same with global variable use (though in forcing you to declare you're using a global variable it damps down the harm that can be done. And there are several open source caching systems available for PHP; I understand mmcache is very good.

Still, my point was I'd have never considered using PHP for anything major either, especially after looking over source code for several open source portal projects. This recent deep excursion into the Drupal code base has changed my mind.

Posted by P6 at August 1, 2004 10:00 AM 
Post a comment









Remember personal info?