Why singletons are excellent

2011 Rugsėjo 2 d.

This will be kind of a response to this blog post: http://blogs.msdn.com/b/scottdensmore/archive/2004/05/25/140827.aspx

Singletons are an excellent solution whenever system is non-scalable or a class performs a role of shepherd/manager. The former group can be exampled with a NIC in an embedded system. Classes belonging to latter group are by design instantiated once (if the design is proper).

Further comes explanation where In My Humble Opinion the author of the original post in MSDN is incorrect. I hope that between black and white readers might find their own whiter shade of pale.
Toliau »

Zend and multiple applications

2008 Gruodžio 19 d.

Once I started developing my site using Zend framework. It went well untill i reached the phase, where I wanted to have multiple applications under one domain. I.e. to be able to access domain.tld/application1/controller/action and domain.tld/application2/controller/action without having to create Aliases VirtualHosts or anything like this. I googled around for a day or two and found nothing inspiring. Had to invent it the hard way. That’s the reason why I’m writing this in english :)

Toliau »