Choosing PHP for large projects

This is a discussion on Choosing PHP for large projects within the PHP Language forums, part of the PHP Programming Forums category; I will be embarking on a large web project. I am still researching as to which language use - PHP or ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-31-2005
Deke
 
Posts: n/a
Default Choosing PHP for large projects

I will be embarking on a large web project. I am still researching as to
which language use - PHP or Perl.

Can someone clear up some of the bad publicity with PHP in the links
below? They are very interestiing points. Are these points moot in PHP5?

http://www.bitstorm.org/edwin/en/php-sucks/
http://www.ukuug.org/events/linux200...php/index.html
http://www.webkreator.com/php/commun...-and-hate.html

THanks!
Reply With Quote
  #2 (permalink)  
Old 01-31-2005
Deke
 
Posts: n/a
Default Re: Choosing PHP for large projects

Thanks for the answer. This is not a troll, by the way. Anyone have any
good perl vs php links? Thanks

Michael Vilain wrote:
> In article <10vsej3tnkmi10f@news.supernews.com>, Deke <Deke@nospam.com>
> wrote:
>
>
>>I will be embarking on a large web project. I am still researching as to
>>which language use - PHP or Perl.
>>
>>Can someone clear up some of the bad publicity with PHP in the links
>>below? They are very interestiing points. Are these points moot in PHP5?
>>
>>http://www.bitstorm.org/edwin/en/php-sucks/
>>http://www.ukuug.org/events/linux200...php/index.html
>>http://www.webkreator.com/php/commun...-and-hate.html
>>
>>THanks!

>
>
> Yawn! This smells so much like a troll, I can't barely bring myself to
> give the poster the benefit of the doubt. It's as if he showed up in a
> Mac newsgroup and posted "MACS SUCK! PCs RULE". If this were cross
> posted in the perl groups, I can imagine their reaction. Perl hackers
> in those groups can be brutal.
>
> The URLs you posted above are all nits mostly about the abstracts of
> php's implementation. So what? The second link talks more about the
> pitfalls of building a large site and is quite useful than php vs. perl
> in general. You could just as easily have inserted "Java/Tomcat" for
> php in the 2nd URL's article.
>
> Anyway, why not take a step back and not even think about the language
> you're going to use at this point? Why not just do a story board of the
> site, document on the flow of information, and figure out what you're
> trying to do first?
>
> Find out what sort of machine you'll be running the site on (PC running
> Windows/IIS or Linux/Apache or something else). Is the system "all
> yours" or will it be shared with other users and sites on an ISP? Any
> restrictions on what's allowed to be installed on the host (some ISPs
> won't install software for you--you take what they offer or go
> elsewhere).
>
> Now, if you had to design something from all this in a single day, which
> language would you use? Perl or php? Which are you most comfortable
> with?
>
> I personally like the huge perl CPAN repository which has many man-years
> of experience behind it. I like the ability to do step-by-step
> debugging in the perl debugger. php isn't quite there yet (yes, I know
> about PEAR and ZEND's editor with built-in php debugger).
>
> Yet, I wouldn't want to recode my site using only perl. php is just
> enough to do individual pages on the shared machine. For CGI scripts, I
> use perl and CGIwrap. These constraints are imposed by my ISP but I can
> work with them.
>

Reply With Quote
  #3 (permalink)  
Old 01-31-2005
Bent Stigsen
 
Posts: n/a
Default Re: Choosing PHP for large projects

Deke wrote:
> I will be embarking on a large web project. I am still researching as to
> which language use - PHP or Perl.
>
> Can someone clear up some of the bad publicity with PHP in the links
> below? They are very interestiing points. Are these points moot in PHP5?
>
> http://www.bitstorm.org/edwin/en/php-sucks/


