|
|
if(IsAlreadyPlural) {forceSingular} Wednesday, November 7 2007
Most of what I did today took place in front of my computer. I made a bunch of little changes to my generic database editing system giving it more flexibility for dealing with wild and disorganized databases such as the one underlying X-Cart, a commercial shopping cart I'll be integrating with two different websites over the next several months. Part of the new code allows my system to authenticate an admin from data in any table. Another part inserts a bunch of new knowledge about English into my table-labeling code, allowing it to figure out whether a table name is plural or singular and to then use the correct plural and singular forms when providing options to add or remove rows. New functions include the likes of forceSingular, forcePlural, and IsAlreadyPlural. The code isn't perfect, but it's smart enough to know the singular form of xcart_sessions_data is xcart_sessions_datum.
For linking purposes this article's URL is: http://asecular.com/blog.php?071107 feedback previous | next |