I blocked comments to stop them spam flood. I’ll reactivate them as soon as I get some time to setup captcha.
Some time ago I was digging through my very old files, back from Windows 9x days. One of the interesting things was a note I wrote to myself, explaining how to setup a RAM disk. While glancing through it an idea struck me – “can I use it for Tomcat and other Java stuff?”.
It turns out, I can. If you don’t feel like reading the whole story, here’s the bottom line: use RAM disk for everything Java – it’s WAY faster than HDD. For more details, read on. Read more…
Even though closures in PHP are not quite as easy to use as in other languages, we can still employ them for something useful.
Read more…
In almost all languages, chaining method calls on nested objects is either ugly or unsafe. Groovy found an elegant way around it with ?. operator. PHP didn’t. This article shows what can we do about it. Read more…
PHP 5.3, along with many other features, introduced closures. So now we can finally do all the cool stuff that Ruby / Groovy / Scala / any_modern_language guys can do, right? Well, we can, but we probably won’t… Here’s why. Read more…
One of the things PHP does really well is templates. Actually, every PHP file is a template. This is rather unique feature, considering other platforms, like Java, .NET or Ruby. With PHP as a platform, the language itself is usually good enough for a template solution.
There is, however, one feature (provided by some template engines), that makes managing complex sites easier. Read more…