PHP error handling

You can learn new stuff each day, for example we have just recently turned php errors into exceptions. It is so good, that I decided even to write about it here. Currently we do this only on development environment for safety, because the page code is quite old. Anyways, every php development should do this to get rid of php's annoying error reporting and hopefully make a better product. So enough talking, here is the code:

https://gist.github.com/3790196

more ...

PHP/Code Editors

In general I need two main features from the code editor. (I will not talk about obvious ones like unicode and unix/win/osx line ending support, fast, good UI, etc) And those are: sftp browser and just a good editor.

Nobody seems to ever get it right.

TextMate seems to be fast, but lacks sftp support. Same for sublime (which is also just weird editor). Same for Kod. Same for lots of them.

Then there are editors with bunch of features, but are so terribly slow or lacks design so much or just can't seem to get some of the features right. For example eclipse and all its crazy movement. Or komodo with its seems-to-be-unfinished sftp panel.

Then there are few those that shine out like Espresso and Coda. They are not bad at all, but for example Espresso is kind of slow on my computer and I can't get used to its sftp browser. On the other hand Coda is nicely made and is full of features, but I don't really use them all so from my point …

more ...