PHPNews

Stop using PHP-FPM to argue using Nginx vs Apache

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

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 setup. You see Nginx didn’t have anything like Apaches’ mod_php and required …

Continue reading »


Dev Stories #1: Crazy Job Interviews

Written by Dracony - Published on Dracony
Aggregated on Thursday January 22, 2015 - Permalink

This is going to be the first episode of me telling some interesting stories from my development career.

Continue reading »


Unit Tests are not enough

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

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 behaving in the way you intended them to. One huge problem with unit testing …

Continue reading »


Impostor Software Architects

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

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 and writing regular expressions. I love designing application architectures …

Continue reading »


You owe yourself that README file

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

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 the interesting projects I found on Github but have never used because they …

Continue reading »


Replacing controllers with middleware

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

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 processing logic, and then chaining as much of those wrappers as you like. So …

Continue reading »