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

Freek Lijten:
Consistency vs. "The itch"
Feb 20, 2014 @ 15:11:31

In this latest post to his site Freek Lijten talks about "the itch" of having or working on something outside the normal project standards.

I assume everybody has certain rules, regulations, guidelines or conventions at their jobs/open source projects. I like structure and consistency so, as long as they are sensible, these things make me happy. Still, every once in a while, something itches. What wins, itch or convention?

He gives an example from some of his current work with an "itch" around using only a call to a registry to save information where business logic isn't needed. He recommends not scratching the itch though, as consistency should win out over other solutions. As he points out, "one day, you will have the need for business logic" and you want to have that structure there to fit it into.

tagged: consistency programming development methodology itch

Link: http://www.freeklijten.nl/home/2014/02/18/Consistency-vs.-The-itch

Netcraft.com:
PHP just grows & grows
Feb 01, 2013 @ 17:58:02

Netcraft.com has posted the results of a web server survey with data compiled starting in 2002 all the way up to 2012 about the growth and usage of PHP on the web. The title of the article, "PHP just grows & grows", gives a clue to their findings.

Netcraft began its Web Server Survey in 1995 and has tracked the deployment of a wide range of scripting technologies across the web since 2001. One such technology is PHP, which Netcraft presently finds on well over 200 million websites.

For those not familiar with the language, they give an overview of its history starting back with PHP v1 that Rasmus Lerdorf developed for his own uses. They move quickly through the years talking about versions and improvements made during their lifecycle. They also talk some about their own tracking methods and the metrics they use to measure PHP's growth - hostnames serving up PHP-based sites, removal of active (not spam) sites, unique IPs and actual computers/machines.

tagged: netcraft language growth years history methodology

Link:

PHPBuiilder.com:
Using Get and Post Methodology in AJAX Applications
Dec 17, 2008 @ 16:21:48

On the PHPBuilder.com site Anthony Corbelli has a new tutorial looking at the differences between using GET and POST in the context of an Ajax-enabled application.

GET is typically used when you simply need to retrieve data and POST is used when you want to change the state of the server (i.e. send/update data on the server). This article will discuss how we use GET and POST methodology in our Ajax applications!

Complete code for his examples is included - both the Javascript and PHP sides. His example handles both GET and POST requests the same way, returning the city and zip information.

tagged: ajax application tutorial methodology request method

Link:

Paul Jones' Blog:
Solar 0.18.0 released, and more about testing
May 09, 2006 @ 10:56:26

The latest version of the Solar framework has been released, according to this new post on Paul Jones' blog today. Version 0.18.0 has several updates, but most importantly, there's an update to the testing methodolgy.

I can say that the procedural PHPT testing style is easier to approach for someone new to testing, and is great for smaller or standalone projects, but it doesn’t seem to "scale up" well for larger class structures. The object-oriented testing style used by PHPUnit and SimpleTest requires more inital setup work, but "scales up" much better in larger projects.

So in a spirit of meet-in-the-middle, I coded up a pair of Solar-based unit-test classes to take over from Solar_Test_Assert and .phpt, then converted a couple of existing .phpt tests to the new technique. It worked like a champ.

He also provides some examples with the inclusion of code from the Solar_Test class, a test written for Solar_Uri, the Solar_Test_Suite class, and a command-line test-runner (as well as a few others).

tagged: solar framework release version0.18.0 testing methodology simpletest phpunit solar framework release version0.18.0 testing methodology simpletest phpunit

Link:

Paul Jones' Blog:
Solar 0.18.0 released, and more about testing
May 09, 2006 @ 10:56:26

The latest version of the Solar framework has been released, according to this new post on Paul Jones' blog today. Version 0.18.0 has several updates, but most importantly, there's an update to the testing methodolgy.

I can say that the procedural PHPT testing style is easier to approach for someone new to testing, and is great for smaller or standalone projects, but it doesn’t seem to "scale up" well for larger class structures. The object-oriented testing style used by PHPUnit and SimpleTest requires more inital setup work, but "scales up" much better in larger projects.

So in a spirit of meet-in-the-middle, I coded up a pair of Solar-based unit-test classes to take over from Solar_Test_Assert and .phpt, then converted a couple of existing .phpt tests to the new technique. It worked like a champ.

He also provides some examples with the inclusion of code from the Solar_Test class, a test written for Solar_Uri, the Solar_Test_Suite class, and a command-line test-runner (as well as a few others).

tagged: solar framework release version0.18.0 testing methodology simpletest phpunit solar framework release version0.18.0 testing methodology simpletest phpunit

Link:


Trending Topics: