The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk Daily 8/20/08: Transformations with the Rewrite Engine

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 Daily 8/20/08: Transformations with the Rewrite Engine Posted: Aug 20, 2008 2:42 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk Daily 8/20/08: Transformations with the Rewrite Engine
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

One of the critiques that's often levelled at refactoring support in Smalltalk is the "all or nothing" charge - i.e., that refactorings are just "across the system" renaming.

Today's Smalltalk Daily drops into the rewrite engine support to show you how to do complex refactorings that are limited to what you want to see refactored. Today, we look at simple transformations: changing things that look like this:


someValue isNil

	ifTrue: [self doNilThing]
	ifFalse: [self doNotNilThing].

To this:


someValue ifNil: [self doNilThing] ifNotNil: [self doNotNilThing].

Technorati Tags: ,

Read: Smalltalk Daily 8/20/08: Transformations with the Rewrite Engine

Topic: Smalltalk Daily 8/18/08: Publishing with Web Velocity Previous Topic   Next Topic Topic: Be honest about what you are then start climbing

Sponsored Links



Google
  Web Artima.com   

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