Updates on AWStats
The AWStats project is coming along really well. :-) I've been makings lots of progress--getting closer and closer to having everything templatized.
One of the nice things about refactoring is that development tends to move faster and faster as you go along. A big part of refactoring is setting up convenient ways of doing things that you need to do frequently. So, as you do the same thing over and over, your refactoring just made your life easier and easier.
For example, in the original AWStats, each new chart was a huge mass of code. Now, adding new charts only involves setting a few variables. It's also much easier to read and understand the code.
My little victories are in how much smaller the main file gets. :-D Because of the original architecture of the program, it's hard to move things outside of the main file. But even so, the file is getting smaller. Even though my lines are nearly always 80 characters or less, and many of the original lines are longer than 100 or 160 characters!
Once everything is templatized, then I can go on to other things, like sprucing up the user interface or maybe refactoring the log-analysis code (though I may just leave that untouched for a while).
-Max
One of the nice things about refactoring is that development tends to move faster and faster as you go along. A big part of refactoring is setting up convenient ways of doing things that you need to do frequently. So, as you do the same thing over and over, your refactoring just made your life easier and easier.
For example, in the original AWStats, each new chart was a huge mass of code. Now, adding new charts only involves setting a few variables. It's also much easier to read and understand the code.
My little victories are in how much smaller the main file gets. :-D Because of the original architecture of the program, it's hard to move things outside of the main file. But even so, the file is getting smaller. Even though my lines are nearly always 80 characters or less, and many of the original lines are longer than 100 or 160 characters!
Once everything is templatized, then I can go on to other things, like sprucing up the user interface or maybe refactoring the log-analysis code (though I may just leave that untouched for a while).
-Max
