Everyone has a take on what is good/bad
Tuesday, September 4th, 2007Over on Developer Cast they have a recent post about Good and Bad PHP code. It may just be me - but it seems everyone has a theory on this subject - and they all say the same thing:
- structure
- consistency
- portability
- secure
This in reality should be what surrounds every language so I don’t see why PHP is so special - unless you think about how many “non” programmers use it - and then add to that all the clueless developers building web apps. I know this sounds harsh - and I by no means write the world’s best code - but again I don’t really tout to either. My English is horrid enough let alone my dev skills - I can say one thing that I do have that seems to trump the bad is experience. I know what works and doesn’t by doing - and if the one thing I’ve learned is not to release something till I’ve pounded it and then given it away to be pounded on…
That tackles the security - but what about structure - heh that’s a joke considering that PHP isn’t really consistent itself. In reality - the 3 items listed could be just broken into structure and security. Since structure means the developer was consistent and generally has some sense of portability. In reality PHP is portable in and of itself - granted it’s definitely no virtual machine (and thank god). But simple steps can be take to abstract the code and if the programmer understands structure then portability should be part of this…
All this to say that in my opinion any breakdown in these areas inevitability leave the project doomed.