Women in Technology

Hear us Roar



Article:
  Smalltalk for Everyone Else
Subject:   Have you tried the powerful tools available
Date:   2007-01-25 20:16:10
From:   jacaetevha
Response to: Re: Its a lot to get used to

In Squeak (not sure if other Smalltalks have something like it) there is the MethodFinder and the MessageNames dialog that help you learn/discover the system in wonderful ways. After finding the MethodFinder I can't hardly stand not to use it. It takes a receiver, an argument (or list of args), and an expected result and gives you what methods in the system would produce that result.


Eg.

MethodFinder methodFor: #((2 64)18446744073709551616. ).

yields:
'(data1 raisedTo: data2) (data1 raisedToInteger: data2) '