Archive for August, 2008
Saturday, August 30th, 2008
The Doctrine library comes with a feature called nested set, which makes saving trees in a database easy. However, it's quite easy to accidentally cause a lot of extra unneeded queries if not being careful.
Here are some pointers to keep in mind while working with the nested set, and some ...
Posted in Programming | 2 Comments »
Wednesday, August 27th, 2008
When testing code which uses the database, you would usually want to make sure the database stays pristine for each test - All tables should be empty, as any extra data could interfere with the tests.
You could probably write an extended Testcase class which automatically does this before each test ...
Posted in Programming | 11 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 | 1 Comment »
Friday, August 15th, 2008
While browsing around some old files on my computer, I came across some old files from 1998 (I think): An old text-game by some of my elementary school friends.
It reminded me of how I got started in programming. It was probably when I was 11 or 12 years old, when ...
Posted in general | 4 Comments »
Thursday, August 7th, 2008
It seems a lot of people are struggling with Zend_Form decorators. They want to know how to modify the markup, but they can't figure out how to do it with the bundled decorators or how to write their own.
Since I've done some decorator-stuff myself, I thought I'd share some tips ...
Posted in Programming | 13 Comments »
Monday, August 4th, 2008
Lately, I've been checking out PRADO, which is "a component-based and event-driven programming framework for developing Web applications in PHP 5".
What that actually means is that you can use components, such as a data grid or a button, and work with them based on events without having to think about ...
Posted in Programming | 7 Comments »
Friday, August 1st, 2008
Some frameworks like Django and PRADO have the concept of view inheritance, or a "master page" like in ASP.NET. Essentially it's a similar idea as Zend_Layout is in Zend Framework, but the difference is that you can define the master/parent view inside the view itself.
For example, in Django {% extends ...
Posted in Programming | 3 Comments »