Cool stuff indeed. And yes, some months ago I read Andres Valloud's 'A Mentoring Course on Smalltalk', also because you wrote about it on your blog - it is indeed one of the best books about programming (and Smalltalk), although a bit advanced.
On 30 May 2013, at 08:58, Max Leske <[email protected]> wrote: > I love the music you used in your screencast :D Sounds a bit like a telephone > waiting line I meant to write something funny about the music as well. I was expecting to hear a native English speaker, but no ! > On 30.05.2013, at 08:52, stephane ducasse <[email protected]> wrote: > >> I started to read the chapter to understand. >> >> Stef >> >> >>> stephane ducasse wrote >>>> show us how you specify that? >>> >>> It's a simple Spec UI, receiving announcements from the domain object. >>> Whenever the model changes, the UI receives: >>> modelChanged: anAnnouncement >>> >>> failureList items: model validate failures. >>> >>> #validate is the main entry point for the framework. You can call this on >>> any domain object and the validation rules will be run. Under the hood are >>> specialized SUnit classes. Here (on Nabble) is a screenshot of the validator >>> class, a specialized TestCase which holds the rules for the object in the >>> screencast: >>> <http://forum.world.st/file/n4690694/Screen_Shot_2013-05-29_at_5.37.12_PM.png> >>> >>> >>> The really cool thing which is not shown in the video is that the failures >>> are real objects which hold the domain object, the property that failed >>> (called an 'aspect'), and the description shown in the UI. So you could do a >>> lot more than show the description... >>> >>> >>> >>> ----- >>> Cheers, >>> Sean >>> -- >>> View this message in context: >>> http://forum.world.st/ANN-ValidationRevisited-alpha-tp4690680p4690694.html >>> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com. >>> >> >> > >
