12 Replies - 8501 Views - Last Post: 26 July 2013 - 06:18 AM Rate Topic: -----

#1 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

[Link] PHP The Right Way

Post icon  Posted 23 July 2013 - 06:28 PM

*
POPULAR

FINALLY!

Quote

There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and bad code. This must stop. PHP: The Right Way is an easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative tutorials around the Web.


Is This A Good Question/Topic? 7
  • +

Replies To: [Link] PHP The Right Way

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: [Link] PHP The Right Way

Posted 24 July 2013 - 07:53 AM

TIL, from the article:

Quote

You can start learning PHP without the hassle of installing and configuring a full-fledged web server (PHP 5.4+ required).


Nice.
Was This Post Helpful? 0
  • +
  • -

#3 Curtis Rutland  Icon User is online

  • (╯°□°)╯︵ (~ .o.)~
  • member icon


Reputation: 4469
  • View blog
  • Posts: 7,780
  • Joined: 08-June 10

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 07:23 AM

So, is this an appropriate place to ask this question? Why is PHP still so popular? I understand how it grew to where it is today, since it was free and easy to acquire, and simple to install and start using (relative to the other options of the day). But with all the other options available today with the same benefits (free, simple, etc...) why is PHP still dominant? Is it just legacy? But there are still people committing to learning it every day.

This isn't a slam on the language; it's genuine curiosity. Why hasn't Node.js or RoR or Django or any of the other simple web frameworks overtaken PHP?
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9096
  • View blog
  • Posts: 34,159
  • Joined: 12-June 08

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 07:25 AM

I would wager critical mass. Enough folks were writing it to have legacy code, and require new folks to know it, and other folks see those folks using it and figure that's a swell idea and around and around we go.
Was This Post Helpful? 1
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 08:02 AM

The easy availability of copy/paste code has a great deal to do with it, and the problems surrounding PHP. The poor quality of said code is part of what this article addresses.
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is offline

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,070
  • Joined: 10-May 07

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 08:06 AM

View PostCurtis Rutland, on 25 July 2013 - 10:23 AM, said:

But with all the other options available today with the same benefits (free, simple, etc...) why is PHP still dominant?

My initial answer : Frameworks.

My follow up question : What others?
Was This Post Helpful? 0
  • +
  • -

#7 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9096
  • View blog
  • Posts: 34,159
  • Joined: 12-June 08

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 08:12 AM

The Post-PHP Path Forward: Django vs. Rails
An interesting read and odd question on how this guy had a drawing of me on his blog?!
Was This Post Helpful? 0
  • +
  • -

#8 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 08:29 AM

Well, you do look mighty fine in that bikini, modi123_1.
Was This Post Helpful? 0
  • +
  • -

#9 Curtis Rutland  Icon User is online

  • (╯°□°)╯︵ (~ .o.)~
  • member icon


Reputation: 4469
  • View blog
  • Posts: 7,780
  • Joined: 08-June 10

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 11:21 AM

View Postno2pencil, on 25 July 2013 - 10:06 AM, said:

View PostCurtis Rutland, on 25 July 2013 - 10:23 AM, said:

But with all the other options available today with the same benefits (free, simple, etc...) why is PHP still dominant?

My follow up question : What others?


I'd have to say RoR, Node.js, and Django. All are just as free, and they can all be used on the same LAMP stack that made PHP so popular. Throw ASP.NET MVC into the mix (which is itself free, but only runs on windows) and you've got lots of alternatives that I would consider before I'd start a project with PHP.
Was This Post Helpful? 0
  • +
  • -

#10 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 11:39 AM

node.js is still pretty new (and it's what I'm writing currently).

Django and RoR are obviously far more mature. I used RoR for a couple of projects outside of work and it was cool. My boss has never used Python, so Django is not something I've touched.

Differences between PHP, Django, and RoR is the latter two are frameworks; better comparisons might be other PHP frameworks like CodeIgniter, Zend, Symfony, Cake.
Was This Post Helpful? 0
  • +
  • -

#11 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9096
  • View blog
  • Posts: 34,159
  • Joined: 12-June 08

Re: [Link] PHP The Right Way

Posted 25 July 2013 - 11:44 AM

A bit of interesting reading.. one goes into a discussion about the need for frameworks vs not really a need for php frameworks.. the otehr is a link from the guy that made Ruby on Rails.

Last we checked, PHP IS a framework.

Quote

I've been writing a little bit of PHP again today. That platform has really received an unfair reputation. For the small things I've been used it for lately, it's absolutely perfect.

I love the fact that it's all just self-contained. That the language includes so many helpful functions in the box. And that it managed to get distributed with just about every instance of Apache out there.

For the small chores, being quick and effective matters far more than long-term maintenance concerns. Or how pretty the code is. PHP scales down like no other package for the web and it deserves more credit for tackling that scope.

The immediacy of PHP
Was This Post Helpful? 0
  • +
  • -

#12 moopet  Icon User is offline

  • binary decision maker
  • member icon

Reputation: 339
  • View blog
  • Posts: 1,185
  • Joined: 02-April 09

Re: [Link] PHP The Right Way

Posted 26 July 2013 - 06:07 AM

View PostJackOfAllTrades, on 24 July 2013 - 03:53 PM, said:

TIL, from the article:

Quote

You can start learning PHP without the hassle of installing and configuring a full-fledged web server (PHP 5.4+ required).


Nice.


The php dev server is sufficiently different to a production environment for you to spend a while wondering why things work in one and not the other.

Seriously, how hard is it to install a web server? Even on Windows, it's just a couple of downloads, on a decent OS it's usually a one-liner. If you can't cope with that, you'll struggle with "hello world"...
Was This Post Helpful? 0
  • +
  • -

#13 Curtis Rutland  Icon User is online

  • (╯°□°)╯︵ (~ .o.)~
  • member icon


Reputation: 4469
  • View blog
  • Posts: 7,780
  • Joined: 08-June 10

Re: [Link] PHP The Right Way

Posted 26 July 2013 - 06:18 AM

Quote

Even on Windows


Don't forget, Windows comes with its own web server built in already. You just have to turn IIS on in the features. If you want IIS to support PHP, then you're right, it's just a download away.

On the other hand, I like the idea of the development server. Just starting a quick simple server is definitely easier than configuring Apache, if all you're doing is programming.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1