Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
What great advantages does Python have over PHP?
May 08, 2015 @ 14:49:06

There's an interesting post in the /r/php subreddit asking the PHP developers out there a serious (non-trolling) question: What great advantages does Python have over PHP?.

All over I see people saying that Python is better than PHP, but as a programmer that has tried Python I don't see its great advantages. Can you guys please help me here.

There's already over 50 comments on the post with a wide range of answers including:

  • that Python is "more mainstream" in the world of *nix tools
  • the culture of Python's community for installing extensions
  • features Python includes like a "consistent API, sane error handling, keyword args..."

There's also an interesting "sub-discussion" happening around the sanity of Python's OOP system. Check out the full post for more or to voice your own opinion.

tagged: python language advantage opinion feature

Link: http://www.reddit.com/r/PHP/comments/357zlx/what_great_advantages_does_python_have_over_php/

SitePoint PHP Blog:
Message Queues: Comparing Beanstalkd, IronMQ and Amazon SQS
Jan 08, 2014 @ 16:37:35

The SitePoint PHP blog has a new post looking at using message queues in PHP. More specifically it compares a few of the different solutions out there and their advantages/disadvantages - Beanstalkd, IronMQ and the Amazon SQS.

This article introduces the concept of message queues and discusses the strengths and weaknesses of three specific message queue services: Beanstalkd, IronMQ and Amazon SQS. [...] Queues allow you to store metadata for processing jobs at a later date. They can aid in the development of SOA (service-oriented architecture) by providing the flexibility to defer tasks to separate processes. When applied correctly, queues can dramatically increase the user experience of a web site by reducing load times.

He starts with some of the overall benefits and downfalls of using a queueing system in your application, including some common use cases. From their he breaks it up into sections, in each talking about the option and how it differs from the others:

  • Services
  • Server setup
  • Service Level Agreements (SLAs)
  • Architecture
  • Client libraries
  • Management interface
  • Redundancy
  • Security
  • Speed
  • Fidelity
  • One-time pickup

...and many, many more. If you're looking for a good, complete overview of how these three options compare on a wide range of features and configurations, definitely check out this post. It even includes some PHP close to the end to make the connections to each and send/receive messages.

tagged: message queue compare beanstalkd ironmq amazonsqs advantage disadvantage tutorial

Link: http://www.sitepoint.com/message-queues-comparing-beanstalkd-ironmq-amazon-sqs/

SitePoint.com:
Should Designers Have Coding Skills?
May 10, 2010 @ 17:06:14

On SitePoint.com there's an interesting opinion piece on one of the bigger debates in the web development world - should designers know how to write code, even if it's just a little?

This debate has been raging on SitePoint for some time. The issue was raised by Elliot Jay Stocks following a simple tweet: "Honestly, I’m shocked that in 2010 I’m still coming across ‘web designers’ who can’t code their own designs. No excuse."

This, of course, sparked a whole host of other opinions from the SitePoint readers and they've gathered them together and summarized the "for" and "against" topics from there. Those on the pro-coding side suggest that not only does it give them some appreciation for what the developers do for the designers but it also can make them a better, more flexible asset down the line. The those on the con-coding side suggest that designer time is precious and should be devoted to the usability of the site. They also note that you don't "need to be a plumber" to know how to get a working site together - each member needs to do their job.

Be sure to check out the comments for some other great thoughts from the community.

tagged: designer developer coding skill opinion advantage disadvantage

Link:

Juozas Kaziukenas' Blog:
Why Zend Framework?
Dec 08, 2009 @ 14:16:52

