Confusing variable names Did you ever meet that awful situation, where you try to understand why the SQL query fails, until you realize that $res and $req are simply too confusing ? There are confusing variable names, notably those that are one letter close from each other. Problems ranges from $data and $date in the same […]
When testing the exakat static analysis engine, we need to run it on real code : even better, use the largest PHP code base available. Open Source projects are a real blessing there, since they come in different shapes and stripes. Some projects dates back from PHP 3 and evolved until now, some are directly […]
Find private properties in my PHP It is always good to use the lowest visibility possible for a class member, and only relax the constraint when it is really needed. This is probably a old adage, shared with other programming languages, and one that I’m trying to apply more and more. Public properties will act as […]
PHP 7 Static analysis tools With PHP 7 officially live, it it time to review code and get it ready for migration. It is now time to think about migrating code to the new version, taking advantage of new features et reduced server load. This means reviewing all the code : it may be too much […]
The Paris Open Source Summit, the premier European event centered on the Free & Open Source sector, is the result of the merger of two iconic Open Source events: Linux Solutions and the Open World Forum. Paris Open Source Summit attends the 18th and the 19th november 2015 at The Docks of Paris. The event strives […]
PHP Worl 2015 brings together the entire world of PHP into one location together. The idea is to bring everyone together to learn from each other and make the greater PHP community stronger for it. Damien Seguy, CTO of Exakat, will present the “Error messages in PHP 7” session based on our […]
PHP 7 is probably the ‘the easiest upgrade yet‘. After having checked that the old PHP 5.x is lintable with PHP 7, the next challenge is to read the ‘ backward incompatible changes‘ and see if it applies to the legacy code. The list is not long, and a quick text search will lead us […]
Heredoc PHP Heredoc PHP syntax is a way to write large bloc of text inside PHP, without the classic single quote, double quotes delimiters. It relies on <<< and a token that will also mark the end of the string. <?php $string = <<<STRING $x elephpants STRING ; ?> Heredoc has also the Nowdoc alternative, that […]
Exakat is proud to be a part of PHP Barcelona Conference 2015. PHP Barcelona is the premium conference of the PHP community in South Europe. Damien Seguy will present our gremlin experience in using graph approach to build a PHP abstract syntax tree. Join Damien the 31th at 18:00 in the main room for the […]
Before coding, we all want to produce clean, smart and efficient code. During coding, we keep the eye on the target, and when we’re done, the result is usually not what we expected. There is always room for improvement. Improvement may come in various flavors: corner cutting, PHP specific gotcha, migration or even old habits that […]