An insider's view into the dark world of marketing and how to design code with the right side of your brain.
Refactoring
I've been looking into what paths to take to refactor my communityCMS from procedural to OOP. I'm setting up the code base to be below the web root as well as the uploads folder (having the file uploads below the web root plugs a common security hole). This comes from reading the PHP In Action book. I'm finding that, while there are some new and strange (to me) concepts, OOP is quite doable and very interesting. The more I read, the more I want to tinker and build!
I'm building a basic DB connection class that will enable you to use the same class with different Database engines (MySQL, Postgres, MSSQL). Of course, this is standard on alot of modern systems, but it's new in my system, which has mysql calls hard coded in.
Th uploads folder being moved to below the web root will mean some changes to the current upload function (thank God I thought to make it a centrally located function!), but I thought it was time to update the WYSIWYG editor. I'm moving from Innova Studio (http://www.innovastudio.com/editor.asp) to tinyMCE. The downside is that, while the editor is free, the uploaded media center isn't. Seeing as I'm a cheap bastard and I love to build apps, I'm building a media manager to plug into it.
I'm finding that code writing is alot like home remodeling- when you think it's going to take a couple of hours, count on 3 weeks!