Algorithm of the Week: Interpolation Search
I wrote about binary search in my previous post, which is indeed one very fast searching algorithm, but in some cases we can achieve even faster results....
View ArticleSublime Text 2 Snippet for PHP getter and setter generation
I've been playing with Sublime Text 2 recently and have quite enjoyed how quiet my ageing laptop is when the fans aren't running due to a Java-based IDE. As...
View ArticlePractical PHP Refactoring: Push Down Method
In the scenario of today, some logic is in a superclass of a hierarchy, modelled as a method. However, this method is only useful for one of the subclasses in...
View ArticleDZone's Top 7 PHP Articles of 2011
This week, DZone has gathered together its top articles in every major topical area. These PHP articles were chosen based popularity and quality of...
View ArticleGetting comfy with PhpStorm - one of the best IDEs so far!
Beside the frequently asked question “Which Framework is best?” this one is the top in category – “Which one is the best IDE”. People asks this...
View ArticlePHP Performance: Bitwise Division
Recently I wrote about binary search and then I said that in some languages, like PHP, bitwise division by two is not faster than the typical “/”...
View ArticleBlog Series: Creating Your Own Framework on Top of Symfony2
Fabien Potencier is Symfony2's lead developer, and he knows his PHP. Symfony2 provides its own full-stack web framework, and Fabien knows how it works -- so if...
View ArticleAlgorithm of the Week: Data Compression with Run-length Encoding
No matter how fast today’s computers and networks are, the users will constantly need faster and faster services. To reduce the volume of the transferred...
View ArticlePractical PHP Refactoring: Extract Subclass
So far, we have only treated the movement of object members (fields and methods, and constructor as special methods); the assumption we made was that these...
View ArticleOpen/Closed Principle on real world code
This article shows an example of how the application of the Open/Closed Principle improved the design of a real project, the open source library...
View ArticlePractical PHP Refactoring: Extract Superclass
In the scenario of today, there are two or more unrelated classes with similar members, like common methods or fields. While these classes may be already...
View ArticlePractical PHP Refactoring: Extract Interface
A concrete class still defines an implicit interface by itself, as the set of its public methods. When the called interface is a subset of this, or it is...
View ArticlePHPUnit_Selenium
With the 1.2 release, PHPUnit_Selenium supports (basically) for the first time the Selenium 2 WebDriver API. While PHPUnit_Selenium already worked with...
View ArticlePractical PHP Refactoring: Collapse Hierarchy
In the scenario of today, a subclass and superclass are not very different: the evolution of the code has brought them to this situation. Behavior has been...
View ArticleWriting clean code in PHP 5.4
After seven release candidates, it's clear PHP 5.4 is coming: as always the improvements from the previous minor version are many. At the platform level, new...
View Article
More Pages to Explore .....