Friday, August 28th, 2009
You probably know what abstraction means - making a complex process simpler - but do you know what makes an abstraction good, and why it's important?
If you are writing code for a project that lives a bit longer, or has multiple developers working on it, having a good abstraction matters. ...
Posted in Programming | 3 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 »
Monday, February 16th, 2009
You may have heard about the reflection feature in PHP. Simply put, it's a way to get a list of methods in a class, a methods parameters, or other "internal" things like that. But how is this actually useful for any common task in application development?
Posted in Programming | 9 Comments »
Monday, October 20th, 2008
I've been reworking the ModelForm class for ZF a bit. Earlier this year, I discussed porting it to use Zend_Db_Table with Matthew Weier O'Phinney, for using it with Zend Framework. I initially had done some checking on Zend_Db_Table, and some small code changes to modify the class to use it ...
Posted in Programming | 11 Comments »
Thursday, September 25th, 2008
At The Group, we're developing some web applications that needed to use the same user database. The applications were originally being developed with separate login for each, but I decided it would be better to share the login code across them.
I investigated some ways to achieve sharing a single login ...
Posted in Programming | 1 Comment »
Monday, September 1st, 2008
Two weeks ago, I mentioned an easy way to create easily changeable ways for authenticating users. Continuing on that, I've been implementing ways to control user roles and user access for specific pages and modules in my CMS. Naturally, those features too are designed to be easily modifiable.
An ACL factory
A ...
Posted in Programming | 2 Comments »
Thursday, August 21st, 2008
I've mentioned a CMS I'm working on in a couple of occaions. Lately, I've been tinkering with the user authentication part of it, and stumbled upon a small obstacle: How to make it easy to change authentication methods?
Most of the time you probably would like to use a database to ...
Posted in Programming | 2 Comments »