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

Laravel News:
A guide for prioritizing application errors
Jul 03, 2017 @ 15:17:26

The Laravel News site has posted a tutorial that offers some advice on how to prioritize fixing bugs and errors in your applications.

One major problem is that prioritizing errors isn’t always clear. Figuring out how much negative impact a bug is really causing is important to answer because not all bugs are worth fixing.

That’s why having a solid workflow in place for prioritizing bugs is so important. In order to confidently allocate your engineering resources on bug fixes and feature building, you need to understand the scope of each application error, and its impact on your customers. Then you can definitively say particular bugs are high enough priority that they should be scheduled into a sprint alongside your work on building new features.

The article is then broken down into a few different sections, each with a few points underneath:

  • Get setup with smart error reporting from the start
  • Focus your error inbox to keep it actionable
  • Prioritize the most relevant errors first
  • Prioritize errors by moving them into your debugging workflow

The post is sponsored by Bugsnag so there's some of the content that suggests using their service but the advice is sound for any kind of error handling workflow.

tagged: priority error tracking application fixes workflow tips

Link: https://laravel-news.com/prioritize-application-errors

Lorna Mitchell:
Beanstalk, Pheanstalk and Priorities
May 08, 2014 @ 14:47:08

Lorna Mitchell has a quick post showing you how to use the "priority" option that the Pheanstalk library provides when working with a Beanstalk queue.

I've got an application that uses Beanstalkd to queue up messages, and some PHP worker scripts that grab messages from the queue and process them. Messages get added by the web application, but can also be added by cron - and when I add a bunch of messages via cron, I don't want to swamp what the web application is doing! Those cron-added jobs are mostly pretty low priority, generating reports, sending weekly update emails, that kind of thing. Beanstalkd has a concept of priority, so I can create lower priority jobs.

She includes a three line example showing the use of the "LOW_PRIORITY" constant to tell Beanstalk how and when it should handle this particular job. In her situation, where there are multiple smaller jobs rather than larger ones it makes more sense to shift some of the smaller, less important tasks to be executed later.

tagged: beanstalk pheanstalk priority tutorial example

Link: http://www.lornajane.net/posts/2014/beanstalk-pheanstalk-and-priorities

PHPMaster.com:
Data Structures for PHP Devs: Heaps
Jul 23, 2013 @ 16:10:17

PHPMaster.com has posted the third part of their "Data Structures for PHP Devs" series today, this time focusing on heaps. Heaps are a method for organizing a parent/child relationship that makes it easier to work with.

In past couple articles I’ve introduced you to three basic data structures: stack, queue, and tree. In this article I’ll introduce you to another abstract data type that is closely related: heap. Heaps are specialized tree-like data structures which satisfy the heap property – the node value (key) of any parent is always ordered with respect to its child node values across the entire tree.

He starts off by explaining what the different types of heaps are - maxheap, minheap and (a special instance) a Priority Queue. He talks about the operations available to heaps and starts off with a binary maxheap implementation using arrays. He also mentions some of the functionality that the SPL already provides for this sort of thing - SplMaxHeap, SplMinHeap and the SplPriorityQueue.

tagged: data structure heap tutorial series spl priority queue

Link: http://phpmaster.com/data-structures-3

Matthew Weier O'Phinney's Blog:
Taming SplPriorityQueue
Jan 18, 2011 @ 18:43:54

Matthew Weier O'Phinney has a new post to his blog today looking at one of the tools the Standard PHP Library (SPL) has to offer developers - the SplPriorityQueue (PHP 5.3+)

SplPriorityQueue is a fantastic new feature of PHP 5.3. However, in trying to utilize it in a few projects recently, I've run into some behavior that's (a) non-intuitive, and (b) in some cases at least, undesired. In this post, I'll present my solutions.

He talks about the "first in, first out" nature of queues and how it differs from a stack (including links to some of the other SPL offerings for both). He then moves into the problems he was seeing - that iteration removes values from the heap and the unexpected order of equal values in the queue. To solve the first problem, he creates an "outer iterator" that creates an "innerQueue" that's protected. The solution for the second issue - the random queue order - is a simple one: priority indexes aren't required to be integers. Strings can be substituted to help make things a bit more unique.

tagged: splpriorityqueue heap stack queue spl tutorial iterate priority index

Link:

Chance Garcia's Blog:
Zend_log_exception 'bad log priority'
Mar 02, 2009 @ 16:27:26

