The Artima Developer Community
Sponsored Link

Agile Buzz Forum
How to baffle yourself in one easy line

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
How to baffle yourself in one easy line Posted: Aug 8, 2004 12:27 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: How to baffle yourself in one easy line
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

I introduced a nasty bug in the dev stream of BottomFeeder the other day - it's been fixed. Here's a method I had for caching GUIDs from items that we've already seen:


oldItems: aCollection
	^self moduleDictionary at: 'oldItems' put: [aCollection]

The problem ought to be obvious, but it was a simple typo on my part - I was thinking of #at:ifAbsent: (which takes a block). Now, I suppose the static typing advocates will rush out at this point and tell me "if you had type checking..." maybe. On the other hand, testing is what solved the problem for me. Simple mistake, simple fix - it just wasn't clear what I had done to myself before I did some real testing. Note to self - more tests

Read: How to baffle yourself in one easy line

Topic: Forget SCO - look at the patents Previous Topic   Next Topic Topic: On

Sponsored Links



Google
  Web Artima.com   

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