The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk SuperPowers

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
Smalltalk SuperPowers Posted: Sep 25, 2007 10:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk SuperPowers
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

Over the years, I've tended to push back a bit when I hear people talking about code that uses "questionable" APIs. Things like become: or isKindOf: or even worse, thisContext. You could probably guess that I'm not really fond of the "sends questionable messages" rule in the RB's CodeCritic.

I've seen lots of questionable code that does not include any of these "exalted" APIs. The problem I have with the general theme is that it is a blanket judgement, made without context. There are times when become: is the perfectly correct thing to use. There are times to use them for a while, and then to evolve your design beyond that. What matters is that we all strive to gain experience on when to use these high powered APIs.

Martin McClure and I were discussing just this topic at ESUG. It was he that coined the title of this post. I was noting that one of my favorite past times at these conferences was to sit around and hear the "cool" things people had done with the super APIs. You learn new tricks to try. Hopefully you gain some insight into when it indeed might be appropriate to use something like changeClassToThatOf:. I was positing that this might make for a cool OOPSLA workshop. Each participant submits a one page write up about a novel use of some power API. I was noting that it ought to be like Spiderman's uncle Ben's advice "with great power comes great responsibility." It was at that point that Martin suggested the "Smalltalk SuperPowers, Do You Use Them for Good or Evil?" idea.

Read: Smalltalk SuperPowers

Topic: Agile Open California: Wide Open Spaces Previous Topic   Next Topic Topic: Aiding the Web

Sponsored Links



Google
  Web Artima.com   

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