Tuesday, October 27, 2015

PHP array de-duplication trick that'll save you lots of CPU (* YMMV)

Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live. ― John Woods Today, I discovered this curious gem in legacy code: <?php // ✂ ...snip... wall of code that creates array $ids $ids = array_flip($ids); $ids = array_flip($ids); // ✂...

Wednesday, October 14, 2015

404

I'm terribly sorry, but I can't find the page you have requested. Believe me, I looked for it. Really! You can't even imagine the millions of calculations I had to go thru to look in all the places my owner could have left what you asked for. But I couldn't find it. It's not there! :-( No,...

Tuesday, October 13, 2015

On collaboration.

If you want to walk fast, walk alone. If you want to walk far, walk together. -- African prover...