In a new post Juozas Kaziukenas takes a look at reasons he thinks you should (or shouldn't?) use the Zend Framework for your next application.

This is not a comparison of frameworks though, because I don’t feel like having enough experiences with other frameworks to make a fare comparison, that’s why this is going to be only a Zend Framework analysis.

He starts with some of his history with the Zend Framework so you'll know where he's coming from. He also lists out some of the advantages of the framework - it's customizable nature, the quality of the code, the large user community - and some of the disadvantages like it being hard to learn, that it's too loosely coupled and the fact that some components have fallen by the wayside and aren't really being maintained.

tagged: zendframework opinion advantage disadvantage

Link:

Mike Willbanks' Blog:
Why Utilize Zend Server Community Edition
Mar 18, 2009 @ 14:33:55

In this new post to his blog Mike Willbanks talks about some of the reasons he's found (including a few bad ones) to use or not use the Zend Server (Community Edition) for your application.

At work, we were looking to see where we were going as far as future PHP versions and maintaining our production environments it was appealing to see the Zend Server offering. After receiving the email about the public beta, I decided to give this a test spin and the results of which was taken with high regard.

Mike looks at some of the advantages the software offers - including the Zend Control Panel and extensions offered - and a few disadvantages - like the location of the Apache configuration files and the age of some of the extensions included. He also briefly looks at the Zend Control Panel and the features it offers.

tagged: zendserver community edition advantage disadvantage

Link:

Sameer Borate's Blog:
The benefits of colon syntax for control structures
Jan 15, 2009 @ 14:48:33

In this recent post to his CodeDiesel.com blog, Sameer is promoting the use of colons in control structures over curly braces.

PHP offers a alternative syntax for some of its control structures- if, while, for, foreach, and switch, where you change the opening brace to a colon (:) and the closing brace to endif;, endwhile;, endfor;, endforeach;, or endswitch;, respectively. [...] With the colon syntax you just have to match a ‘if’ with a ‘endif’ or a ‘for’ with a ‘endfor’. When you are mixing HTML with PHP in web pages the code can become quite dense and confusing if it uses a lot of braces.

An example is included showing its use in "if" and "white" statements. With most editors and IDEs supporting brace matching and code folding, this is less of an issue, but it can help make for cleaner code.

tagged: control structure colon curly brace alternative syntax advantage

Link:

Richard Heyes' Blog:
An epiphany... (using cron)
Dec 26, 2007 @ 15:40:00

Richard Heyes has shared an epiphany he's come up with - a method for running scripts in a web-based environment using lynx.

OK maybe not to you, but it has just occurred to me, and things don't come to me all that fast these days. Cron jobs. [...] You can have a directory inside your webroot called "cron" (imaginative eh?) with scripts in there that are run via cron.

His method uses the cron daemon on the machine to invoke lynx and call the web page through its url. Of course, there are advantages and disadvantages of the method (including having the script open to the world - scary). Be sure to check out the comments for other suggestions from fellow developers.

tagged: cron lynx run script advantage disadvantage cron lynx run script advantage disadvantage

Link:

Richard Heyes' Blog:
An epiphany... (using cron)
Dec 26, 2007 @ 15:40:00

Richard Heyes has shared an epiphany he's come up with - a method for running scripts in a web-based environment using lynx.

OK maybe not to you, but it has just occurred to me, and things don't come to me all that fast these days. Cron jobs. [...] You can have a directory inside your webroot called "cron" (imaginative eh?) with scripts in there that are run via cron.

His method uses the cron daemon on the machine to invoke lynx and call the web page through its url. Of course, there are advantages and disadvantages of the method (including having the script open to the world - scary). Be sure to check out the comments for other suggestions from fellow developers.

tagged: cron lynx run script advantage disadvantage cron lynx run script advantage disadvantage

Link:

Stefan Mischook's Blog:
Why learn OOP in PHP - another take
Sep 11, 2007 @ 15:14:00

Stefan Mischook has posted another take on why he thinks PHP developers should learn object-oriented programming:

For people new to OOP and are comfortable with 'classic' procedural php, you may be wondering why should you even bother to learn object oriented concepts...why go through the trouble?

He has several suggestions included in the post like:

  • PHP is moving in an OOP direction [...] So, to really understand and use these frameworks properly, you need to understand object oriented PHP.
  • Object oriented PHP really begins to shine as the project becomes more complex, and when you have more than one person doing the programming.
  • OOP is the modern way of software development and all the major languages [...] it only makes sense (in terms of career,) to keep your skills up-to-date.
  • OOP based PHP is much easier to maintain and update

He also suggests a method for developers to get started with OOP in PHP - how to plan out a project and think in objects rather than procedurally.

tagged: object oriented programming why learn advantage object oriented programming why learn advantage

Link:

Stefan Mischook's Blog:
Why learn OOP in PHP - another take
Sep 11, 2007 @ 15:14:00

Stefan Mischook has posted another take on why he thinks PHP developers should learn object-oriented programming:

For people new to OOP and are comfortable with 'classic' procedural php, you may be wondering why should you even bother to learn object oriented concepts...why go through the trouble?

He has several suggestions included in the post like:

  • PHP is moving in an OOP direction [...] So, to really understand and use these frameworks properly, you need to understand object oriented PHP.
  • Object oriented PHP really begins to shine as the project becomes more complex, and when you have more than one person doing the programming.
  • OOP is the modern way of software development and all the major languages [...] it only makes sense (in terms of career,) to keep your skills up-to-date.
  • OOP based PHP is much easier to maintain and update

He also suggests a method for developers to get started with OOP in PHP - how to plan out a project and think in objects rather than procedurally.

tagged: object oriented programming why learn advantage object oriented programming why learn advantage

Link:


Trending Topics: