On the BinaryTides blog there's a series of posts that share some tips and suggestions aimed at helping you and your code be the best they can be - things to enhance your application (including suggestions not just about code but also about environment and development practices).The three posts in the series include tips like:
Maintain debugging environment in your application
Collect all output at one place, and output at one shot to the browser
Set the correct character encoding for a mysql connection...
Juan Treminio has started up series of posts over on his blog looking at the Kohana framework and guiding you through the creation of a sample application with it (in-depth).The Kohana Framework started off as a fork of the very popular CodeIgniter Framework. During the KO 2.x versions, it stayed fairly similar to how CodeIgniter functioned, and a developer could easily jump from one to the other and feel very familiar. With the introduction of the Kohana 3.x version, this all changed, as Kohana was...
WKHTMTOPDF HTML to PDF creator
PHP PDO Singleton Database Wrapper
Data Migrator and Merger
Larrys Form Generation
MySQL Database Wrapper Class
File Size Helper
Named Buttons Captcha
Recently we implemented some quite sophisticated caching mechanisms using varnish. In addition to just caching, backend errors and invalidated pages had to be handled gracefully whenever possible so we implemented grace mode, saint mode and backend probes.
Everything was working great during development but then we did some real performance testing... The results really gave us some headache because at some point we noticed the following in varnishlog from time to time:
A11 FetchErrorAA c no backend...
I read a rather interesting post yesterday called PHP: a fractal of bad design. It's been getting a lot of traffic among the PHP community lately because it's ratherAinflammatory. But to be honest, it does make a lot of really good points. It also makes a lot of mistakes and misses a bigger picture.Read more A
The Voices of the ElePHPant podcast has posted their latest episode - an interview with another member of the PHP community, Justin Carmony, a member of the Utah Open Source Foundation/Conference.Cal's "three questions" for Justin are around his work with Redis and the Utah open source community and conference:
For those that don't know, can you tell us what Redis is and why did you choose it over other options?
Can you tell us why "middle-scale" sites are different and what challenges do they uniquely...
On the Ibuildings techPortal site, they've posted the latest episode of their "DPC Radio" series (as recorded at the 2011 Dutch PHP Conference) - Rowan Merewood's session "TDD and Getting Paid".Test-driven development is generally regarded as a good move: it should result in simple decoupled design, your tests tend to cover behaviour not methods, and far fewer bugs. However, just getting unit tests in on a real, commercial project is hard - switching to TDD is even harder. [...] So, instead of beating...
In this new post Joseph Scott takes a look at hashing in PHP, specifically around md5 hashes, and a better alternative (that's also more secure.The majority of the Coding Horror: Speed Hashing post talks about speed based on MD5. [...] If you are still using MD5 to hash passwords (or worse, aren't hashing passwords at all) then please stop and go use bcrypt. For those using PHP phpass is a great option.He talks about the crypt method, how its encryption method and "cost" value effects the speed and how...
Gonzalo Ayuso has a new post to his blog looking at a method for injecting dependencies into your application's code based on comments in the PHPDocumentor-formatted comments of your methods.Last month I attended to Codemotion conference. I was listening to a talk about Java and I saw the "@inject" decorator. I must admit I switched off my mind from the conference and I started to take notes in my notebook. The idea is to implement something similar in PHP. It's a pity we don't have real decorators in...
On DZone.com today there's a new tutorial from Giorgia Sironi giving an example of working with the PageObject pattern and how it's implemented to help with testing in the PHPUnit_Selenium plugin.In the realm of acceptance testing, a possibility for hooking into the application and exercising it end-to-end is to work through a user interface, which nowadays is in more and more cases web-based. The Page Object pattern is a way to model pages (intended as screens) of a web application as independent...
Another day, another article posted on Hacker News that describes PHP's failures and complexities as though they actually mattered. The truth is, only programmers care about languages. Only programmers care about the methods, routines, algorithms and organization of programming languages. Only programmers argue about coding styles, whether white space or brackets is the best way [...]
Latest PECL Releases:
In this new post to his blog Joshua Thijssen describes something that can help when processing large amounts of data (like, in his example, the text of a book) to search through the information and find if a certain piece of data is in the set - a bloom filter.Most of my co-workers never really heard of bloom filters, and I'm continuously need to explain what they are, what their purpose is and why it's a better solution than other ones. So let's do an introduction on bloom filters. [...] Bloom filters...
On the 7php.com site today they've posted their latest interview with a member of the PHP community - Chris Cornutt (disclaimer: yep, that's me), the author/editor behind PHPDeveloper.org.In this edition I talked with Chris Cornutt, the Hero Behind PHPdeveloper.org. If you are a PHP fan and you haven't heard about @phpdeveloper and @enygma, it's just like you are a manga fan without having ever heard of Goldorak (Grendizer in english) and Actarus (Duke Fleed in english)! If this is the case, you should...
Back in March, I announced that I was giving away three copies of The PHP Playbook to three lucky winners. Since I'm selecting winners on April 15th, this is your last week to register to win your copy! Since not everyone can win, I'm also excited to announce that PHP Architect, the publisher of my [...]
If you've been looking for the "quick and dirty" definition of all of the changes that come with the latest version of PHP 5.4, you should check out this new post from Sameer Borate. It has a quick rundown, code included, of these new features and changes.Although purists have always sneered upon PHP for being a "patched" language; the evolution of PHP over the years, with new features added in every version, has only increased its popularity. The latest 5.4 release has followed the trend with some major...
On PHPMaster.com today there's a new tutorial showing you how to test your application's interface with the database using "bulletproof" PHPUnit testing.There's already a great article here that discusses Test Driven Development, but did you know that you can also test the code that interacts with your database? Especially if your application is data intensive, subjecting your CRUD code to a battery of tests is good practice that helps ensure that your application is working correctly. In this article...
On PHPMaster.com today there's a new article with six things that they (well, Daniela Baker) thinks every independent PHP developer should know and have in their arsenal.PHP development is hot right now, but there are also lots of people in PHP development. If you want to make it as an independent PHP developer you've got to know more than just PHP. Here are six other essential skills you need to succeed as a PHP developer.Her list of six is made up of:
Knowing What You Don't...
Latest PEAR Releases:
Article originally from rooJSolutions blog