Looks a little biased. From the points listed, the only thing that would
make a difference, with regards to the size of the project, is the lack
of namespace. If the project is written from scratch (i.e. not just
gathering up a bunch of prototypes or separate projects), you plan
ahead, and you are strict with your naming conventions (proper
prefixing), then it is less of a problem, if at all.

If you include more than one namespace, then you can still get name
collisions.

If not included but explicitly stated, then you would perhaps write
"fooNS:fooFunc()" instead of "fooNS_fooFunc()". (whoop dee doo)

But apart from that, they can be nice to have. If you have some old code
that you want imported, you can just slap on a namespace, and there you
go. On the other hand, in awareness of the lack of namespace, people
usually prefix their functions and classes, if it is something worth
reusing.

> http://www.ukuug.org/events/linux200...php/index.html


Pretty much same as above, has a point in "3. Using a Team of
Developers". But developers aware of the possibility of namespace
pollution will act accordingly. I wouldn't consider it a real problem.

> http://www.webkreator.com/php/commun...-and-hate.html


Hmm, upset about a tutorial that requires register_globals, written
years ago by some random grrl, that they (Zend) don't remove from their
site. Ok. Disagreeing with some articles on the net. Ok. Concluding that
PHP is headed straight to hell. Uhm... what?


Perhaps you should peek in some (larger) opensource projects both for
php and perl, and judge what you are most comfortable with.

/Bent
Reply With Quote
  #4 (permalink)  
Old 01-31-2005
Tim Van Wassenhove
 
Posts: n/a
Default Re: Choosing PHP for large projects

On 2005-01-31, Deke <Deke@nospam.com> wrote:
> Thanks for the answer. This is not a troll, by the way. Anyone have any
> good perl vs php links? Thanks


Imho, languageX vs languageY comparisions suck!

Just choose the one that allows you to do the things you need to do the
easiest/fastest/cheapest. From that point of view it doesn't matter
which parts of a language suck, because you have to focus on the parts that
are good... And if those parts are really good, other languages will
pick that up... This way we end up with a positive and inspiring
discussion instead of the usual flamewars...




--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Reply With Quote
  #5 (permalink)  
Old 02-01-2005
Chung Leong
 
Posts: n/a
Default Re: Choosing PHP for large projects


"Tim Van Wassenhove" <timvw@users.sourceforge.net> wrote in message
news:367d91F4qi0foU1@individual.net...
> On 2005-01-31, Deke <Deke@nospam.com> wrote:
> > Thanks for the answer. This is not a troll, by the way. Anyone have any
> > good perl vs php links? Thanks

>
> Imho, languageX vs languageY comparisions suck!
>
> Just choose the one that allows you to do the things you need to do the
> easiest/fastest/cheapest. From that point of view it doesn't matter
> which parts of a language suck, because you have to focus on the parts

that
> are good... And if those parts are really good, other languages will
> pick that up... This way we end up with a positive and inspiring
> discussion instead of the usual flamewars...


What if every part of a language sucks? LISP is what I have in mind :-)


Reply With Quote
  #6 (permalink)  
Old 02-01-2005
Al Kolff
 
Posts: n/a
Default Re: Choosing PHP for large projects


"Michael Vilain" <vilain@spamcop.net> wrote in message
news:vilain-5ECDCB.08002731012005@news.giganews.com...
> In article <10vsej3tnkmi10f@news.supernews.com>, Deke <Deke@nospam.com>
> wrote:
>
> > I will be embarking on a large web project. I am still researching as to
> > which language use - PHP or Perl.
> >
> > Can someone clear up some of the bad publicity with PHP in the links
> > below? They are very interestiing points. Are these points moot in PHP5?
> >
> > http://www.bitstorm.org/edwin/en/php-sucks/
> > http://www.ukuug.org/events/linux200...php/index.html
> > http://www.webkreator.com/php/commun...-and-hate.html
> >
> > THanks!

