Well, Snaps! Gallery is getting updated, as you all know. But what you problably didn’t know is that it’s basically getting a complete overhaul.
Since initially writing it, I’ve learned a lot more about good coding practice and code libraries. For instance, I didn’t know how really terrible the DB class from PEAR was until I saw the benchmarks comparing it to straight SQL statements and other code libraries. So, with that in mind, I’ve switched over to the ADOdb library for database access. What this gains is: a much faster library, which results in a faster Snaps!, and better portability between database servers, which was one of my main goals in the original versions of Snaps!, but which DB doesn’t enforce very well. ADOdb’s design, by default, forces you to re-examine your queries and write them in a manner to fit ADOdb, rather than the database server you are using. ADOdb takes care of making it work with the various servers.
Along with that switch, I’m also re-examining all my code to try and remove as much extraneous and repetitive stuff as I can, in an effort to slim down and speed up Snaps! (not that it was ever slow, but…). And of course, I’m adding several features, two of which are complete and ready to unveil!
(more…)