The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Deprecation Update

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Deprecation Update Posted: Oct 25, 2006 2:34 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Deprecation Update
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement

I've begun publishing DeprecationTools. It is my belief that while Deprecation is a fun little framework to have, that it's the tools that will make or break use of it. You can now rename a method and check the "Leave Deprecate" check box. Which rather than removing the method, leaves it in place with a call to the new (including any argument permuting). What's cool, is that I believe if the UI hooks were there to enable it, you get for free because of this, not only the rename method, but remove and add parameter refactorings. And even inline parameter (which I've never actually used).

I think I'll do a "deprecate" menu option for methods next and then move on to variable bindings. And then query tools. For example, "I'd like to see all of the deprecated references (method or variable binding) in this package (sigh, or bundle)."

One thing that's come up, discussing here at OOPSLA, is the notion of deferred refactoring of future call sites. Adrian actually commented as to such in the last blog post. I hadn't read it til about 15 minutes ago. Ironically, Roger Whitney had discussed this earlier today. When I mentioned it to Don Roberts, he noted he'd thought of this as well.

So right now, when you deprecate something with the Deprecation package, you get an actual first class object. A "Deprecated" object. And it can "takeAction." The idea here was that I could enable different independent actions to be taken on a global basis. Such as Transcript logging. Or exceptiion raising. It would be a cinche to add a 3rd option now called "rewrite call site." As well, augment the DeprecationEncountered exception to have a defaultAction branch which allowed you to rewrite the call site.

It turns out that the guys at GemStone have done a little deprecation thing too. So I'm getting excited about the possibility for this.

Read: Deprecation Update

Topic: Hand waving Idealism Previous Topic   Next Topic Topic: I feel free

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use