- DeveloperWorld: How to make PHP apps scale
- Jason Hinkle's Blog: Build a Backbone.js Application with PHP
- Brian Moon's Blog: PHP Coding Standards
- Rafe Colburn's Blog: A list of engineering blogs
- PHPMaster.com: Introspection and Reflection in PHP
- PHP Tip-a-Day: PHP Tutorial: Convoluted Code - Combining Ternary Operators and Anonymous Functions
- Community News: php|tek 2012 Wraps Up
- John Sonmez's Blog: Types of Duplication in Code
- Gonzalo Ayuso's Blog: Strange behavior in PHP with method visibility
- Rob Allen's Blog: Zend Framework 2 beta 4 released
2012年6月1日星期五
Site News: Popular Posts for the Week of 06.01.2012
PHP-A-Day Blog: Commentary: Why Do People Hate PHP?
On the PHP-Tip-A-Day site today Greg Bulmash shares some of his thoughts about why people hate PHP.
I recently read Kevin Schroeder's blog post about 10 Reasons To Use PHP. Then -- silly me -- I started reading the comments. It only took a few before the obligatory anti-PHP hater came out and started insulting the language and the people who use it. That made me think about why that hate exists.
He points out that some of it probably has to do with people not really understanding what PHP is all about (no, reading a blog post dosen't make you an expert on it) and mentions PHP's dynamic typing as a sticking point with several developers.
Usually someone hating on PHP does so because they don't understand it, are upset by what it lets people get away with, feel it makes it too easy for someone to earn the title of "developer," or because they're dicks who have to insult other people because they can't simply be happy with their own choices.
WebSpeaks.in: Search Google Plus Profiles using PHP and Google Plus API
In this new tutorial to the WebSpeaks blog, Arvind Bhardwj shows you how to hook up to the Google+ API and search profiles for your desired terms.
The main aim of this application is to go familiar with the Google Plus API usage. Google Plus provides an extremely easy to use API to access the public contents on it. Here we will create a simple search application to search user profiles on Google Plus.
Complete code is provided in the post (PHP) and instructions on setting up an "application" on G+ so you can get the keys needed to connect to the API. You can see it in action in the live demo or just download the source to get started.
Pádraic Brady's Blog: The Framework Interoperability Group (FIG)
In a new post to his blog Pádraic Brady gives his take on the PHP-FIG (Framework Interoperability Group) and some of the decisions they've been making on PHP coding standards.
Anthony, whose views always make good reading, raises concerns about the way in which this group generates standards. He contrasts the current approach to RFC 2026 which defines the IETF's Internet Standards Process. [...] Where Anthony's arguments seemingly fall flat is that the FIG is not the IETF. The Framework Interoperability Group was founded to allow cooperating members to develop shared standards. It does not claim to be PHP's standards body and so there is no obligation for any PHP programmer to adopt their standards (unless they work on a member project obviously!).
He points out that the standards group's process has been slowly opening more and more ("by inches") and that the group, while made of up individuals, is more than just a collection of people - it's representatives for well-known Open Source projects.
In other words, the FIG is actually something really really good for PHP. PHP needs standards so we can make interoperability between various frameworks and applications a true reality. The hodgepodge of APIs and standards we've relied on to this point only serve to reinforce PHP's NIH obsession. [...] What the FIG should do, in my opinion, is clearly define its purpose and better document its bylaws/processes. [...] It really all comes down to better communication and pushing the community engage with the FIG.
Chris Hartjes' Blog: Tricorder: A Testing Helper for PHP
Chris Hartjes, a big proponent of testing in the PHP community, has a new post to his blog about a new testing tool he's released to make it easier for you to know what needs testing - Tricorder.
I've hacked together a little CLI script that I think will be of use to many people who are trying to answer the question "just what should I do to test this thing anyway?" as they learn how to write PHPUnit tests to go along with their code. [...] I've created something that I am calling PHP-Tricorder, a CLI utility that can be used in conjunction with phpdoc structure.xml files to make suggestions on testing scenarios. It's at a 0.1 release right now, so I anticipate it will grow and add more features as time goes on.
The post includes an example of the output generated from the phpdoc's XML output, recommending things like:
- Mocking certain objects
- Testing for data types and contents
- Recommending testing ideas for private/protected methods
You can grab (or contribute to!) the latest version of the tool over on github.
2012年5月30日星期三
User Group: Guelph PHP User Group - May 30th @ 7:30pm - Deploying Database Changes
The Guelph PHP User Group (Guelph, Ontario) is having a meeting tonight, May 30th at 7:30 PM hosted at the Well.ca offices. The topic will be deploying database changes presented by Colin DeCarlo.
This month Colin DeCarlo will be talking about a tool called Liquibase which allows you to manage and automate database deployments as part of your build and deployment process. He'll also be looking at how to integrate it with Jenkins and may even talk a little about how this tool is used at Freshbook...
If you'd like to attend, please let them know sometime today so they can know how many to expect!
If you have a user group meetup that you'd like to announce, email the information over and it'll get posted!