Is PHP a “good” computer language
Posted: 21 May 2008 07:28 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  193
Joined  06-15-2003

PHP Sucks, But It Doesn’t Matter is an interesting article about the language itself. I wonder what the ExpressionEngine developers think. The article does point out some of the post popular software products made with PHP.

Profile
 
 
Posted: 21 May 2008 10:14 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  716
Joined  07-02-2007

A note:

PHP = Scripting Language

Not a programming language..
Programming languages needs to be compiled.

Compiled Langauge (aka Programming Language)
Interpreted Language (aka Scripting Language)

Just nit picking smile, it’s very late.. I should get some sleep.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 21 May 2008 11:27 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5891
Joined  11-23-2003

Chris, Yes.

 Signature 

EE 2.0:  A designers dream becomes a developers dream | Follow me on Twitter.

Profile
 
 
Posted: 21 May 2008 11:50 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  2541
Joined  12-21-2001
Chris Malumphy - 21 May 2008 07:28 PM

I wonder what the ExpressionEngine developers think. The article does point out some of the post popular software products made with PHP.

Someone in that thread quoted the developer of the C++ language as saying that there are only two types of programming languages, those that people complain about and those that no one use.  There’s a lot of truth to that.

Programming languages are a lot like human languages.  They all have their quirks, their strengths, their oddities. Spanish is a gorgeous language for poetry, but it’s not well suited for the hard sciences.  Does that mean Spanish sucks?

PHP evolved from a simple macro language, and its development has had an interesting history, with lots of twists and turns.  It did not emerge fully formed, as some languages do, nor was it originally even conceived as a “real” programming language.  That came later.  Heck, it wasn’t even an object oriented language until version 5, and even then it missed the mark in many ways.

None of that matters, though.  PHP is the de-facto programming language of the internet.  It’s supported in nearly 100% of hosting environments, it offers people the most choices of applications, and the barriers to people learning and using it are low.  It also has an endless number of pre-built functions designed for the kinds of things web developers need to do, so it saves us time.  And (most important, possibly) their user guide is hands down the best of any language.

I happen to like PHP a lot, not because I’m blind to its shortcomings, but because it offers a lot more positives then negatives, and it allows me to offer web applications that are usable to the broadest audience possible.

 Signature 
Profile
MSG
 
 
Posted: 22 May 2008 07:24 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
RankRank
Total Posts:  193
Joined  06-15-2003

John thanks for your link and Rick ditto for the post.

One thing I love about the EllisLabs team is that you always get well thought out responses to questions, even those that are off topic like this. I myself think that PHP is pretty cool. The author of the article seems to bemoan the large number (hodge/podge) of functions available in PHP listing all those that begin with the letter “a”. To me that is one of its benefits, not disadvantages. Find the right PHP function and tons of programming/scripting time is saved. I wholeheartedly accept the notion that we should always adopt the best available tool for the job.

Victor,

I get your point, but note that the Wikipedia links you cited say:

“In computer programming an interpreted language is a programming language whose ... ” and “A compiled language is a programming language whose ... “

So according to Wikipedia both interpreted and compiled languages are programming languages.

I started out in the old days with BASIC way back in high school before personal computers were a twinkle in anyone’s eye. Later, on my Apple II+, BASIC was interpreted. Now I use REALBasic on my G5, which is compiled. So BASIC made the transition from interpreted to compiled, but it has always just been programming to me. You might call PHP a scripting language, since it isn’t compiled, but when I use it, I’m programming (at least in my mind).

Profile
 
 
Posted: 02 June 2008 01:05 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Avatar
Total Posts:  11
Joined  02-01-2005

Yeah, it’s a little silly to say PHP isn’t a programming language. If it’s not programming, what is it, exactly? Sure, it’s not compiled, but neither are shell scripts. Python is interpreted on first run, then byte-compiled. Is Python not a programming language?