>
> Yawn! This smells so much like a troll, I can't barely bring myself to
> give the poster the benefit of the doubt. It's as if he showed up in a
> Mac newsgroup and posted "MACS SUCK! PCs RULE". If this were cross
> posted in the perl groups, I can imagine their reaction. Perl hackers
> in those groups can be brutal.
>
> The URLs you posted above are all nits mostly about the abstracts of
> php's implementation. So what? The second link talks more about the
> pitfalls of building a large site and is quite useful than php vs. perl
> in general. You could just as easily have inserted "Java/Tomcat" for
> php in the 2nd URL's article.
>
> Anyway, why not take a step back and not even think about the language
> you're going to use at this point? Why not just do a story board of the
> site, document on the flow of information, and figure out what you're
> trying to do first?
>
> Find out what sort of machine you'll be running the site on (PC running
> Windows/IIS or Linux/Apache or something else). Is the system "all
> yours" or will it be shared with other users and sites on an ISP? Any
> restrictions on what's allowed to be installed on the host (some ISPs
> won't install software for you--you take what they offer or go
> elsewhere).
>
> Now, if you had to design something from all this in a single day, which
> language would you use? Perl or php? Which are you most comfortable
> with?
>
> I personally like the huge perl CPAN repository which has many man-years
> of experience behind it. I like the ability to do step-by-step
> debugging in the perl debugger. php isn't quite there yet (yes, I know
> about PEAR and ZEND's editor with built-in php debugger).
>
> Yet, I wouldn't want to recode my site using only perl. php is just
> enough to do individual pages on the shared machine. For CGI scripts, I
> use perl and CGIwrap. These constraints are imposed by my ISP but I can
> work with them.
>
> --
> DeeDee, don't press that button! DeeDee! NO! Dee...
>
>
>

To the point and right on target. To many jump in coding like mad and then
expect someone else to dig them out of their own mess.

The rule of thumb that has worked for me is, "For every minute you spend
planning, you save ten writing the code."
Then there is the corollary, "The first 90% of the project takes 20% of the
time and the last 10% take 80%."

--
Thank you,
Al Kolff

Technical Services
Divine Shepherd Lutheran Church
9741 W Beloit Rd
Milwaukee, WI 53227

Web Site http://www.divineshepherdlc.org


Reply With Quote
  #7 (permalink)  
Old 02-01-2005
Martin Meng
 
Posts: n/a
Default Re: Choosing PHP for large projects

being the very first language I taught myself, Lisp is well loved.
granted not the most useful language for general usage

--
Junxter Ad Network
http://www.junxter.com


Chung Leong wrote:
> "Tim Van Wassenhove" <timvw@users.sourceforge.net> wrote in message
> news:367d91F4qi0foU1@individual.net...
>
>>On 2005-01-31, Deke <Deke@nospam.com> wrote:
>>
>>>Thanks for the answer. This is not a troll, by the way. Anyone have any
>>>good perl vs php links? Thanks

>>
>>Imho, languageX vs languageY comparisions suck!
>>
>>Just choose the one that allows you to do the things you need to do the
>>easiest/fastest/cheapest. From that point of view it doesn't matter
>>which parts of a language suck, because you have to focus on the parts

>
> that
>
>>are good... And if those parts are really good, other languages will
>>pick that up... This way we end up with a positive and inspiring
>>discussion instead of the usual flamewars...

>
>
> What if every part of a language sucks? LISP is what I have in mind :-)
>
>

Reply With Quote
  #8 (permalink)  
Old 02-04-2005
RL
 
Posts: n/a
Default Re: Choosing PHP for large projects

Deke,

I used to do everything in Perl, then decided to learn PHP.

I like PHP as it is quite easy to learn and quick to develop web
applications.

For your BIG project, you may want to consider the following...

1) Testing
What I don't like about PHP is that it only runs in a web environment.
Perl can run stand alone, good for testing routines.

2) Processes
Also, Perl can spawn processes that you can control (child processes).
PHP is only ran when a user visits a page.

