Title: Working with PHP, six months later
Slug: working-with-php-six-months-later
Date: 2009-09-22 15:38:00
Author: Kartones
Lang: en
Tags: Development, PHP
Description: Six months after transitioning to PHP, the challenges and rewards of working with this language.

 <p>Now that I'm back from a small vacations, time to get back to blogging too!</p>  <p>A bit more than six months ago, <a href="https://blog.kartones.net/post/programming-languages-are-tools">I changed once again where I work</a>, but this time it was not only a new company, but a new world, with PHP as the flagship. Six months later, I'm not only still alive, but I have learned a lot more than just a new programming language.</p>  <p>Things like the subtle (but vital) difference that supposes working with a fully scripted language (everything ends when the HTTP request ends) from a compiled, object oriented and instanced language (memory pool, state, garbage collection,...). </p>  <p>Things like why PHP has the horrible fame among all object oriented developers, and yes, the language needs a serious internal flamethrower purge that gets rid of all backwards compatibility with un-scoped, function-like development, but as with human actions, not everything is bad, beautiful things can be created too: PHP can implement a lot of design patterns, PHP 5 has object orientation (not perfect, but enough to properly code), PHPUnit allows for some unit testing, and Sellenium to do even flow and UI testing.</p>  <p>"Think big" they say; yes, think big, as big as if a single "SELECT COUNT(*) FROM xxxx" could bring down your entire site if not properly <a href="https://blog.kartones.net/post/five-basic-concepts-of-scalability">scaled</a>.</p>  <p>But I've not only adquired knowledge on a new language. I have now a broader vision of things (I think ;). </p>  <p>I now know that many of those apparent "linux trolls" are not so <a href="https://blog.kartones.net/post/your-worst-enemy-ignorance">but just ignorant</a> of current state of "the Windows ecosystem", that some Mac users are real fanatics, but others know exactly the correct state of <strike>monopolism</strike> things and perfectly talk about Apple's flaws, that even Linux machines give kernel panics, that Linux Terminals/shells have an incredible hidden power that now I only wish I had in MS-DOS or Windows Command Prompts...</p>  <p>I can now switch from 8 daily hours of PHP coding to one or two related to .NET/C# without problems, and I'm happy to start to become some kind of hybrid coding creature. I'm even starting to care a bit about "presentation" of stuff (at least to try to not do dirty CSS things), thanks to the fantastic designers I work with.</p>
