Thread: PHP Refugees
View Single Post
Old 05-01-2012, 08:56 AM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by brentbacardi View Post
Why does pHp suck? Just curious... I know it because most shit out there is php so its good to know...

There's WHY it sucks, and HOW it sucks. For HOW it sucks, Google will bring up a million good pages. As to WHY it sucks, it sucks because it was never supposed to be a programming language from the beginning. It was designed as a blog/templating system, written in Perl. It wasn't designed as a good programming language because it wasn't designed as a programming language at all.

When people starting using it as if it were a programming language, they started adding programming-like functions, but skipped the design step. That resulted in things like cat_walk() and dog_walk(), but personWalk(). ( Perl would just have walk(). )

An exerpt from the PHP documentation is illustrative:
Quote:
I don?t see the point, especially for something like PHP where most of the scripts will be rather simple and in most cases written by non-programmers who want a language with a basic logical syntax that doesn?t have too high a learning curve.
Lerdorf was trying to make a simplified system for non-programmers to create non-programs, without having to learn much if anything. He suceeded, big time. Thousands of non-programmers create all kinds of stuff in PHP without learning anything first. That's great for them. The only problem is some people BUY these piles of PHP written by the clueless, thinking they are getting actual software. They then expose this non-program written by non-programmers publicly on the web, a delight to all the crackers. Oops.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote