[ANN]: Tiny Dev Tools for SimplePersistence and STON

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN]: Tiny Dev Tools for SimplePersistence and STON

Sean P. DeNigris
Administrator
I often find myself writing the same boilerplate over and over for my basic persistence needs. My usual pattern is to serialize/materialize a class-side instance variable with accessors of the same name.

Some time ago, I added the following to SimplePersistence (IIRC it gets loaded by default):
  aClass persist: #fieldName
which adds the necessary code automatically.

Since I've been playing with STON a bit, I created the same in STON-Tools and uploaded to http://smalltalkhub.com/#!/~SeanDeNigris/SeansOutbox. There is even a test ;)

Enjoy...
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: Tiny Dev Tools for SimplePersistence and STON

Sean P. DeNigris
Administrator
Sean P. DeNigris wrote
I created the same in STON-Tools
Of course I just realized that they clobber each other ha ha, so now its #simplePersist: and #stonPersist:
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: Tiny Dev Tools for SimplePersistence and STON

stepharo
In reply to this post by Sean P. DeNigris
can you show an example?

Stef


Le 2/5/15 04:52, Sean P. DeNigris a écrit :

> I often find myself writing the same boilerplate over and over for my basic
> persistence needs. My usual pattern is to serialize/materialize a class-side
> instance variable with accessors of the same name.
>
> Some time ago, I added the following to SimplePersistence (IIRC it gets
> loaded by default):
>    aClass persist: #fieldName
> which adds the necessary code automatically.
>
> Since I've been playing with STON a bit, I created the same in STON-Tools
> and uploaded to http://smalltalkhub.com/#!/~SeanDeNigris/SeansOutbox. There
> is even a test ;)
>
> Enjoy...
>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/ANN-Tiny-Dev-Tools-for-SimplePersistence-and-STON-tp4823669.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [ANN]: Tiny Dev Tools for SimplePersistence and STON

Sean P. DeNigris
Administrator
stepharo wrote
can you show an example?
Sure... https://youtu.be/VyuuIthp93k
Cheers,
Sean