Re: [Pharo-users] Storing test data in methods

2013-08-02 Thread Norbert Hartl
Am 01.08.2013 um 15:33 schrieb Henrik Johansen : > > On Jul 23, 2013, at 5:33 , Norbert Hartl wrote: > >> Max, >> >> Am 23.07.2013 um 17:27 schrieb Max Leske : >> >>> >>> On 23.07.2013, at 15:32, Mariano Martinez Peck >>> wrote: >>> On Tue, Jul 23, 2013 at 9:48 AM

Re: [Pharo-users] Storing test data in methods

2013-08-01 Thread Henrik Johansen
On Jul 23, 2013, at 5:33 , Norbert Hartl wrote: > Max, > > Am 23.07.2013 um 17:27 schrieb Max Leske : > >> >> On 23.07.2013, at 15:32, Mariano Martinez Peck wrote: >> >>> >>> >>> >>> On Tue, Jul 23, 2013 at 9:48 AM, Norbert Hartl wrote: >>> Mariano, >>> >>> Am 23.07.2013 um 14:43 schri

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
Max, Am 23.07.2013 um 17:27 schrieb Max Leske : > > On 23.07.2013, at 15:32, Mariano Martinez Peck wrote: > >> >> >> >> On Tue, Jul 23, 2013 at 9:48 AM, Norbert Hartl wrote: >> Mariano, >> >> Am 23.07.2013 um 14:43 schrieb Mariano Martinez Peck : >> >>> Norbert, does the model have lots

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Max Leske
On 23.07.2013, at 15:32, Mariano Martinez Peck wrote: > > > > On Tue, Jul 23, 2013 at 9:48 AM, Norbert Hartl wrote: > Mariano, > > Am 23.07.2013 um 14:43 schrieb Mariano Martinez Peck : > >> Norbert, does the model have lots of strings? Because if so you can try >> using the compression.

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
Hernán, Am 23.07.2013 um 16:13 schrieb Hernán Morales Durand : > El 23/07/2013 9:01, Norbert Hartl escribió: >> >> Am 23.07.2013 um 13:20 schrieb Hernán Morales Durand >> : >> >>> Have a look at InstanceEncoder >>> >>> http://www.smalltalkhub.com/#!/~hernan/InstanceEncoder >>> >> Thanks, how

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Hernán Morales Durand
El 23/07/2013 9:01, Norbert Hartl escribió: Am 23.07.2013 um 13:20 schrieb Hernán Morales Durand : Have a look at InstanceEncoder http://www.smalltalkhub.com/#!/~hernan/InstanceEncoder Thanks, how would you say it works compared to store an Fuel ByteArray? This is not difficult to test.

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Mariano Martinez Peck
On Tue, Jul 23, 2013 at 9:48 AM, Norbert Hartl wrote: > Mariano, > > Am 23.07.2013 um 14:43 schrieb Mariano Martinez Peck < > marianop...@gmail.com>: > > Norbert, does the model have lots of strings? Because if so you can try > using the compression. It may increase speed. There is always a trade

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
Mariano, Am 23.07.2013 um 14:43 schrieb Mariano Martinez Peck : > Norbert, does the model have lots of strings? Because if so you can try using > the compression. It may increase speed. There is always a trade off between > the additional time of compressing/uncompressing. But if the model has

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Mariano Martinez Peck
Norbert, does the model have lots of strings? Because if so you can try using the compression. It may increase speed. There is always a trade off between the additional time of compressing/uncompressing. But if the model has quite an amount of strings, since writing to disk is also slow and the fin

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
Am 23.07.2013 um 14:23 schrieb "jtuc...@objektfabrik.de" : > Norbert, > > Am 23.07.13 14:07, schrieb Norbert Hartl: >> Joachim, >> >> I'm aware that you can do serialization/deserialization yourself. I was >> asking for something to help along the way because a have quite some model >> class

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
Am 23.07.2013 um 14:23 schrieb "jtuc...@objektfabrik.de" : > Norbert, > > Am 23.07.13 14:07, schrieb Norbert Hartl: >> Joachim, >> >> I'm aware that you can do serialization/deserialization yourself. I was >> asking for something to help along the way because a have quite some model >> class

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread jtuc...@objektfabrik.de
Norbert, Am 23.07.13 14:07, schrieb Norbert Hartl: Joachim, I'm aware that you can do serialization/deserialization yourself. I was asking for something to help along the way because a have quite some model classes to cover. I want a more generalized way of doing it. As often I really think a

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
Joachim, Am 23.07.2013 um 13:25 schrieb "jtuc...@objektfabrik.de" : > Norbert, > > for similar purposes (INI-File contents etc.), in order to keep them under > version control in envy, I wrote methods that produced a String that could > recreate the objects when evaluated. Such a piece of tex

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
Am 23.07.2013 um 13:20 schrieb Hernán Morales Durand : > Have a look at InstanceEncoder > > http://www.smalltalkhub.com/#!/~hernan/InstanceEncoder > Thanks, how would you say it works compared to store an Fuel ByteArray? Norbert > > El 23/07/2013 7:47, Norbert Hartl escribió: >> I try to unta

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread jtuc...@objektfabrik.de
HI again, I just saw the link I posted doesn't work right now. The objektfabrik site moved to a new server a while agow and it seems a few files didn't make it. The upload is currently in process, so please check back in an hour or so. Joachim Am 23.07.13 13:25, schrieb jtuc...@objektfabrik

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread Hernán Morales Durand
Have a look at InstanceEncoder http://www.smalltalkhub.com/#!/~hernan/InstanceEncoder Hernán El 23/07/2013 7:47, Norbert Hartl escribió: I try to untangle my modules. I have a parser that creates a model and a tool that uses that model. For testing it is convenient to just generate the model

Re: [Pharo-users] Storing test data in methods

2013-07-23 Thread jtuc...@objektfabrik.de
Norbert, for similar purposes (INI-File contents etc.), in order to keep them under version control in envy, I wrote methods that produced a String that could recreate the objects when evaluated. Such a piece of text makes for a great class or instance method that you can compile into some Sm

[Pharo-users] Storing test data in methods

2013-07-23 Thread Norbert Hartl
I try to untangle my modules. I have a parser that creates a model and a tool that uses that model. For testing it is convenient to just generate the model and work with it. But this way I introduce dependencies which always pulls everything in. In order to untangle I would need a way to easily