Shop Code
I spent a fair amount of time today updating some code I have written to provide shop-front functionality. Unfortunately, when I wrote it I obviously wasn't thinking clearly and although much of it is well Object Oriented, the administration section on the backend was a monolithic PHP script that was just a maintainence nightmare. So today, I've been re-working the backend to make it more flexible for both adding new functions (which I'm going to need to do at some point), as well as being much easier to maintain. Code maintainence is something alot of people often don't think about when writing code, but it's incredibly important. It's for that reason that I've made sure I'm commented the php classes, and the files to ensure that next time I need to go into the code and do a bit of hacking, I know what the hell is going on!
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home