Archive for May, 2009
Friday, May 22nd, 2009
A relatively common task in today's Web 2.0 apps is passing values from a server-side script (or through a link) to JavaScript, affecting the client-side script execution.
Not surprisingly, there are a few ways to do that. Let's look at three and their pros and cons:
Embedding scripts into templates
Passing variables ...
Posted in Programming | 13 Comments »
Wednesday, May 20th, 2009
If your application is well thought out, you would not want to save any data that isn't valid. So what do you do, when you need different validation schemes, say for passwords, depending on some special case?
For example: Your user passwords need to be at least 8 characters long and ...
Posted in Programming | 6 Comments »
Saturday, May 16th, 2009
The best PHP ORM libraries, Doctrine and Propel. Last year I compared them to each other, and now it's time to get a fresh look at how they have advanced in about a year - Is Doctrine still the better of the two?
This time, I'll also look at the features ...
Posted in Programming | 32 Comments »
Thursday, May 7th, 2009
Zend_Forms, models, validation and how they all work together is a tricky topic. There are many opinions and many ways to do it.
This time I'll show you what I think could be the answer to validating forms without having to duplicate validation code both in a model class and ...
Posted in Programming | 9 Comments »
Monday, May 4th, 2009
There was an interesting question recently on the Code Justin blog: Did you go to college for programming?, and how going/not affected you?
I already left a comment on it, but I want to put some more thoughts about that to this post.
My main feeling about this is that the answer ...
Posted in general | 14 Comments »