PHPNews

Should you reinvent the wheel? Programming and cakes

The “Not invented here” mindset and it’s counterpart “Don’t reinvent the wheel” mindsets are probably causing thousands of discussions every day. Almost every week you see a question pop up in programming subreddits where people ask whether they should use a framework or a library for something or roll out their own …

Continue reading »

Written by Dracony - - Aggregated on Tuesday July 19, 2016


Service Behavior Immutability

One of the things I always mention when I rant about misusing events is behavior mutation. Since listeners can be attached and sometimes even detached dynamically during application runtime it frequently results in event hell and severely impedes debugging. After some thought I believe same reasoning can be applied to …

Continue reading »

Written by Dracony - - Aggregated on Friday May 15, 2015


Stop using PHPMyAdmin

It makes me cringe every time I see developers use PHPMyAdmin to administer their databases, even more if its a local database. This is a relic from the old times when people used it with their remote servers since desktop applications did not provide remote access functionality yet. Here are just a few things you …

Continue reading »

Written by Dracony - - Aggregated on Tuesday April 21, 2015


Replacing controllers with middleware

Middleware is now a very popular topic in the PHP community, here are some of my thougts on the subject. First, let’s take a quick look at what middleware is ( if you already know about middleware you can skip this part): Short intro The idea behind it is “wrapping” your application logic with additional request …

Continue reading »

Written by Dracony - - Aggregated on Monday March 30, 2015


You owe yourself that README file

Just a few days ago I have finally finished the PHPixie ORM library and wanted to release it immediately. I planned on writing only a small blog post outlining its basic usage, then switching to finishing off other PHPixie 3 components and only after that returning to writing detailed ORM docs. Then I remembered all …

Continue reading »

Written by Dracony - - Aggregated on Friday February 27, 2015


Impostor Software Architects

From all the different kinds of developers I met over the years there is one that I really hate. The impostor architect kind. They are an absolute plague to any developer environment and the community at large. You can easily spot one by this quote: I don’t like working with algorithms, optimizing the database …

Continue reading »

Written by Dracony - - Aggregated on Wednesday February 25, 2015


Unit Tests are not enough

For the last half a year I have been refactoring the next version of PHPixie ORM and writing unit tests for it. My goal is to bring it to 100% coverage ( right now it’s at 97% ). But as others have already stated, 100% coverage doesn’t really mean there are no bugs in the code, all it means is that the components are …

Continue reading »

Written by Dracony - - Aggregated on Sunday February 22, 2015


Stop using PHP-FPM to argue using Nginx vs Apache

I often see “Apache vs Nginx” discussions appearing on reddit and some of the arguments people make are plain ridiculous. So now I want to address one that makes my eyes roll the post: PHP-FPM. When Nginx first came into PHP world its popularity was mostly fueled by numerous benchmarks showcasing its speed vs a LAMP …

Continue reading »

Written by Dracony - - Aggregated on Friday January 2, 2015