DeprecationAssistant

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

DeprecationAssistant

Uko2
HI everyone,

last week I’ve created a little tool that automates deprecation resolution. The goal is to provide a help based on the existing code (no need for extra actions). You can read more here: http://blog.yuriy.tymch.uk/2016/03/deprecationassistant-aiding-developers.html

You can install and try it out with:
Metacello new
   repository: '<a href="github://Uko/DeprecationAssistant'" class="">github://Uko/DeprecationAssistant';
   baseline: 'DeprecationAssistant';
   load

This will add additional actions to the debugger once you will get a deprecation warning.

Have fun!
Cheers.
Uko
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] DeprecationAssistant

abergel
Hi!

I cannot figure out what I should expect after loading DeprecationAssistant. I have loaded it and created a method:
-=-=-=-=-=-=-=-=-=
foo
self deprecated: 'use bar instead’
-=-=-=-=-=-=-=-=-=

Is there anything that should be displayed in the critic list?

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Mar 21, 2016, at 9:59 AM, Yuriy Tymchuk <[hidden email]> wrote:

HI everyone,

last week I’ve created a little tool that automates deprecation resolution. The goal is to provide a help based on the existing code (no need for extra actions). You can read more here: http://blog.yuriy.tymch.uk/2016/03/deprecationassistant-aiding-developers.html

You can install and try it out with:
Metacello new
   repository: '<a href="github://Uko/DeprecationAssistant'" class="">github://Uko/DeprecationAssistant';
   baseline: 'DeprecationAssistant';
   load

This will add additional actions to the debugger once you will get a deprecation warning.

Have fun!
Cheers.
Uko

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] DeprecationAssistant

Uko2
Hi Alex,

this is not about critics…

If you have a method like 

labeledObject
^ RTLabelled new

in the latest roassal image and you will execute it, you will get a debugger deprecation warning with an option to fix that.

Cheers.
Uko

On 21 Mar 2016, at 14:07, Alexandre Bergel <[hidden email]> wrote:

Hi!

I cannot figure out what I should expect after loading DeprecationAssistant. I have loaded it and created a method:
-=-=-=-=-=-=-=-=-=
foo
self deprecated: 'use bar instead’
-=-=-=-=-=-=-=-=-=

Is there anything that should be displayed in the critic list?

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Mar 21, 2016, at 9:59 AM, Yuriy Tymchuk <[hidden email]> wrote:

HI everyone,

last week I’ve created a little tool that automates deprecation resolution. The goal is to provide a help based on the existing code (no need for extra actions). You can read more here: http://blog.yuriy.tymch.uk/2016/03/deprecationassistant-aiding-developers.html

You can install and try it out with:
Metacello new
   repository: '<a href="github://Uko/DeprecationAssistant'" class="">github://Uko/DeprecationAssistant';
   baseline: 'DeprecationAssistant';
   load

This will add additional actions to the debugger once you will get a deprecation warning.

Have fun!
Cheers.
Uko


Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] DeprecationAssistant

abergel
Ah okay!
But how does the system resolve it ? I mean, the class RTLabelled does not refer to RTLabeled. So, what is the magic behind your tool?

I found an interesting situation. Look at this:

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Mar 21, 2016, at 10:19 AM, Yuriy Tymchuk <[hidden email]> wrote:

Hi Alex,

this is not about critics…

If you have a method like 

labeledObject
^ RTLabelled new

in the latest roassal image and you will execute it, you will get a debugger deprecation warning with an option to fix that.

Cheers.
Uko

On 21 Mar 2016, at 14:07, Alexandre Bergel <[hidden email]> wrote:

Hi!

I cannot figure out what I should expect after loading DeprecationAssistant. I have loaded it and created a method:
-=-=-=-=-=-=-=-=-=
foo
self deprecated: 'use bar instead’
-=-=-=-=-=-=-=-=-=

Is there anything that should be displayed in the critic list?

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Mar 21, 2016, at 9:59 AM, Yuriy Tymchuk <[hidden email]> wrote:

HI everyone,

last week I’ve created a little tool that automates deprecation resolution. The goal is to provide a help based on the existing code (no need for extra actions). You can read more here: http://blog.yuriy.tymch.uk/2016/03/deprecationassistant-aiding-developers.html

You can install and try it out with:
Metacello new
   repository: '<a href="github://Uko/DeprecationAssistant'" class="">github://Uko/DeprecationAssistant';
   baseline: 'DeprecationAssistant';
   load

This will add additional actions to the debugger once you will get a deprecation warning.

Have fun!
Cheers.
Uko



Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] DeprecationAssistant

Uko2
Oh, that’s an interesting use case. It’s not easy no make predictions further in stack so by default it is assumed that the change should happen in the method that has called the deprecated one. In fact usually this should help with the method deprecation, and in the particular case we are dealing with a class deprecation hacked as a method deprecation :)

But it’s good that now I know more use cases ;)

Uko



On 21 Mar 2016, at 14:56, Alexandre Bergel <[hidden email]> wrote:

Ah okay!
But how does the system resolve it ? I mean, the class RTLabelled does not refer to RTLabeled. So, what is the magic behind your tool?

I found an interesting situation. Look at this:

<Screen Shot 2016-03-21 at 10.53.09 AM.png>
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Mar 21, 2016, at 10:19 AM, Yuriy Tymchuk <[hidden email]> wrote:

Hi Alex,

this is not about critics…

If you have a method like 

labeledObject
^ RTLabelled new

in the latest roassal image and you will execute it, you will get a debugger deprecation warning with an option to fix that.

Cheers.
Uko

On 21 Mar 2016, at 14:07, Alexandre Bergel <[hidden email]> wrote:

Hi!

I cannot figure out what I should expect after loading DeprecationAssistant. I have loaded it and created a method:
-=-=-=-=-=-=-=-=-=
foo
self deprecated: 'use bar instead’
-=-=-=-=-=-=-=-=-=

Is there anything that should be displayed in the critic list?

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Mar 21, 2016, at 9:59 AM, Yuriy Tymchuk <[hidden email]> wrote:

HI everyone,

last week I’ve created a little tool that automates deprecation resolution. The goal is to provide a help based on the existing code (no need for extra actions). You can read more here: http://blog.yuriy.tymch.uk/2016/03/deprecationassistant-aiding-developers.html

You can install and try it out with:
Metacello new
   repository: '<a href="github://Uko/DeprecationAssistant'" class="">github://Uko/DeprecationAssistant';
   baseline: 'DeprecationAssistant';
   load

This will add additional actions to the debugger once you will get a deprecation warning.

Have fun!
Cheers.
Uko