Zend Developer Zone: Refactoring PHP Code
6014
Roy Ganor has posted a new article on the Zend Developer Zone about code refactoring, what it's good for and how it can help you and your code.   At first, refactoring seemed to me to be magic, over the years I have come to view it as more of a trick, and today refactoring is integrated into my development environment and used frequently and quickly. Using the refactoring functionality, in addition to other tools, I can sculpt the code to improve legibility and maintainability.   He talks about why PHP developers should jump on getting to refactoring their code, the different forms of refactoring, code examples showing it at work and some development tools/resources you can use to dig a little deeper.
514699
Cal Evans of the Zend Developer Zone has posted a new book review for one of Sams Publishing's latest PHP-related offerings, "PHP 5 In Practice" by Elliott "Eli" White III (Senior Programmer over at digg.com.   First let me say, if you are new to PHP or programming in general, skip this book. This is not a how to or even a cookbook for simple concepts. To get the most from this book you need to have a firm grounding in programming.   He sets the tone for the rest of the interview right there, noting that most of the book is made up of little examples, helpful bits to fill a need rather than teaching you the basics (or more advanced features) of PHP as a language. Cal spotlights this kind of content by talking about the "binary tree implementation" section. Check out the rest of the review for the full story.
20940
As mentioned on the Zend Developer Zone, Jaybill McCarthy has written up a Blog post about ten of the PHP myths that are common on the web and the facts that dismiss them.   I am a PHP developer. Maybe even a halfway decent one. As such, I often find myself engaged in conversations on the subject of web application development in general and PHP in particular. I am continually flustered by the myths, half-truths and outright falsehoods that technical and non-technical people alike hold about this humble programming language.   Some of the points included in his "top ten" list are things like "PHP Encourages Sloppy Code", "PHP is slow because itÃ¢ÂÂs interpreted" and "PHP apps all look the same".
320871
In a new post, Lukas Smith mentions (among other things) an upcoming webcast via the folks over at php|architect covering the best practices of using the opcode cache in your applications.    oin us as we host PHP internals developer, Stas Malyshev (Zend) with a presentation on optimizing your use of PHP opcode caching software, be it APC, Zend Platform, or another.   This talk will cover techniques that you can use to squeeze the most performance out of your cache, such as avoiding runtime includes and conditional class declaration.    Register soon because the event happens this Friday (March 16th, 2007) and there is no cost to attend - but you do have to sign up.
584290
Andrew Johnstone has posted some of his experience he's had developing with one of Zend's latest offerings - Zend Neon. Neon is the Zend project to bring robust PHP development functionality to the community on top of the Eclipse platform.   I've been using Zend Studio for Eclipse (beta) for several weeks in a rewrite of a framework and numerous sites at work and overall I really like the IDE. Its got some great features and being based on the eclipse project makes it really extensible and customizable.   He happy overall with the IDE but has come across some bugs in his time developing in it (nine of them) with issues ranging from the SVN functionality and samba out to small syntax sorts of things (like the auto-formatting).
432217
The Zend Developer Zone has posted some information about some freelancing work that the International Press Association is looking to have done.   If you've got spare cycles and want to help a brother out, read on. I received this from Leonard Rapoport of the International Press Association, (Disclaimer: Zend is a member of the IPA) The IPA is looking for some help. As you can see from the email below, they need a PHP programmer to help them out on some small projects and know of some larger projects they could turn you on it.   Any interested parties should contact Leonard via email and get things started.
442724
Courtesy of an update to this post on the Zend Develoer Zone site, there's a bit more detail from Hannes Magnusson, himself (the developer behind the recent changes to the PHP.net website) in a new blog post on his site.   As many of you know I changed the frontpage of php.net recently by moving conference announcements and call for papers to its own dedicated page in a desperate attempt to regain the control of our frontpage.   The rest of the post discusses the points of "why?", "regain control?", "what gave you the right?" and even links to a patch that puts a "conference teaser" back on the page (near the top).
553589
Zend has a new tutorial posted in their PHP 101 series - PHP 101 (part 9): SQLite My Fire!
540441
Aaron Wormus is back today on the Zend Developer Zone with another in his "Hidden Gems" series. This time, he takes a look at the "Zend Plumbing", those bits of connective code that help you make your Zend Framework applications work.   The functionality that he covers in this article are some of the min parts that a lot of ZF coders use every day and might not know it:  the Zend class (providing a suite of helper methods) built in Wrapper functions:  loadFile loadClass loadInterface isReadable dump exception  the Zend registry  Each of these is briefly described with some sample code for the loadFile, loadClass, exceptions and the Registry to give you an idea of how to use it all. As always, you can check out the Zend Framework website for all the details on each of these functionality bits.
458749
Sebastian Bergmann posts about the tutorial he (and fellow developers Matthew O'Phinney and Mike Naberenzy) will be presenting at this year's Zend/PHP Conference & Expo - a look at PHP Development Best Practices and Unit Testing.   From the official description:   PHP development by teams of developers introduces challenges beyond the mere coding of great algorithms. Agreements are needed about tools, specifications, architecture, design patterns, coding standards, testing, documentation, source code control, staging and deployment. This tutorial session aims to introduce developers to a set of best practices that will help them deliver applications fast and move them to deployment with confidence.   You can check out some of the other tutorials for the upcoming conference as scheduled here.
575304
Here's what was popular in the PHP community one year ago today:Zend Developer Zone: php|works - Day Two WrapupDevShed: Invoice Management in a PHP Invoicing SystemJared White's Blog: Developer Preview 2 of Willowgarden has been released todayZend Developer Zone: php|works - Day One WrapupP&aacute;draic Brady's Blog: PFP II: Return of Patterns For PHPPHPHacks.com: Generate OpenOffice documents with PHPThinkPHP Blog: SQL injections for dummies - and how to fix themILoveJackDaniels.com: Regular Expressions Cheat SheetDevShed: Tracking Website Statistics with PHPJob Posting: Red Ventures Seeks Mid/Sr Web Developer (Charlotte, NC)Scott Mattocks' Blog: PHP-GTK News #22Community News: Senza Limiti Acquires Ajax-based PHP Grid, Plans to Open Source ItAlexander Netkachev's Blog: Installing Propel object persistence layer for Web applicationDevShed: Main Methods of the DirectoryIterator Class in PHP 5Ilia Alshanetsky's Blog: PHP 5.2.0 RC4 Released!
621543
In another part of their series of excerpts from the Zend PHP Certification Guide (from Zend), DevShed has posted this article talking about debugging and performance issues and methods.   Making mistakes is human, and so is fixing them. In your day-to-day programming adventures, it's inevitable to introduce bugs in your PHP code, especially when you're writing very complex applications with tens of thousands of lines of code spread across tens of files.   In this article they look at things like flattening if statements, spplitting single commands across multiple lines, and the difference between =, ==, and ===.
767479
Here's what was popular in the PHP community one year ago today:Matthew O'Phinney's Blog: svn:externals (and the Zend Framework)Mark Jaquith's Blog: WordPress 2.0.6: Feedburner issue, and fixJob Posting: Unborn Media Inc Seeks PHP/MySQL Developer (Boston, MA)Zend Developer Zone: Tutorial : Using Zend Framework Without PDONetmag.co.uk: Make your own SoapChristopher Jones' Blog: Duplicate Columns in "2 Day Plus PHP Developer Guide"International PHP Magazine: Poll Question: Which is the Best PHP MVC Framework?William Candillon's Blog: phpAspect alpha 0.1.0 is released!Community News: phpthrowdown Registration OpenZend Developer Zone:  AJAX Chat Part Tutorial 6 : Updating the User ListIBM developerWorks: U2 PDO Driver Tutorial, Parts 1 & 2Stoyan Stefanov's Blog: Reusing an existing database connection with MDB2DevShed: Introducing the Memento PatternNexen.net: PHP statistics for December 2006Sandro Groganz's Blog: Syntax Highlighting & Migrating Permalinks in WordPress
213675
The Zend Developer Zone has posted the latest episode of their PHP Abstract podcast hosted by Rob Richards and covering service oriented architectures in PHP.   Our special guest today is Rob Richards. Rob is an author and maintainer of many of the XML-based extensions of PHP 5, as well as one of the maintainers of libxml2. He is also the author of Pro PHP and Web Services, published by Apress. Rob is going to give us an overview of Service Oriented Architecture and what it means to us as PHP developers.   The direct link to grab the show is here, but you'd be doing yourself a favor to subscribe to the podcast feed and get all of the great content on a wide variety of topics presented by the experts.
188378
Edin Kadribasic has posted some benchmarks he's created from the Zend bench.php tool on the latest build he's created with the new version of Visual Studio from Microsoft.   Here is the comparison of running Zend/bench.php from the PHP source using VC++ 8.0 (Visual Studio 2005) and VC++ 6.0. The test was done on my Lenovo laptop with Celron M 1.6 GHz processor and 1.5 GB ram.   Overall, the differences are pretty minimal, but there are a few places that stand out and have more of a variance than the others (like the 12% difference in the "simplecall" test). Check out the post for the full list of the benchmark results.
695342
The Zend Developer Zone has posted their latest podcast episode in their PHP Abstract series today. The show i shosted by Chris Hartjes again (see his previous show) and discusses the difference between "glue" and "full stack" frameworks.   Today's special guest is Chris Hartjes. Chris has been building PHP applications since 1998. Currently employed as a Senior Developer for the Cake Development Corporation, Chris has been labeled as an "agent provocateur" within the PHP community. [...] Today Chris is going to talk to us today about Glue Frameworks vs. Full Stack frameworks.   The show can be downloaded directly from here or, as always, you can drop the url to their feed into your favorite aggregator and get this and other great episodes of PHP Abstract.
110841
The Zend Developer Zone has "lifted the skirt" on a new feature in the Zend Framework today with this new article - a look at the Zend_Form component, a simple method for creating, validating and generally working with your user's input.   Zend_Form gives you all the tools necessary to create forms and form elements via PHP code. Like everything in Zend Framework, almost everything is configurable; however the defaults are probably good for most uses.   They include some sample code that shows the creation of both a simple, sample form and something a little bit more advanced - including validation methods and making fields required.