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

CloudWays Blog:
Turbocharge Yii Development Through These Best Practices
May 04, 2017 @ 13:39:54

On the CloudWays blog author Saquib Rizwan has written up a post sharing some best practices with Yii2 applications, the third part in a series, to help you "turbocharge" your development using included features.

Yii is a popular PHP development framework that has managed to hold its own in the fierce world of PHP framework. In effect, Yii is still a popular development framework for all categories of PHP projects.

[...] Whichever PHP framework you opt for (I personally prefer Yii2), the success of the project depends entirely upon the quality of the code. In all instances, following the Yii development best practices ensures that your code is of the highest quality and that the overall project confirms to the quality specifications. The following Yii best practices are the result of the experiences of the Yii developers from all over the world.

Included in his list of recommendations are practices like:

  • Follow the Code Standards
  • Optimized Overheads for Yii
  • (Avoiding) Cache Heavy Processes
  • Profile and Test Applications

These and the other items in the list include a brief summary of the practice and, on some, links to other resources for more information or tools to help.

tagged: yii2 framework bestpractices improve development tutorial

Link: https://www.cloudways.com/blog/yii-best-practices/

Giorgio Sironi:
Book review: Fifty quick ideas to improve your tests
Feb 13, 2017 @ 11:15:03

Giorgio Sironi has posted a review of a book to his site that shares fifty quick ideas to improve your tests that can help with things like run time, ease of maintenance and following best testing practices.

Fifty quick ideas to improve your tests is, well, a series of fifty quick ideas that you can implement on some of your automated test suites to improve their value or lower their creation or maintenance costs.

These ideas are pattern-like in which they are mostly self-contained and often independent from each other. They are distilled from real world scenarios that the authors (David Evans, Tom Roden and Gojko Adzic) have encountered in their work.

He's included a few quotes from the book he found particularly interesting including mentions of:

  • a pyramid of software quality levels
  • misunderstanding that testing can somehow be completely replaced by a set of carefully chosen examples
  • difficult testing is a symptom, not a problem
  • the problem with time-based "sleeping" in tests

You can find the book itself over on Leanpub and can pick up your own copy for around $10 USD.

tagged: book review fifty ideas improve testing ebook leanpub

Link: http://www.giorgiosironi.com/2017/02/book-review-fifty-quick-ideas-to.html

MaltBlue.com:
3 Simple Ideas for Improving Zend Framework Performance
Jan 23, 2014 @ 10:27:55

Matthew Setter has shared three tips to improve the performance of your Zend Framework-based application on his MaltBlue site today:

Today, I want to take you out left field a bit. I want to take you a little away from the everyday, potentially clichéd, advice you likely read when it comes to improving Zend Framework 2 application performance. There’s likely nothing wrong with it; but I’d say you’ve already read it many times. Instead, I’ll show you 3 strategies you may not have thought of – specifically focused around the database. That way, when combined with the standard advice, you’ll be better able to improve performance of your Zend Framework application.

As mentioned, his three tips involve working with database connections and resources:

  • Improve your database skills
  • Learn key database features
  • Move logic to the database layer

This final tip advocates the use of things like stored procedures and triggers to handle some of the logic load of the system. This also reduces some of the network overhead as not as much information is having to be pulled "over the wire" as before.

tagged: improve performance zendframework2 application database

Link: http://www.maltblue.com/zend-framework/3-simple-ideas-for-zend-framework-performance

Engine Yard:
Improving Your Local Tech Group
Oct 04, 2013 @ 11:28:47

On the Engine Yard blog today PJ Hagerty has a new post sharing some of his suggestions to help improve your local tech-related group and promote growth.

There are hundreds of User Groups across North America and around the world. These groups are primarily socially based or hacker groups who gather regularly to work on group or individual “toy” projects. Most groups will remain small and insular. It’s easy to stick with what is familiar and keep recycling the same format every month. Unfortunately, this leads to stagnation and apathy by group members. People will eventually stop showing up and the group will either suffer along or just cease to exist.

He suggests things that are easier when there's more than one person involved in making it a success - things like "diversify responsibilities" and having a "coordinator for outside the group activities", but they're helpful tips. He also points out a few other things to remember - that communication with the group is key, "thinking globally" to get your group involved outside the local scope and getting sponsors involved.

tagged: suggestion improve technology group communication

Link: https://blog.engineyard.com/2013/improving-your-local-tech-group

Zend Framework Blog:
Help us improve the documentation!
Mar 29, 2013 @ 11:07:53

On the Zend Framework blog they're asking for your help with the project's documentation. They're looking to the users and community members around the framework to help them make the documentation more useful and stay up to date.

A piece of software is only as good as its documentation. The Zend Framework team and a dozen or so contributors are working hard to improve the Zend Framework 2 documentation, but we still want you to help us improve it even more. Any kind of help is welcome and greatly appreciated.

