Why I love Smalltalk

Written by Piers Cawley on , updated

From Extreme UI Testing: Method wrappers. Easily possible in VW and Squeak since you can subclass CompiledMethod and much with the method dictionaries […] Niall uses a strategy pattern to automatically wrap threads that get forked off by looking up the stack to see if the code is under test (and if it is, make sure to install a wrapper) So what if the language doesn’t give me the callbacks I need, I’ll just rejig the system classes until it does.

From Extreme UI Testing:

Method wrappers. Easily possible in VW and Squeak since you can subclass CompiledMethod and much with the method dictionaries […] Niall uses a strategy pattern to automatically wrap threads that get forked off by looking up the stack to see if the code is under test (and if it is, make sure to install a wrapper)

So what if the language doesn’t give me the callbacks I need, I’ll just rejig the system classes until it does. Until Avi needed them for Seaside, Smalltalk didn’t have continuations, but it’s malleable enough that he could implement them.

Malleability rocks (even though rocks aren’t exactly malleable.)

  • 0 likes
  • 0 reposts
  • 0 replies
  • 0 mentions