Skip navigation.
 
mlRe: Did I reinvent the wheel?
FROM : Jens Alfke
DATE : Fri May 09 21:42:41 2008

On 9 May '08, at 11:10 AM, Western Botanicals wrote:

> I would like your opinions about the following framework.
> http://www.justingiboney.com/code
>
> Does this framework already exist in cocoa (did I reinvent the wheel)?


It looks like you're doing the same kind of thing as NeXT's EOF 
(Enterprise Object Framework), which is long gone but much of which 
resurfaced in CoreData.

There are a few existing frameworks that do this sort of thing but use 
sqlite to manage local database files. One thing you might consider is 
taking one of those and replacing the parts that use the sqlite3 API 
to talk to your database API instead. I've used Tito Ciuro's QuickLite 
<http://www.webbotech.com/> in the past, and it's pretty good.

> Is this a framework that is used (or likely to be used) in the real 
> world?


In certain types of apps, yes :) I just don't think many people are 
writing these types of apps in Cocoa. This type of enterprise software 
usually seems to be done for Windows, or in Java or as a web service.

Those classes are a start, but they leave all the hard parts as 
abstract methods to be filled in, so I don't think they'd be useful on 
their own to anyone else. Once you implement and debug the whole thing 
it'd be very useful, but that ends up being an object-relational 
mapping framework; I've done that (in C++) and it's really damn hard. 
It would probably be much, much easier to adapt an existing sqlite 
framework like QuickLite instead.

—Jens

PS: I didn't look in detail at all your classes, but I did notice that 
the UUID methods in BusinessObject have leaks.

Related mailsAuthorDate
mlDid I reinvent the wheel? Western Botanicals May 9, 20:10
mlRe: Did I reinvent the wheel? Jens Alfke May 9, 21:42
mlRe: Did I reinvent the wheel? Sherm Pendley May 9, 21:58
mlRe: Did I reinvent the wheel? Western Botanicals May 9, 22:34
mlRe: Did I reinvent the wheel? Stéphane Sudre May 10, 00:14
mlCocoa coding style (was Re: Did I reinvent the wheel?) Chris Hanson May 10, 04:41
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) I. Savant May 10, 05:25
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Michael Watson May 10, 05:32
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Andrew Merenbach May 10, 05:47
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Michael Watson May 10, 06:49
mlRe: Did I reinvent the wheel? Kyle Sluder May 10, 07:27
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Chris Hanson May 10, 07:43
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Clark Cox May 10, 09:30
mlRe: Did I reinvent the wheel? Uli Kusterer May 10, 11:19
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Jens Alfke May 10, 20:40
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Chris Hanson May 11, 03:53
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Jim Correia May 11, 04:14
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Western Botanicals May 11, 04:29
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Michael Ash May 11, 05:12
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Adam R. Maxwell May 11, 05:42
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Ilan Volow May 11, 06:19
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Jens Alfke May 11, 06:41
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Jens Alfke May 11, 06:47
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Ilan Volow May 11, 07:19
mlRe: Cocoa coding style (was Re: Did I reinvent the wheel?) Scott Ribe May 14, 02:56
mlRe: Did I reinvent the wheel? Colin Cornaby Jul 21, 22:12