Freitag, 23. März 2012

Using vsfstream (with symfony2)

I read about vsfstream when skipping through the phpunit docs. Back then, I decided I don't need a virtual file system. Some time later, I had to test classes which read and write files and found myself creating and deleting temporary folders, messing around with nasty errors (like my favourite one where for some reasons tests fail when I don't use @runTestsInSeparateProcesses).

Dienstag, 6. März 2012

Clean Code #3: Beware optimization

This time I want to talk about optimization and what Clean Code Developers has to say about it. It relates to the KISS principle I talked about last time!

There are two rules which apply when thinking about optimization:
  1. Do not optimize
  2. No really, do not optimize