Archive for March, 2007

Singleton Design Pattern

Posted on March 7th, 2007 by Paul Lefebvre

The Singleton design pattern is probably the simplest of all the common design patterns. Its purpose is also simple: to ensure that only once instance of a class is ever instantiated.
You might be thinking that you could just use a module for this purpose. A module is close to a singleton, but since it is […]

Databases 103: Creating Tables and Data

Posted on March 1st, 2007 by Paul Lefebvre

Let’s take the entities we created last time and turn them into tables. Once we do this we’ll create these tables in a REALbasic database using SQL.
Mapping entities to tables is fairly straightforward. Typically each entity becomes a table and each attribute becomes a column. You may have to do a few adjustments of table […]