Anyway, yes, PHP sucks, but it doesn’t matter. As Rick so aptly said, it’s the de-facto language of the internet. That counts for a lot. It also counts for a lot that the syntax is quite similar to the _other_ de-facto language of the internet, JavaScript. IMHO, this is likely one of the reasons for it’s ubiquity. Coders who started out hacking a little JavaScript can more easily make the jump to PHP compared to, say, Ruby or Python.

And, I agree that the high quality of PHP.net is another big reason for PHP’s success. I liked it enough to make a Dashboard widget for it!  cheese

 Signature 

http://andrew.hedges.name/

Profile
 
 
Posted: 02 June 2008 04:28 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008
Andrew Hedges - 02 June 2008 01:05 AM

I liked it enough to make a Dashboard widget for it!  cheese

And a fine widget it is too, cheers!

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 04 September 2008 01:42 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  159
Joined  02-11-2007

You can do all the stuff you do with rails (ruby) and django (python) in PHP, the difference is that PHP makes it easy to write crappy code - rails & django make it hard wink A bit simplified, but still ..

I think a lot of the reason why PHP has become so popular is the low treshold to get started. Anyone can get started without knowing programming or theory about OO.

There are a lot of frameworks for PHP as well, which help a lot. Examples are CodeIgniter (of course), Zend Framework and CakePHP.

- bjorn

 Signature 

bjornblog :: My ExpressionEngine blogposts :: NoSpoiler.com - link youtube videos w/o spoilers - 43min.com - videosite built on CI

Profile
 
 
Posted: 05 September 2008 12:33 AM   [ Ignore ]   [ # 8 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5891
Joined  11-23-2003
bjornbjorn - 04 September 2008 01:42 PM

You can do all the stuff you do with rails (ruby) and django (python) in PHP, the difference is that PHP makes it easy to write crappy code - rails & django make it hard wink A bit simplified, but still ..

This seems to be a somewhat common argument from developers but I think it has limited relevance in the real world.  Not that I even agree with this statement.  Ruby on Rails is not going to turn a bad programmer into a good one.  If that were the case, we should all be using ROR.  I’m sure I could show you crappy Ruby and Python code, probably something that I wrote.  wink

The fix to this problem seems to be simple enough.  Don’t hire crappy coders.

If you are a DIY person with no experience in any area of web dev, you will probably create a crappy design, crappy HTML/CSS and crappy PHP (if needed.)  The same is likely true if you pick up a “will code for food” guy in front of a 7-11. 

Hire good people and they will do good work.  Sometimes knowing who is good can be hard, but that is a different discussion.

 Signature 

EE 2.0:  A designers dream becomes a developers dream | Follow me on Twitter.

Profile
 
 
Posted: 05 September 2008 12:45 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
RankRank
Total Posts:  159
Joined  02-11-2007

Sure, a crappy coder will write crappy code, no matter which language he/she is using. It’s not hard to agree on that one grin

I love PHP, don’t get me wrong, but it’s still the devil wink It’s the little devil on your left shoulder asking you to take that little shortcut, it doesn’t matter. It’s the little devil telling you that writing unit tests aren’t that important, and if you _must_ you’ll have to set it up yourself. RoR is the angel notifying you that _you haven’t written_ unit tests for those and those classes, and reminding you that maybe you should.

Sure, one can probably find frameworks for PHP that does much of this.

I’ve never tried RoR, but this is the impression I get. Maybe I’m mistaken, maybe it’s all hype about rails.

I come from a Java world and going directly to PHP was probably more challenging than starting from scratch wink heh .. That said, PHP is definitively a language to get things done, and that’s what I like about it.

- bjorn

 Signature 

bjornblog :: My ExpressionEngine blogposts :: NoSpoiler.com - link youtube videos w/o spoilers - 43min.com - videosite built on CI

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64908 Total Logged-in Users: 30
Total Topics: 81852 Total Anonymous Users: 21
Total Replies: 440059 Total Guests: 233
Total Posts: 521911    
Members ( View Memberlist )