3) Alternative
Another thing you can consider is a combination of PHP and Perl.
This is what I chose for my BIG project
http://boomstickservers.com/gpanel/
The web sections are all PHP (and MySQL).
The networking sections are all in Perl.

Have fun!
Rob

"Deke" <Deke@nospam.com> wrote in message
news:10vsej3tnkmi10f@news.supernews.com...
>I will be embarking on a large web project. I am still researching as to
>which language use - PHP or Perl.
>
> Can someone clear up some of the bad publicity with PHP in the links
> below? They are very interestiing points. Are these points moot in PHP5?
>
> http://www.bitstorm.org/edwin/en/php-sucks/
> http://www.ukuug.org/events/linux200...php/index.html
> http://www.webkreator.com/php/commun...-and-hate.html
>
> THanks!



Reply With Quote
  #9 (permalink)  
Old 02-07-2005
Jerry Stuckle
 
Posts: n/a
Default Re: Choosing PHP for large projects

RL wrote:
>
> Deke,
>
> I used to do everything in Perl, then decided to learn PHP.
>
> I like PHP as it is quite easy to learn and quick to develop web
> applications.
>
> For your BIG project, you may want to consider the following...
>
> 1) Testing
> What I don't like about PHP is that it only runs in a web environment.
> Perl can run stand alone, good for testing routines.
>


PHP can run standalong just fine, also. I have several cron jobs which
use PHP to access a MySQL database, for instance.

> 2) Processes
> Also, Perl can spawn processes that you can control (child processes).
> PHP is only ran when a user visits a page.
>


PHP can spawn processes anytime, also.

> 3) Alternative
> Another thing you can consider is a combination of PHP and Perl.
> This is what I chose for my BIG project
> http://boomstickservers.com/gpanel/
> The web sections are all PHP (and MySQL).
> The networking sections are all in Perl.
>


Actually, this can also be a good alternative.

> Have fun!
> Rob
>


Please note - I'm not saying one is better than the other - and don't
want to get into a holy war here. I'm just correcting some
mis-statements in your post.

--

To reply, delete the 'x' from my email
Jerry Stuckle,
JDS Computer Training Corp.
jstucklex@attglobal.net
Member of Independent Computer Consultants Association - www.icca.org
Reply With Quote
  #10 (permalink)  
Old 02-08-2005
Gooofy
 
Posts: n/a
Default Re: Choosing PHP for large projects

No harm, educational in fact.
I didn't know PHP could be run from command line :)

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:420796FB.4B6@attglobal.net...
> RL wrote:
>>
>> Deke,
>>
>> I used to do everything in Perl, then decided to learn PHP.
>>
>> I like PHP as it is quite easy to learn and quick to develop web
>> applications.
>>
>> For your BIG project, you may want to consider the following...
>>
>> 1) Testing
>> What I don't like about PHP is that it only runs in a web environment.
>> Perl can run stand alone, good for testing routines.
>>

>
> PHP can run standalong just fine, also. I have several cron jobs which
> use PHP to access a MySQL database, for instance.
>
>> 2) Processes
>> Also, Perl can spawn processes that you can control (child processes).
>> PHP is only ran when a user visits a page.
>>

>
> PHP can spawn processes anytime, also.
>
>> 3) Alternative
>> Another thing you can consider is a combination of PHP and Perl.
>> This is what I chose for my BIG project
>> http://boomstickservers.com/gpanel/
>> The web sections are all PHP (and MySQL).
>> The networking sections are all in Perl.
>>

>
> Actually, this can also be a good alternative.
>
>> Have fun!
>> Rob
>>

>
> Please note - I'm not saying one is better than the other - and don't
> want to get into a holy war here. I'm just correcting some
> mis-statements in your post.
>
> --
>
> To reply, delete the 'x' from my email
> Jerry Stuckle,
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> Member of Independent Computer Consultants Association - www.icca.org



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0