News Feed
Sections




News Archive
feed this:

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

Matthias Noback:
Unnecessary contrapositions in the new "Symfony Best Practices"
October 15, 2014 @ 12:29:31

Matthias Noback has a new post today with some of his thoughts about the recently released Symfony Best Practices book and some "unnecessary contrapositions" and things he sees that could help improve the perception of the book and the advice it provides.

Of course I'm going to write something about the new Symfony Best Practices book that was written by Fabien Potencier, Ryan Weaver and Javier Eguiluz. It got a lot of negative responses, at least in my Twitter feed, and I think it's a good idea to read Richard Miller's post for some suggestions on how to deal with an "early preview release" like this and how we can be a bit more positive about it.

He emphasizes the "staying positive" aspect of his message and points out that while some of the suggestions are good, they may not be the "best" in all circumstances. His main point, though, is that he thinks the way the book was introduced (the wording of the post) was unfortunate and cast a more negative light on the work done previously around Symfony best practices and advice. He recommends changing things around a bit in both the messaging and the book itself to take the focus away from the "you're doing it wrong" and encourage people to do it the way they recommend, casting a more positive spin on it all.

0 comments voice your opinion now!
symfony bestpractices guide reaction opinion positive

Link: http://php-and-symfony.matthiasnoback.nl/2014/10/unnecessary-contrapositions-in-the-new-symfony-best-practices/

Symfony Blog:
Introducing the Official Symfony Best Practices
October 09, 2014 @ 11:53:51

On the Symfony blog today they've officially announced the Symfony Best Practices initiative that's being ramped up to help provide a solid resource for Symfony developers and guide them towards more correct development within the framework (and its components).

Since the publication of Symfony 2.0, the Symfony Community has created an unofficial set of recommendations for developing Symfony2 applications. Unfortunately, a lot of these recommendations are in fact wrong. They unnecessarily overcomplicate things and don't follow the original pragmatic philosophy of Symfony.

This guide, soon to be published at http://symfony.com/best-practices will share 31 of the best practices gathered by Fabien Potencier, Ryan Weaver and Javier Eguiluz from their own experience and the practices the community has found along the way. The things in this guide will be optional, not required, to make Symfony-based applications work, so don't worry if you're not following them exactly.

0 comments voice your opinion now!
symfony bestpractices guide official fabienpotencier ryanweaver javiereguiluz

Link: http://symfony.com/blog/introducing-the-official-symfony-best-practices

Sound of Symfony:
Episode 4 - Best Practices
September 25, 2014 @ 09:32:38

