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

Michelangelo van Dam:
PHPSrbija Conference 2016 review
Jun 02, 2016 @ 12:56:40

Michelangelo van Dam has posted a review of a recent conference he spoke at - the PHP Srbija Conference 2016. it shares a bit about the conference in general and some of his own experiences as a speaker.

This past weekend I was invited to speak at PHP Srbija Conference 2016 which was held in Belgrade, the capital of Serbia in the south-east of Europe.

He details some of the travels he took to get to the conference, some of the other speakers in attendance and the area where the conference was held. He also covers some of the sessions that were presenting including the keynote from Chris Hartjes and talks from PHP notables like Sebastian Bergmann, Rafael Dohms and Marco Pivetta. He makes a definite recommendation to attend future events to anyone out there not able to attend this year and how he felt privileged to be a part of this year's conference.

tagged: phpsrbija conference 2016 pc16 review speaker

Link: http://www.dragonbe.com/2016/06/phpsrbija-conference-2016-review.html

SitePoint PHP Blog:
Functional Prog, Distributed DBs, JSON-Patch and More!
Oct 07, 2015 @ 10:31:27

The SitePoint PHP blog has posted a wrapup/review of the WebCampZG conference that happened in Croatia back on October 3rd & 4th (2015). It's "an annual conference for web developers, held in Zagreb on the first weekend of October".

This weekend, Chris Ward (the mobile channel editor at SitePoint) and me attended [Webcamp ZG](http://www.sitepoint.com/webcamp-zagreb-2015-a-conference-you-must-not-miss), the annual international web-oriented conference in Zagreb, Croatia. [...] The conference is a two day event, each day spearheaded by a keynote type of talk before diving into the bulk of the content. The schedules of both days contained plenty of breaks with food, drinks and snacks scattered throughout, providing for both energy and excellent socialization and networking contexts.

He covers both days of the event, talking about the sessions that were presented (including one from SitePoint-er Chris Ward) and the evening activities that followed. Despite some missteps in session content and the wifi - always a problem at tech conferences - Bruno found the event "a blast" and plans on attending in the future.

tagged: webcampzg webcampzg15 zagreb croatia conference wrapup review

Link: http://www.sitepoint.com/functional-programming-distributed-databases-json-patch-and-more/

SitePoint PHP Blog:
PHP Summer Camp 2015 Review
Sep 04, 2015 @ 10:55:15

The SitePoint PHP blog has posted an article from editor Bruno Skvorc reviewing the latest edition of the PHP Summer Camp conference that recently happened in Croatia.

You’re standing on a long pier, the last ten meters of which curiously belong to international waters despite being well inside the current country’s territory. As you climb the meter-high rock wall that forms a small barrier towards the west, you’re able to witness the sun dipping into the sea, far in the distance. Soft waves caress the rocky surface below your feet, bobbing the sea urchins and fish to and fro. There are other people there, each immersed in their own thoughts. No, that’s not a Dungeons and Dragons session starting. It’s the end of a great conference of workshops in Rovinj, Croatia, in the same spirit as [last year’s](http://www.sitepoint.com/phpsummercamp-review).

The PHP Summer Camp was made up of three tracks - two general PHP and one related just to eZ Publish. Bruno starts with a few of the key take-aways that he learned at the event before getting into reviews of each workshop he attended. He goes through each one describing what the session was about and some of the good/bad aspects he noticed. He also shares a "technical realization" he though of during the event around the use of Vagrant and provisioning virtual environments for the attendees. Finally he covers some of the "extras" like the early morning "triathlon" and evening events.

tagged: phpsummercamp15 conference wrapup review event sessions workshops

Link: http://www.sitepoint.com/php-summer-camp-2015-review/

SitePoint PHP Blog:
Writing PHP Git Hooks with Static Review
Sep 01, 2015 @ 11:16:01

On the SitePoint PHP blog Matthew Setter introduces the use of git hooks to help with automatic static analysis of your application's code, integrating it directly into your current workflow. He shows how to use this library to make creating and installing them as easy as a single command (and they're written in PHP).

If you’ve been using Git for more than a short length of time, you’ll hopefully have heard of Git hooks. [...] There are hooks for pre- and post-commit, pre- and post-update, pre-push, pre-rebase, and so on. The sample hooks are written in Bash, one of the Linux shell languages. But they can be written in almost any language you’re comfortable or proficient with. [...] Thanks to Static Review, by Samuel Parkinson, you can now write Git hooks with native PHP, optionally building on the existing core classes. In today’s post, I’m going to give you a tour of what’s on offer, finishing up by writing a custom class to check for any lingering calls to var_dump().

He walks you through the installation of the library and helps you create a simple working example that ensures you've correctly set up your (Composer) dependencies. He explains a bit about what's involved in the StaticReview package and the three "introspection" objects initialized for each run. He ends the post by walking you through the creation of a custom, more real-world check that evaluates your code (via a simple grep) to ensure no var_dump statements were left in.

tagged: static review git hook analysis tutorial

Link: http://www.sitepoint.com/writing-php-git-hooks-with-static-review/

Lorna Mitchell:
Code Reviews: Before You Even Run The Code
Jun 02, 2015 @ 09:50:01

Lorna Mitchell has posted a list of helpful tips to perform good code reviews on submissions before even trying to run the code for correctness.

I do a lot of code reviewing, both in my day job as principal developer and also as an open source maintainer. Sometimes it seems like I read more code than I write! Is that a problem? I'm tempted to say that it isn't. To be a good writer, you must be well-read; I believe that to be a good developer, you need to be code-omnivorous and read as much of other people's code as possible. Code reviews are like little chapters of someone else's code to dip into.

She offers several tips you can follow to make the reviews you do more effective including:

  • Ensuring you understand the change
  • Are the changes where you'd expect?
  • Does the commit history make sense
  • Evaluate the diff to ensure the changes themselves are valid

She only then recommends trying out the code. Following the suggestions above can help ferret out issues that may be hidden by just running the code and not fully looking into the changes.

tagged: code review suggestion list opinion before execution

Link: http://www.lornajane.net/posts/2015/code-reviews-before-you-even-run-the-code

Mikkel Høgh:
Drupal is still a gated community
May 25, 2015 @ 10:16:42

In a recent post to his site Mikkel Høgh makes the suggestion that Drupal is still a gated community, mostly as it relates to the process around the "Project Applications" process.

One of the things the Drupal community prides itself on, is how open the community is. And that is generally true, but there's one exception. And that is the Kafkaesque horror-show we subject any newcomers that would like to publish their code on Drupal.org to. It goes by the name of “Project Applications“. I know several people who've hit this wall when trying to contribute code. It's not uncommon to wait several months to get someone to review your code. And when it does happen, people are often rejected for tiny code style issues, like not ending their comments with a period or similar.

He talks about other factors involving reviews and delays that can also cause authors to abandon their work and feel "unwelcome and unappreciated". He mentions the "review bonus" system and how it's used to encourage participation (or "more hoops" as he puts it) from other authors. He notes that this situation mostly relates to those new to the tool and community and suggests that it just doesn't work (and really is unnecessary). He ends the post with a call to "end the madness" and move to a standardized role that would allow developers to publish without pushing people away and making them feel unwelcome.

tagged: opinion drupal walledgarden project applications review delay contribution

Link: http://mikkel.hoegh.org/2015/05/14/drupal-is-still-a-gated-community/

Zend Developer Zone:
Review: Day Camp 4 Developers Performant PHP - PSR-7 Video
May 01, 2015 @ 09:21:36

The Zend Developer Zone site has posted a review of a recent Day Camp 4 Developers event, specifically the PSR-7 presentation from Matthew Weier O'Phiney (PSR-7 is the proposed standard for HTTP request/response interfaces).

Having a keen interest in PSR-7 myself, I was delighted to see that Matthew Weier O'Phinney (the Supreme Allied Commander of Zend Framework) was going to be speaking on it himself at the latest Day Camp 4 Developers day. [...] PSR-7 deals with specifying interfaces to define HTTP messages (namely request and response messages), and in this talk Matthew introduces the concepts around HTTP messaging, and the PSR-7 implementation that models them. Matthew is the current editor of the proposed PSR-7 standard so this talk was obviously going to be given straight from the horse's mouth.

The author (Gary Hockin) walks you through the content provided in the video including:

  • an overview of the proposal
  • how other languages solve the same problem
  • how PST-7 will solve these same problems

Overall Gary found the talk well-presented and full of good content, especially for those just learning about PSR-7. You can find out more about Day Camp for developers and future events on their site.

tagged: daycamp4developers performantphp session video psr7 matthewweierophinney review

Link: http://devzone.zend.com/5173/review-day-camp-4-developers-performant-php-psr-7-video/

PSR-7 Voting Canceled
Apr 02, 2015 @ 09:34:40

The voting phase for the PSR-7 proposal (HTTP messaging structure) has been cancelled due to the desire to improve and clarify the spec before approving it.

Since we put PSR-7 up for a vote, a number of issues have arisen that we feel require attention. In most cases these are clarifications that, had they been made during REVIEW, could have been merged without dropping the spec back to DRAFT. Sadly, since PSR-7 is now up for a vote, we cannot make clarifications to the spec. We cannot even make clarifications after the spec is accepted, either, except by way of annotations and errata in the meta document.

We've weighed the risk of leaving the spec as-is against canceling the vote and making the required changes directly to the spec itself. This has been an ongoing discussion since the middle of last week. I had a meeting with Mathew and Paul this morning in which we decided that it would be in the best interest of everyone for us to cancel the vote and make the changes directly.

The call was a tough one, but the discussions around the proposal have worked out a lot of the kinks, just not all of them. As is mentioned in the Google Groups post, the PSR will go back up for a vote in two weeks. PSR-7 outlines a standardized interface for working with HTTP requests and responses, providing interoperability between frameworks and tools at this basic level.

tagged: psr7 http standard http vote cancel rework review

Link: https://groups.google.com/forum/#!msg/php-fig/42WhFKJzgrQ/9YbhKdLEOp4J

Book Review - Modern PHP: New Features and Good Practices
Mar 24, 2015 @ 11:29:28

On Slashdot today Michael Ross as posted a book review of Josh Lockhart's recently released O'Reilly book "Modern PHP".

In recent years, JavaScript has enjoyed a dramatic renaissance as it has been transformed from a browser scripting tool primarily used for special effects and form validation on web pages, to a substantial client-side programming language. Similarly, on the server side, after years as the target of criticism, the PHP computer programming language is seeing a revival, partly due to the addition of new capabilities, such as namespaces, traits, generators, closures, and components, among other improvements. PHP enthusiasts and detractors alike can learn more about these changes from the book Modern PHP: New Features and Good Practices, authored by Josh Lockhart.

In the rest of the review Michael provides an overview of the topics covered in the book and how it's divided up. He then covers each of these three sections, commenting on the contents and making a few recommendations for those not immediately familiar with the topics. He does point out that he felt there was some critical information missing on some topics that "would allow one to begin immediately applying that technique or resource to one's own coding." Overall, though, he found the book a good resource and recommends it to those looking for a source to learn about new trends and tools in PHP.

tagged: book review modernphp joshlockhart features practices

Link: http://books.slashdot.org/story/15/03/22/1447230/modern-php-new-features-and-good-practices

SitePoint PHP Blog:
Grumpy Programmer’s Testing Bundle: Review
Feb 09, 2015 @ 13:18:22

The SitePoint PHP blog has posted a book review of a book bundle from the "Grumpy Programmer" (aka Chris Hartjes) with content about testing - how to test, what to test and creating testable applications.

After having gotten some constructive feedback regarding my testing practices on the basic TDD in your new PHP package tutorial, I decided to read Chris Hartjes “Grumpy Testing Bundle”, a set of two books consisting of The Grumpy Programmer’s Guide To Building Testable PHP Applications and The Grumpy Programmer’s PHPUnit Cookbook. It was my hope that those books will prevent me from using the shoddy practices I displayed in that original post and which originally prompted Matthew Weier O’Phinney’s critique. In this post, I’d like to share with you what I’ve learned, and how much this helped me, if at all.

He breaks down the bundle and talks about each of the two books separately, pointing out places he thought were most useful and others where he felt it needed updates/more clarification. He includes examples of some of the code shared in the books as illustrations and what kind of overall rating he gives it (in elePHPants naturally).

tagged: book review grumpyprogrammer chrishartjes review bundle

Link: http://www.sitepoint.com/grumpy-programmers-testing-bundle-review/