Most of what they're looking for is clarity - they want to ensure that what's in the manual makes sense (and is correct for the release it relates to). They're also looking for feedback on what helps you learn best - tutorials, user guides, API docs, etc. Issues and suggestions should be posted to the issue tracker in github. If you're not sure where to start, check out the contributors guide.

tagged: improve documentation help zendframwork github

Link:

Reddit.com:
PHP now, as an outdated developer
Aug 31, 2012 @ 09:55:56

In this recent post to Reddit.com, the author recounts some of his past experience in technology and the steps he's taken along the way to improve himself. He's at a loss now, though, and wants recommendations for what to do next (a familiar situation for many):

I started 12 years ago designing websites. back then the fun and the complexity were playing with css, javascript and dhtml. [...] So right now i need some advice because im kind of lost facing so many possibilities. I want to learn the MVC approach, but i think that doing it by learning a different language (like ruby) will help me to increase my knowledge and being able to work with CI, Cake, Zend or Symphony more naturally. What should i focus first? web design tools? frameworks? mobile programming? NoSql databases?

Responses so far talk about things like using version control, even just in personal projects, the usefulness of Ajax/modern Javascript, more advanced CSS techniques, SOA and some framework suggestions to fill the MVC desire.

Do you have a recommendation on what'd be a "next good thing" to learn in the current web development world? Share it here!

tagged: opinion improve developer skill learn

Link:

DZone.com:
Writing Better PHP: Three Guides
Dec 14, 2011 @ 11:15:32

On DZone.com today John Esposito has posted about three guides that want to help you improve your PHP development skills (including a forum post and two articles).

Sometimes, then, improving your generic 'programming brain' will help you improve your facility with a particular language. At other times, it's more important to learn the nuances of a language, paying close attention to the kind of applications the language is used for. [...] For improving your PHP, then, you can do two things: become a better programmer; and understand PHP more finely, more deeply.

The three guides share a lot of the same concepts in common - naming conventions, separation of functionality, DRY (don't repeat yourself), testing code, etc.

tagged: improve development practices skill guide

Link:

Zend Developer Zone:
Improving Code Quality with Flash Builder 4 and PHPUnit
Sep 14, 2010 @ 08:58:16

On the Zend Developer Zone there's a new tutorial written by Nathan Good about improving the quality of your Flash applications (built in Flash Builder 4) with the help of unit testing with PHPUnit.

Unit testing is becoming a fairly common element of software projects because of its promise of providing better quality to the code base. [...] This article is about improving your code quality in a sample project using Adobe Flash Builder 4 to build a rich user interface (UI) and connecting to PHP services via Zend Action Message Format (AMF). In this article, you learn how to write tests using two frameworks: FlexUnit and PHPUnit.

He starts with an overview of unit testing - why you should test your applications even though it might seem counterproductive and a description of what parts of your application the two testing tools (FlexUnit and PHPUnit) can help with. He first focuses is on the latter of the two and he shows how to get PHPUnit installed and write a first test on an example class. Following that, he moves over to the FlexUnit side and gives the same class and first test example. He then talks about running and automating the testing on both sides and even touches on things like continuous integration and code coverage results.

tagged: improve code quality phpunit flexunit unittest

Link:

DevBots Blog:
Improving IT from Within
Aug 19, 2009 @ 10:08:40

On the DevBots blog recently Darby Felton posted a few suggestions of things that could be done to help improve IT organizations from the inside and promote a more healthy environment for everyone involved.

Lately I have been thinking about a few aspects of the information technology industry. Particularly, regarding software development, I am concerned that the following characteristics remain pervasive and detrimental to our industry: far too many software development projects ultimately fail, we tend to lack clear, rigorous standards and credentials that other industries typically employ, and our [lack of] adherence to ethics and professional conduct leaves much to be desired.

He addresses each of these, pointing out that a good number of IT environments have fallen into these issues and steps need to be taken to: reduce the failure rate of projects, hone down the staff to those that will turn out the best possible product and will uphold a good set of standards/ethics while they do.

tagged: improve it failure standards ethics

Link:

Developer.com:
Performance Improvements: Caching
Jul 28, 2009 @ 09:44:33

While not specifically related to caching in PHP applications, this recent post from developer.com has some good reminders of how much the right kind of caching can help your application to really fly.

If you're looking at performance and you want to get some quick wins, the obvious place to start is caching. Caching as a concept is focused exclusively around improving performance. [...] Fundamentally caching has one limitation - managing updates - and several decisions. In this article, we'll explore the basic options for caching and their impact on performance.

They talk about three different update methods - a synchronized update, lazy update and a read-through strategy (where the caching functionality itself can force a re-read of the original source). There's also a brief look at options to consider when caching data and how you're going to manage that cache once you've filled it with data.

tagged: performance improve cache

Link: