Archive for January, 2009
Saturday, January 31st, 2009
As a part of my work at The Group, I've been developing a suite of applications for them. As most web applications do, these applications have to store their user data somewhere - in a database.
As you may guess, the user's password has been stored as a hash. As a ...
Posted in Programming | 1 Comment »
Wednesday, January 28th, 2009
I've been asked things like "how do you find time to blog?" and "how do you find things to blog about?" a few times lately...
Posted in general | 1 Comment »
Monday, January 26th, 2009
First an announcement: During 2008, CodeUtopia had about 120 000 visitors! I think that's amazing, and I want to thank everyone who has been reading the blog. I'm going to try and keep posting interesting things for you to read this year too. :D
Now, to the post: Back in 2003 ...
Posted in Programming | 1 Comment »
Saturday, January 24th, 2009
If you have written a model layer which separates database access from the rest of the code, you probably know that you may end up with lots of methods like findByName, findByTitle or such, for cases where you want to find records based on specific criterias.
You could also use arrays, ...
Posted in Programming | 6 Comments »
Wednesday, January 21st, 2009
Here are some PHP mistakes I've encountered, which have often been very difficult to track down...
Posted in Programming | 21 Comments »
Monday, January 19th, 2009
Probably all of us have used template engines in one form or another. Some might even like template engines for whatever reason, but let's think about it for a moment: are they actually making our lives easier?
Most template engines simply wrap PHP (or some other language's) syntax into their own ...
Posted in Programming | 37 Comments »
Saturday, January 17th, 2009
I decided to try profiling my quiz application to see if I could speed it up. Not surprisingly, biggest performance penalties came from loading classes and Doctrine's ORM magic.
Here are some findings on how to improve performance.
Posted in Programming | 11 Comments »
Wednesday, January 14th, 2009
Here's a quick tip on how to deal with configuration files when working with Subversion. This probably applies to other VCS's too like CVS or Git.
You probably have noticed this: you have a configuration file or such, and you need to keep it in SVN, but committing it would be ...
Posted in Programming | 3 Comments »
Monday, January 12th, 2009
Here's another reason to like NetBeans: the jVi plugin.
It changes the NetBeans code editor to Vim, which is in my opinion much more powerful text editor than the standard one in NB. What makes jVi even better is that you actually get all the code-assist and other features present in ...
Posted in general | 1 Comment »
Wednesday, January 7th, 2009
Matthew Weier O'Phinney wrote about using Zend_Form with models. His approach puts a form inside a model, which then uses the form to validate itself.
While this idea is not bad, I find it being upside down - I think the form should use the model to validate itself, not the ...
Posted in Programming | 13 Comments »