Question about the Refactoring Browser

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

Question about the Refactoring Browser

Jan van de Sandt
Hi,

I want to analyze some Smalltalk code in a collection of Monticello packages without actually loading these packages in the image. Can I use the Refactoring Browser for this?

Jan.
Reply | Threaded
Open this post in threaded view
|

Re: Question about the Refactoring Browser

Mariano Martinez Peck
This week there was  similar thread: http://forum.world.st/Code-Critics-for-unloaded-projects-td3425020.html

On Wed, Apr 6, 2011 at 2:47 PM, Jan van de Sandt <[hidden email]> wrote:
Hi,

I want to analyze some Smalltalk code in a collection of Monticello packages without actually loading these packages in the image. Can I use the Refactoring Browser for this?

Jan.



--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: Question about the Refactoring Browser

Jan van de Sandt
Thanks,

If I understand correctly I can get a refactoring code model of the unloaded code, but I cannot run the code critics on the model.

Ok, I will have a look what functionality this model provides. And I have to figure out how to construct this model using a collection of Monticello packages.

Jan.



On Wed, Apr 6, 2011 at 2:53 PM, Mariano Martinez Peck <[hidden email]> wrote:
This week there was  similar thread: http://forum.world.st/Code-Critics-for-unloaded-projects-td3425020.html


On Wed, Apr 6, 2011 at 2:47 PM, Jan van de Sandt <[hidden email]> wrote:
Hi,

I want to analyze some Smalltalk code in a collection of Monticello packages without actually loading these packages in the image. Can I use the Refactoring Browser for this?

Jan.



--
Mariano
http://marianopeck.wordpress.com


Reply | Threaded
Open this post in threaded view
|

Re: Question about the Refactoring Browser

Stéphane Ducasse
Hi jan

> Thanks,
>
> If I understand correctly I can get a refactoring code model of the unloaded code,

I do not think so.
Even if we are working on Ring just for this scenario I doubt it worked by default.

> but I cannot run the code critics on the model.
>
> Ok, I will have a look what functionality this model provides. And I have to figure out how to construct this model using a collection of Monticello packages.

May be you can be interested by RING: the new source code meta model developed by Veronica (the woman behind Torch)
She did an excellent job and we need people to use it and give feedback.
Our vision is that we want to use RING (a meta model with the same interface as the one of the Smalltalk runobject)
so that we can do
        remote access
        file browsing
        version comparison

using the same tools.

We have a paper under submission if you are interested.

Stef

>
> Jan.
>
>
>
> On Wed, Apr 6, 2011 at 2:53 PM, Mariano Martinez Peck <[hidden email]> wrote:
> This week there was  similar thread: http://forum.world.st/Code-Critics-for-unloaded-projects-td3425020.html
>
>
> On Wed, Apr 6, 2011 at 2:47 PM, Jan van de Sandt <[hidden email]> wrote:
> Hi,
>
> I want to analyze some Smalltalk code in a collection of Monticello packages without actually loading these packages in the image. Can I use the Refactoring Browser for this?
>
> Jan.
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Question about the Refactoring Browser

Lukas Renggli
>> If I understand correctly I can get a refactoring code model of the unloaded code,
>
> I do not think so.
> Even if we are working on Ring just for this scenario I doubt it worked by default.

Sure it works by default.

Cheers,
Lukas

--
Lukas Renggli
www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

Re: Question about the Refactoring Browser

Stéphane Ducasse

On Apr 6, 2011, at 6:19 PM, Lukas Renggli wrote:

>>> If I understand correctly I can get a refactoring code model of the unloaded code,
>>
>> I do not think so.
>> Even if we are working on Ring just for this scenario I doubt it worked by default.
>
> Sure it works by default.

So you can have a model on code that is not in the image?
I imagine that you can create RBClass RBMethod.... but this is not my point.
How do you do that? which browser do you use?

> Cheers,
> Lukas
>
> --
> Lukas Renggli
> www.lukas-renggli.ch


Reply | Threaded
Open this post in threaded view
|

Re: Question about the Refactoring Browser

Lukas Renggli
>>> I do not think so.
>>> Even if we are working on Ring just for this scenario I doubt it worked by default.
>>
>> Sure it works by default.
>
> So you can have a model on code that is not in the image?

Most refactorings start from the existing system:

     model := RBNamespace onEnvironment: BrowserEnvironment new

But you can also start from nothing:

     model := RBNamespace onEnvironment: BrowserEnvironment new not

> I imagine that you can create RBClass RBMethod.... but this is not my point.

Why not? RBClass, RBMetaclass and RBMethod are central parts of the
model. All reflection you do on these objects only affects what is
defined inside this model.

> How do you do that? which browser do you use?

If you have OB-Refactory loaded you can use:

     model open

Lukas

--
Lukas Renggli
www.lukas-renggli.ch