It is just Day 2 of my experiences in the trenches, regular work, had kept me from this but I managed to get some time to keep digging. As a followup to my Doctrine 2 – Day 1 – Commentary from the Trenches. The models are up and configured, and the unit testing is setup […]
State of PHP Feb 2012 – Symfony 2, Zend Framework 2, IDE Support, MySQL
There is just too much going on so I thought I should put these thoughts down so that I do not lose my mind from the excitement and anticipation that comes from things moving very fast and innovation being spured at a pace which is mind boggling. PHP In my opinion the stabilization of PHP […]
Doctrine2 – Day 1 – Commentary from the Trenches
The new year is here so it is time to get cracking on infrastructure for the year’s development projects. There are a number of things we have been putting off, but now that a number of our client hosts support PHP 5.3, it is the right time to move up the stack for our ORM […]
PHP Wishes 2012 – Interfaces and Standard Web Application Project Layout
Since Santa is listening, below are my PHP wishes for 2012: Standard Interfaces like Java which are used by many projects so that developers and architects focus on implementation Standardized Web Application Project Layout just like J2EE Web Application Directory Structure (http://java.sun.com/blueprints/code/projectconventions.html) or Linux Standard Base (http://en.wikipedia.org/wiki/Linux_Standard_Base) I am learning Symfony 2 over the next coupla […]
Mozilla Firefox Updates – Now a Failed Experiment?
Okay now this is a ranting post … Mozilla decides that their development process for Firefox is too slow since Google Chrome and Microsoft Internet Explorer are eating their lunch … So they made what I consider the dumbest experiment any software organization can do, copy a model and use it. I do not have […]
Zend Framework Hidden Gems – Zend_Measure
Just had a bit of a problem today dealing with displaying file sizes of uploaded reports in an application we are upgrading using Zend Framework. When the files are uploaded, the file sizes are stored in bytes, but for display we need to show the sized in KB as the typical file size is between […]
Interfacing in the PHP World – Dictator Style
Seems that I have a radical approach to the need for PHP interfacing as suggested by Lucas Smith (http://pooteeweet.org/blog/2008/) then a rebuttal by Herman Radtke (http://www.hermanradtke.com/blog/please-do-not-interface-the-php-world/) and finally Lucas Smith again (http://pooteeweet.org/blog/2014) I think that the approach for PHP should be: 1) Interfaces in the main PHP tree therefore all have to abide or die, […]
Chosen – JQuery Love for HTML Select Fields
If you develop applications with HTML select fields you know that anything longer than 10 options is a recipie for customer complaints, and usability nightmares, well the guys of Harvest (http://www.getharvest.com) provide Chosen a way to make select fields more useable, searcheable with even a Facebook like select for multiple options. This is also used […]
ORM Anti-pattern – Right conclusion, wrong reasons – Rebuttal
This is a rebuttal for Right conclusion, wrong reasons (http://bit.ly/oULuaz ) for an ORM being an anti-pattern. The main purpose of an ORM (Object Relational Mapper) is to fix the object-relational mismatch, which is a mismatch between how an object is treated differently by the object oriented and relational paradigms which are fundamental constructs in programming […]
Zend_Navigation Render the SubMenu for Active Menu Item using a Partial
One of the biggest problems with Zend_Navigation helpers is using partials to render sub-menus in order to achieve customized rendering especially when additional properties have been defined. The approach to the solution is as follows: // find the first active menu item $subnav = $this->navigation()->menu()->findOneByActive(1); // The finder methods return null for no matches so […]