The Sound of Symfony podcast has released their latest episode (#4) today focusing on Best Practices. Join hosts Magnus Nordlander and Tobias Nyholm and guest Kris Wallsmith ask they talk about some good practices to follow in Symfony-based applications.

In this episode we talk to Kris Wallsmith about best practices for your Symfony app. If you've ever wondered which code belongs in your controller, how to write your model, or how to separate your code into bundles, this is the segment for you. It also features the return of Magnus' favorite segment, the hidden gems section, and a discussion on news and a rundown of community updates.

Other topics mentioned include the walking trip to SymfonyCon, a few "hidden gems" and community updates about Symfony Live London 2014 and Symfony Live New York 2014. You can listen to this latest episode either through the in-page audio player or by downloading the mp3 for listening offline. If you enjoy the show, be sure to subscribe to their feed for more great content.

0 comments voice your opinion now!
soundofsymfony podcast ep4 bestpractices symfony framework

Link: http://www.soundofsymfony.com/episode/episode-4/

NetTuts.com:
More Tips for Best Practices in WordPress Development
July 25, 2014 @ 09:18:09

NetTuts.com has published a few more WordPress tips and best practices to help you get the most out of your WordPress-based application.

Welcome to the second part of the series. In the first article, we explained the WordPress Coding Standards, how to avoid namespaces collisions, comments in the code, and some basic security tips. Today, we are going to go a bit deeper and write some more code and learn some techniques to improve performance and security of our plugins.

They look specifically at when you should include your scripts and styles, formatting Ajax calls and working with filters and actions. Code snippets are included with each point with links to some other resources for some of the topics to provide more information.

0 comments voice your opinion now!
wordpress bestpractices development ajax scripts styles filters actions

Link: http://code.tutsplus.com/articles/more-tips-for-best-practices-in-wordpress-development--cms-21013

SitePoint PHP Blog:
Best Practices REST API from Scratch - Implementation
July 24, 2014 @ 13:11:22

PHPMaster.com has posted the second part of their best practices in REST APIs series with this new post focusing more on the implementation part of things.

We ended the first part of this tutorial with all the basic layers of our API in place. We have our server setup, authentication system, JSON input/output, error management and a couple of dummy routes. But, most importantly, we wrote the README file that defines resources and actions. Now it's time to deal with these resources.

They move on and add more functionality for creating (POST) and updating (PUT/PATCH) contacts in the system. They also show how to list contacts and add in some search handling allowing for sorting and returning only certain data. There's also some code for pagination handling, locating a single contact record, basic caching and simple rate limiting.

0 comments voice your opinion now!
rest bestpractices api tutorial implementation contacts

Link: http://www.sitepoint.com/best-practices-rest-api-scratch-implementation/

SitePoint PHP Blog:
Best Practices REST API from Scratch - Introduction
July 22, 2014 @ 09:39:12

The SitePoint PHP blog has posted the second part of their series looking at building up a REST API "from scratch". In this latest post Vita Tardia introduces some of the basic topics and the best practices that are around their use.

The current internet ecosystem has literally been invaded by APIs, and for good reasons. By using third party APIs in your products or services, you have access to a ton of useful features - such as authentication or storage services - that can benefit both you and your users. By exposing your own API, your application becomes "part of the mix" and will be used in ways you've never thought before… if you do it the right way, obviously. In this two part series I'll show you how to create a RESTful API layer for your PHP applications, using a collection of real world best practices.

He talks about how a REST API is a "user interface for developers" and the actions the different verbs could take on the same endpoints (PUT, POST, GET, etc). He uses the Slim framework in his examples and helps you get an instance all set up and working. He includes a bit about getting SSL/HTTPS up and running for all requests to the site too. From there he gets into the bootstrapping of the application and the first version of controller handling. He also includes code examples touching on JSON handling, authentication and good error handling.

0 comments voice your opinion now!
tutorial rest api introduction slimframework bestpractices

Link: http://www.sitepoint.com/best-practices-rest-api-scratch-introduction/

PHPBuilder.com:
Top 11 Best Practices for PHP Development
July 07, 2014 @ 18:08:30

PHPBuilder.com has offered the top eleven practices they see as a must for any PHP developer to incorporate.

Right from its inception, PHP was widely used to develop web based applications. Since PHP is a scripting language, one must follow some rules while developing. This article will discuss the best practices that are generally followed in the PHP world.

Their "top eleven" list includes things like:

  • Error reporting should be turned on
  • Meaningful and consistent naming standards
  • Deep Nesting should be avoided
  • Use adequate comments
  • Use Cache mechanism wherever required

You can read up on their full list and the descriptions of each in the full post.

0 comments voice your opinion now!
bestpractices development tips list top11

Link: http://www.phpbuilder.com/articles/application-architecture/optimization/explore-the-top-11-php-best-practices.html

QaFoo Blog:
Testing Find the Sweet Spot
July 18, 2013 @ 11:52:01

On the QaFoo blog there's a recent post interviewing Johann Peter Hartmann, the CTO of Mayflower, about current PHP testing practices and how to find that "sweet spot" that works for your development.

Talking to interesting people spawns ideas and spreads insight knowledge. Therefore, I talked to Johann Peter Hartmann about testing culture and how PHP projects should approach testing in 2013.

They talk about things like:

  • The move from "spaghetti code" to "quality code"
  • A discussion of the current tools
  • Defining a unit testing strategy
  • Test Driven Development

They also talk some about the training that the QaFoo folks provided to help them (Mayflower) work all of this out for their organization.

0 comments voice your opinion now!
unittest bestpractices company organization

Link: http://qafoo.com/blog/051_testing_sweet_spot.html

Brandon Savage:
"Do This, Not That" Now Available!
December 20, 2012 @ 10:50:36

Brandon Savage has officially released his book, "Do This, Not That" - a book targeted at beginners to the PHP language, trying to teach them best practices for some of the most common situations they might come across.

Too many books on best practices read like a manual. They are dry, boring and cover topics that you don't care about. "Do This, Not That" is different. A collection of essays, it highlights those areas for which best practices are either not well known or not well defined. It offers clear solutions that will be easy to implement. I've taken the time to research and identify what I feel are the best practices, and condensed it into a two hour read that will leave you feeling empowered, not exhausted.

If this sounds interesting to you, you can pick up a copy on the official site for about $30 USD and, if you're more of a try-before-you-buy sort, you can read a sample chapter covering type hinting.

0 comments voice your opinion now!
dothisnotthat book published language bestpractices introduction


Joshua Thijssen:
Introducing the REST cookbook
December 13, 2012 @ 10:18:57

In an effort to share the REST-related information he's been helping people out with over time, Joshua Thijssen has created a new resource that's less about the basics of REST and more about how to handle specific situations - restcookbook.com.

This is why I decided to setup a simple website, that pretty much tries to answer any question about REST. It's not completed yet.. Actually, it hasn't got many posts to begin with :), but a start has been made and we will fill it with questions and answers about REST and HTTP issues.

As of the time of this post, it only has a few articles, but they're a good start like:

0 comments voice your opinion now!
rest cookbook resource bestpractices api resource



Community Events





Don't see your event here?
Let us know!


symfony laravel tips podcast opinion release install bugfix interview voicesoftheelephpant series library api package framework introduction community language deployment list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework