Overview for 'nikic'
Written by Nikita Popov
/ Original link
on Feb. 18, 2014
Some time ago I stumbled on the Pux routing library, which claims to implement a request router that is many orders of magnitude faster than the existing solutions. In order to accomplish this, the library makes use of a PHP extension written in C. However, after a cursory look at the code I had th…
Written by Nikita Popov
/ Original link
on Feb. 17, 2014
Some time ago I stumbled on the Pux routing library, which claims to implement a request router that is many orders of magnitude faster than the existing solutions. In order to accomplish this, the library makes use of a PHP extension written in C. However, after a cursory look at the code I had th…
Written by Nikita Popov
/ Original link
on Jan. 10, 2014
Recently igorw wrote a blog post on how to traverse nested array structures with potentially non-existing keys without throwing notices. The current “idiomatic” way to do something like this, is to use isset() together with a ternary operator: $age = (isset($data['people'][0]['age'])) ? $data['peop…
Written by Nikita Popov
/ Original link
on Jan. 9, 2014
Recently igorw wrote a blog post on how to traverse nested array structures with potentially non-existing keys without throwing notices. The current “idiomatic” way to do something like this, is to use isset() together with a ternary operator: $age = (isset($data['people'][0]['age'])) ? $data['peop…
Written by Nikita Popov
/ Original link
on Dec. 21, 2012
One of the large new features in PHP 5.5 will be support for generators and coroutines. Generators are already sufficiently covered by the documentation and various other blog posts (like this one or this one. Coroutines on the other hand have received relatively little attention. The reason is tha…
Written by Nikita Popov
/ Original link
on Aug. 9, 2012
There is this one thing that I noticed recently and that concerns me: PHP devs don’t use functions. Now, that was overly general, so let me clarify: PHP developers who have reached a certain degree of sophistication basically stop using plain functions - instead everything goes all classes and meth…