Great Job

12 views
Skip to first unread message

bgp

unread,
Oct 17, 2009, 10:02:13 AM10/17/09
to catnap-orm-discuss
Hello,

Good job on the ORM. I am currently developing for the iPhone with
Monotouch and am very interested in data persistence on the devices.
I have a great deal of experience on the BlackBerry and Win Mobile
platforms, so I have seen a lot of persistence api.

I like what you are doing with Catnap, but could you provide a start
from scratch example. I have been looking thru the source to try and
figure out how to setup and I still am having trouble on Monotouch. A
step by step simple example would go a long way to developing interest
in your product. I know the WiKi has example snipits, but how about a
step by step.

As I said, I would love to test your product on the iPhone/Monotouch
with a port of an existing application that would exercise the
features of Catnap.

Thanks and keep up the good work.

Tim Scott

unread,
Oct 17, 2009, 2:43:03 PM10/17/09
to catnap-or...@googlegroups.com
Bruce,

I'm glad you like it!

I might be able to find some time to create a sample. However, in the
meantime I suggest that you look over the IntegrationTests project. It
shows a good bit of the functionality. It contains a sample domain model
and migrations. And I have just modified it to use repositories that
inherit from Repository<T> instead of using the session directly.

You might start by understanding the method
behaves_like_integration_test.initialize_app. This is a good example of
what you might do at app startup.

A couple of other notes about the integration tests project.

You will notice that I have a singleton container that provides the
repository instances. This is how I have been doing it in my first
experimental IPhone app. I would much prefer to use a proper IoC container,
but I have not tackled that yet.

Also, you will notice that I start a unit of work at the beginning of each
test and dispose it at the end. For an IPhone app, I am not sure exactly
the best boundary for unit of work. In a web app, the request provides a
good boundary. What I have been doing is wrapping most every call in a unit
of work (using statement). I'm still wondering the best way to do it.

Thanks again, and keep in touch.

Tim

bgp

unread,
Oct 17, 2009, 4:55:29 PM10/17/09
to catnap-orm-discuss
Hi Tim,

Thanks for the suggestions, I should have been clearer, I have it
working and understand the code. I was just suggesting a from scratch
step by step so that people get a sense of how easy it can be to use
the api. After all, thats part of what ORMs are all about. I would
love to see your tool succeed. I would hate to see people not stick
with it because they had to dig around in the code to figure things
out. I know that sounds shallow, but you know how it goes. Nothing
gets my attention more than an api that plugs in and works with no
mess and no fuss.

I’m capable of understanding the code and working thru it, but not
everyone wants to know how the sausage is made. Maybe a Monotouch dll
download for people who want to just plug and play? I hope you don’t
take my suggestions as criticism I like what you have done and would
love your project to succeed ( for my own selfish reasons :) ).

You have done great work and I hope Catnap gets a following.

Bruce

On Oct 17, 2:43 pm, Tim Scott <tsc...@lunaversesoftware.com> wrote:
> Bruce,
>
> I'm glad you like it!
>
> I might be able to find some time to create a sample.  However, in the
> meantime I suggest that you look over the IntegrationTests project.  It
> shows a good bit of the functionality.  It contains a sample domain model
> and migrations.  And I have just modified it to use repositories that
> inherit from Repository<T> instead of using the session directly.
>
> You might start by understanding the method
> behaves_like_integration_test.initialize_app.  This is a good example of
> what you might do at app startup.
>
> A couple of other notes about the integration tests project.
>
> You will notice that I have a singleton container that provides the
> repository instances.  This is how I have been doing it in my first
> experimental IPhone app.  I would much prefer to use a proper IoC container,
> but I have not tackled that yet.
>
> Also, you will notice that I start a unit of work at the beginning of each
> test and dispose it at the end.  For an IPhone app, I am not sure exactly
> the best boundary for unit of work.  In a web app, the request provides a
> good boundary.  What I have been doing is wrapping most every call in a unit
> of work (using statement).  I'm still wondering the best way to do it.
>
> Thanks again, and keep in touch.
>
> Tim
>
> On 10/17/09 9:02 AM, "bgp" <bruce.parr...@omniware-inc.com> wrote:
>
>
>
>
>
> > Hello,
>
> > Good job on the ORM.  I am currently developing for the iPhone with
> > Monotouch and am very interested in data persistence on the devices.
> > I have a great deal of experience on the BlackBerry and Win Mobile
> > platforms, so I have seen a lot of persistence api.
>
> > I like what you are doing with Catnap, but could you provide a start
> > from scratch example.  I have been looking thru the source to try and
> > figure out how to setup and I still am having trouble on Monotouch.  A
> > step by step simple example would go a long way to developing interest
> > in your product. I know the WiKi has example snipits, but how about a
> > step by step.
>
> > As I said, I would love to test your product on the iPhone/Monotouch
> > with a port of an existing application that would exercise the
> > features of Catnap.
>
> > Thanks and keep up the good work.- Hide quoted text -
>
> - Show quoted text -

Tim Scott

unread,
Oct 17, 2009, 5:12:14 PM10/17/09
to catnap-orm-discuss
Gotcha. Yes, that's a great suggestion. I agree that it would help a
lot with adoption. I'll put that on my to do list. Of course, it'
open source, and I would welcome contributions. :)
Reply all
Reply to author
Forward
0 new messages