Archive for May, 2008

Bindable now Containable Behavior in CakePHP Core

Behold! One of the coolest behaviors "Bindable" is now included in CakePHP's core. Many thanks to Mariano and Felix for their efforts and including this in CakePHP's core as "Containable" behavior. I have found this behavior to be the most useful by far. I remember the nightmares I used to forgo in controlling model bindings in CakePHP 1.1, specially when coding DustJacketReview. We had to pull up so much data for a single page that we were forced to write custom queries to make it as light weight as possible. But ever since I shifted to CakePHP 1.2, things got a lot better. I have to admit that I had to find some workarounds for some situations when working with CakePHP 1.1 and specially for multiple Ajax paging within a single page. But now these nightmares are over!

Although one thing I am still concerned about is the built in pagination. It's brilliant no doubt but still I can't control the model bindings when paginating any model. I observed the code and found out that it instantiates a new instance of the model when paginating it, so even if I set the bindings to persistent, it has no effect as they are not persistent with the new object. Anyhow, a post on this matter is in the pipeline, I still need some more information to actually formally voice the issue on cake's trac. Currently I have a workaround that's working really good for me. Let's just say that I wanted more than "paginate" function to be specified within a model, and I got it ;)

Striving to become a better code jockey

Like most people, I also think up of ways to improve my self constantly. I decided to start observing my self to get to know what exactly are the conditions in which I perform better and what can add to my inspiration and motivation. Most code jockeys I know of course do not indulge in sports, but benchmarking your own self really does give you that ecstasy of an athlete :)
Read more

A Very Naughty Kitten

Held but AnxiousGod! this guy is really anxious

Ah ... Finally! I get the pics for our latest "addition" in the family. This guy is really really NAUGHTY. Heck!, my bro had to HOLD him TIGHT for me to take his pics. He has a very wicked look on his face too, and he aint afraid of anything either ... not good if you'd ask me when it comes to disciplining the creature. Also, as usual, we couldn't agree on a name so we had to again go for a weird ass name, just like as in the case of Guggoo Cat. So he's "called" TINKOO by every one. May be the word was unconsciously picked by everyone as it adds a dash of "wicked" with "innocence" or "cuteness" etc.