Chance Garcia has posted about an exception he's come across several times in using the Zend_Log component of the Zend Framework but hasn't been able to figure out - until now (with the help of part of the Zend Framework manual).

There are a few times I’ve gotten this particular exception and then look at the trace and can’t figure out what’s wrong. More often than not, I’ll get to the line in the trace and be like, "wtf! there’s no priority here. It’s a method call not a constant". [...] So to save myself and others some time and aggrevation, I’m going to go into a bit of detail as to why you may be getting this exception.

As it turns out, the Zend_Log exception was caused by the components overloading of the __call function to allow for some custom handling. Chance sees this issues as an example of "flexibility leading to complications that require complex understanding".

tagged: zendlog zendframework component bad priority exception

Link:

DevShed:
Choosing an Open-Source Content Management System
Dec 19, 2008 @ 16:26:55

From the "Braindump" section over on DevShed today there's a new article sharing some helpful hints on picking out that right Open Source content management system that you need for the job.

A Content Management System (CMS) provides a straightforward way to maintain a web site, allowing site owners to include interactive features such as article publishing, file uploads and sharing, forums and blogs with a minimum of coding. And a good CMS will also allow extensive customization to the site's layout and appearance, so it doesn't end up looking like thousands of other sites built on top of the same code base.

The look at a few of the priorities to consider - multi-author support, metadata management, ease of use - as well as technology and business considerations. Systems they look at in their overview include Joomla, Drupal, Mabo and Plone.

tagged: opensource content management system choice priority

Link:

DevShed:
Logging in PHP Applications
Dec 08, 2008 @ 19:52:10

DevShed has posted a new tutorial today looking at one of the more useful tools a developer can add into an application - logging.

If there is no logging mechanism, then if there's a goof-up in a production environment, you have absolutely no idea what went wrong. The only thing which a support developer can do in this case is to reproduce the issue at the developer end, which sometimes work and sometimes don't.

The look at the types of logging (trace logs, audit logs and user logging/history) and create a simple class that allows flexibility for file location, priority and timstamping. Their script contains a writelog method that does all the work (including pushing it through the PEAR logging class).

tagged: log tutorial pear trace audit history priority timestamp location

Link:

International PHP Magazine:
Poll - Which One of the Following Should a PHP Programmer Give Priority?
May 23, 2007 @ 16:19:00

The International PHP Magazine is back with the results on their latest poll today that asked developers to vote on which, of their options, a PHP developer should give the most effort towards when creating their applications.

Options included "Magic Methods", "IDE's" and "Database Support" but the number one option that got the most votes by far was "Classes". This left second ("All" at 19.3 percent) and third ("Database Support" at 8.4 percent) place in the dust.

If you're a CodeIgniter user, be sure to get your vote in on this week's poll asking users to vote on which of the feature options they've given is what makes CodeIgniter the best framework out there.

tagged: poll effort priority application class codeigniter vote poll effort priority application class codeigniter vote

Link:

International PHP Magazine:
Poll - Which One of the Following Should a PHP Programmer Give Priority?
May 23, 2007 @ 16:19:00

The International PHP Magazine is back with the results on their latest poll today that asked developers to vote on which, of their options, a PHP developer should give the most effort towards when creating their applications.

Options included "Magic Methods", "IDE's" and "Database Support" but the number one option that got the most votes by far was "Classes". This left second ("All" at 19.3 percent) and third ("Database Support" at 8.4 percent) place in the dust.

If you're a CodeIgniter user, be sure to get your vote in on this week's poll asking users to vote on which of the feature options they've given is what makes CodeIgniter the best framework out there.

tagged: poll effort priority application class codeigniter vote poll effort priority application class codeigniter vote

Link:

International PHP Magazine:
Poll Question: Which Is Your Favourite PHP Framework?
May 16, 2007 @ 13:46:00

The International PHP Magazine has posted the results from the latest poll (they conducted over the past week) that asked which of the options given was your favorite framework choice.

Options included CodeIgniter, CakePHP, PHP on TRAX, Propel, Seagull, Solar, the Zend Framework and more. Coming in with the largest percentage of the votes, though was CakePHP with 56.1 percent of the responses. Coming in second (but a ways behind) was CodeIgniter followed by the Zend Framework.

If you didn't get a chance to get your vote in on that poll, you can get in on this week's poll and voice your opinion. This time, they're asking which (of the given options) should a programmer give the more emphasis to when developing their application.

tagged: favorite framework poll question cakephp codeigniter priority favorite framework poll question cakephp codeigniter priority

Link:


Trending Topics: